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.org/project/suffix-tree/
[Gusfield1997]
Gusfield, Dan. Algorithms on strings, trees, and sequences. 1997. Cambridge University Press.
Project details
Release history Release notifications | RSS feed
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 hashes)
Built Distribution
Close
Hashes for suffix_tree-0.0.3-py3-none-any.whl
Algorithm | Hash digest | |
---|---|---|
SHA256 | 922d659301186884389025f68903b7ff55dd39be852974082fe38fd318ad19ed |
|
MD5 | 962c0393149a8947d2faec5c53ab9520 |
|
BLAKE2b-256 | 48972c62a753907dfb8a4d225dd6df6cb27fc485ca7a388ffb4b0b4f3d52b28e |