f
Size: a a a
f
A
AT
O(1)
?AT
AT
EZ
O(1)
?AT
AT
AT
AT
An elaboration on this approach is the so-called dynamic perfect hashing,[16] where a bucket that contains k entries is organized as a perfect hash table with k2 slots. While it uses more memory (n2 slots for n entries, in the worst case and n × k slots in the average case), this variant has guaranteed constant worst-case lookup time, and low amortized time for insertion. It is also possible to use a fusion tree for each bucket, achieving constant time for all operations with high probability.[17]
AK
AK
O(1)
?AT
AK
AT
AK
A
AK
O(1)
?MD
AT