by nosefouratyou · 9y ago · 0 comments
"A real world example of a hash table that uses a self-balancing binary search tree for buckets is the HashMap class in Java version 8."
https://en.wikipedia.org/wiki/Hash_table#Separate_chaining_w...
Robin Hood or its better cousin Hopscotch hashing, which was forgotten here, counter that scenario much better, with only ~1-3% performance loss on average in the best case, and much better perf. numbers in the average write-heavy case, where their "move to front" strategy pays off. And they have the worst case scenario also covered, unlike all others.