Trie vs. suffix tree vs. suffix array
The trie was the first data structure of this kind discovered. The suffix tree is an improvement over the trie (it has suffix links which allow linear error search, the suffix tree trims unnecessary branches of the trie therefore it does not require as much space). The suffix array is a stripped down data structure … Read more