Suffix Tree · Ukkonen's Algorithm
unseel.com · Compressed trie of all suffixes · O(n) build · O(|P|) search
Text banana$
Suffixes 0 / 7
State
Internal node
Active edge
Edge split
Suffix link
Match walk
Unseel.com · Suffix Tree