Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

python: library for generalized suffix trees [closed]

Tags:

I need python library that can construct suffix trees and especially generalised suffix trees. Could you suggest me some libraries. Thanks.

like image 860
ashim Avatar asked Feb 19 '12 05:02

ashim


People also ask

How do you make a generalized suffix tree?

We build a suffix tree by following each suffix and creating an edge for each character, starting with a top node. If the new suffix to be put in the tree begins with a set of characters that are already in the tree, we follow those characters until we have a different one, creating a new branch.

Is suffix tree same as trie?

If you imagine a Trie in which you put some word's suffixes, you would be able to query it for the string's substrings very easily. This is the main idea behind suffix tree, it's basically a "suffix trie".

How many nodes does a suffix tree have?

A suffix tree consists of at most 2n − 1 nodes (or 2n if empty suffix $ is taken into account).


1 Answers

See the following libraries.

  • suffixtree
  • Python-Suffix-Tree
  • SuffixTree
  • SuffixTree (same name different project, supports generalized suffix trees)
  • pysuffix (This is suffix arrays)
like image 68
Appleman1234 Avatar answered Oct 27 '22 07:10

Appleman1234