Skip to main content

suffix_trees

Python implementation of Suffix Trees and Generalized Suffix Trees. Provided also methods with typcal aplications of STrees and GSTrees.

Installation

pip install suffix-trees

Usage

from suffix_trees import STree

# Suffix-Tree example.
st = STree.STree("abcdefghab")
print(st.find("abc")) # 0
print(st.find_all("ab")) # [0, 8]

# Generalized Suffix-Tree example.
a = ["xxxabcxxx", "adsaabc", "ytysabcrew", "qqqabcqw", "aaabc"]
st = STree.STree(a)
print(st.lcs()) # "abc"

Metadata

Release files for suffix-trees 0.2.4.1

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for suffix-trees 0.2.4.1
File Size Uploaded
suffix-trees-0.2.4.1.tar.gz 5.8 kB Details

Release files / suffix-trees-0.2.4.1.tar.gz

Download URL suffix-trees-0.2.4.1.tar.gz
Size 5.8 kB
Tags Source
SHA-256 checksum
How to use checksums
7ce585be80b4ea492795a31d4b42d6ac80b6663a404f9f96e5c2f48f8b44157d
BLAKE2b-256 checksum
How to use checksums
de7942fdcd361b3decaba9be570778982383e3ad17377830655a79bd5c10083f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No

Release history Release notifications | RSS feed

0.4.0

2 release files

0.3.0

2 release files

0.2.4.4

1 release file

0.2.4.3

1 release file

0.2.4.2

1 release file

This release

0.2.4.1 This release

1 release file

0.2.4

1 release file

0.2.3

1 release file

0.2.2

1 release file

0.2.1

1 release file

0.2.0

1 release file

0.1.0

1 release file

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page