AA-VIZ /

Suffix Trie & Suffix Tree

Interactive visualizations for Chapter 1 of the Advanced Algorithms notes

Suffix Trie & Suffix Tree

Build and visualize the suffix trie and its compacted suffix tree for any input string.

Online Construction — Phase by Phase

Watch how the suffix trie grows character by character (Ukkonen’s online approach on the trie). At each phase, the algorithm appends a character and walks the boundary path, adding new transitions until it reaches a state that already has the corresponding edge.

  • Green nodes = new states created in this phase
  • Yellow nodes = boundary path states visited (but not new)
  • Blue nodes = existing states (unchanged)