Tries Data Structure
Tries Data Structure
Understand Requirements
Insertion is faster as compared to the Hash
Table
Lookup is much more faster than hash
table implementations
You can store as many keys as much you
want without any reconstruction as like in
Hash Table if size becomes full
There are no collision of different keys in
tries
What is TRIE?
The term trie comes from retrieval. This
term was coined by Edward Fredkin, who
pronounce it tri as in the word retrieval
In computer science, a trie, also called
digital tree and sometimes radix tree or
prefix tree
All the descendants of a node have a
common prefix of the string associated
with that node, and the root is associated
with the empty string.
Standard Tries
Compressed/Compact Tries
Suffix Tries
Standard Tries
Compressed Tries
Searching(bbaa) in Compressed
Tries
Suffix Tries