Ukkonen¶
-
class Ukkonen¶
Defined in
ukkonen.hpp.This class implements Ukkonen’s algorithm for constructing a generalised suffix tree consisting of word_type. The implementation in this class is based on:
https://cp-algorithms.com/string/suffix-tree-ukkonen.html
The suffix tree is updated when the member function
add_wordis invoked. Every non-duplicate word added to the tree has a unique letter appended to the end. If a duplicate word is added, then the tree is not modified, but themultiplicityof the word is increased.Many helper functions are provided in the
ukkonennamespace.
Constructors¶
Default constructor. |
|
Default constructor. |
|
Default constructor. |
|
Default constructor. |
Member types¶
Alias for |
|
Alias for order that words were added. |