Skip to main content

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"

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

suffix-trees-0.2.4.4.tar.gz (5.9 kB view details)

Uploaded Source

File details

Details for the file suffix-trees-0.2.4.4.tar.gz.

File metadata

File hashes

Hashes for suffix-trees-0.2.4.4.tar.gz
Algorithm Hash digest
SHA256 ea2b49f10a8e8dbe1f01a3cefaf6018a5b87c0a6164bcb95d127195c26bf6972
MD5 c89df64f20ab56628f3e82bcb51e69fc
BLAKE2b-256 5a28cfa658b5d5337d433e283ffd89006ea8e96648d9f0f41870f20177c15294

See more details on using hashes here.

Release history Release notifications | RSS feed

0.4.0

2 files

0.3.0

2 files

0.2.5.0

2 files

This release

0.2.4.4 This release

1 file

0.2.4.3

1 file

0.2.4.2

1 file

0.2.4.1

1 file

0.2.4

1 file

0.2.3

1 file

0.2.2

1 file

0.2.1

1 file

0.2.0

1 file

0.1.0

1 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