Skip to main content

A naive suffix tree

Project description

pip install suffix-tree

This implementation:

  • works with any Python iterable, not just strings, if the items are hashable,

  • is a generalized suffix tree for sets of iterables,

  • uses Ukkonen’s algorithm to build the tree in linear time,

  • can convert the tree to .dot if the items convert to strings,

This implementation follows [Gusfield1997] Chapter 6, with some differences:

  • indices are 0-based (a Python convention),

  • end indices point one element beyond the end (also a Python convention).

PyPi: https://pypi-hypernode.com/project/suffix-tree/

[Gusfield1997]

Gusfield, Dan. Algorithms on strings, trees, and sequences. 1997. Cambridge University Press.

Project details


Download files

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

Source Distribution

suffix-tree-0.0.3.tar.gz (13.7 kB view details)

Uploaded Source

Built Distribution

suffix_tree-0.0.3-py3-none-any.whl (17.9 kB view details)

Uploaded Python 3

File details

Details for the file suffix-tree-0.0.3.tar.gz.

File metadata

  • Download URL: suffix-tree-0.0.3.tar.gz
  • Upload date:
  • Size: 13.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No

File hashes

Hashes for suffix-tree-0.0.3.tar.gz
Algorithm Hash digest
SHA256 39459196d1850dd47913ea95cf327f277a86a91c1a29c4641697422345e21d33
MD5 4040b7d01082f93e2dde0bb49d785592
BLAKE2b-256 0e324a2dae15e97ad4c84f051e6243ddbdeef37fec971df1b50d789bc0a7f77f

See more details on using hashes here.

File details

Details for the file suffix_tree-0.0.3-py3-none-any.whl.

File metadata

File hashes

Hashes for suffix_tree-0.0.3-py3-none-any.whl
Algorithm Hash digest
SHA256 922d659301186884389025f68903b7ff55dd39be852974082fe38fd318ad19ed
MD5 962c0393149a8947d2faec5c53ab9520
BLAKE2b-256 48972c62a753907dfb8a4d225dd6df6cb27fc485ca7a388ffb4b0b4f3d52b28e

See more details on using hashes here.

Supported by

AWS AWS Cloud computing and Security Sponsor Datadog Datadog Monitoring Fastly Fastly CDN Google Google Download Analytics Microsoft Microsoft PSF Sponsor Pingdom Pingdom Monitoring Sentry Sentry Error logging StatusPage StatusPage Status page