|
|
|
|
|
by kryps
4001 days ago
|
|
For critbit trees the entire string _up to_ the critical bit where the string differs from all others already in the datastructure needs to be scanned. critbit trees degenerate badly if you store strings and their prefixes, e.g. storing a, aa, aaa, ... |
|
Worst case data for a critbit tree is also worst case for any other kind of trie, and better than worst case for a classic hash (which is O(items in table) and can often be triggered by an adversary). Constants are different, though.