Skip to main content

A naive suffix tree

Project description

This implementation:

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

  • values simplicity over speed,

  • is a generalized suffix tree for sets of iterables ([Gusfield1997] §6.4),

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

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

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

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

[Gusfield1997] (1,2)

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.2.tar.gz (9.2 kB view details)

Uploaded Source

Built Distribution

suffix_tree-0.0.2-py3-none-any.whl (10.9 kB view details)

Uploaded Python 3

File details

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

File metadata

File hashes

Hashes for suffix-tree-0.0.2.tar.gz
Algorithm Hash digest
SHA256 c7dd097f235467c3a9a2c2ac46bb7e1c94ca9a4cd3266922ee561de207038f81
MD5 d5aa055debdfdf2c8609e8ee31183798
BLAKE2b-256 b9d7156834e0c9f42c4efce6dc086cf4a403b5eabb6a4928c5b7b7b30fc4014e

See more details on using hashes here.

File details

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

File metadata

File hashes

Hashes for suffix_tree-0.0.2-py3-none-any.whl
Algorithm Hash digest
SHA256 c5b9d45e882d1dd39e50fc9928c1c167eada186c9d0fe778cd90c642461a7d25
MD5 47224beaa71d2b549f2c0685226c74b8
BLAKE2b-256 67f68170b6b58d053e3d7519dde43842845eb8425cd2b436910a10e3a0711f70

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