Trie/ Prefix Tree
β Trie = Prefix Tree
TRIEval: finding something or obtaining it
tree-like data structure
efficient storing, retrieval of key-value pairs
prefix-based searching
trie is String searching
ππ» in binary search tree, searching integer time-complexity is O(logN)
ππ» in binary search tree, searching string time-complexity is O(M*logN)
ππ» in trie, searching string time-complexity is O(M)
This post is licensed under CC BY 4.0 by the author.