Find Related products on Amazon

Shop on Amazon

Adaptive Hashing

Published on: 2025-07-13 13:16:05

Tags: tech , lisp , Date: 2025-05-02 At the 2024 ELS, I gave a talk on adaptive hashing, which focusses on making general purpose hash tables faster and more robust at the same time. Theory vs Practice Hash table theory most concerns itself with the asymptotic worst-case cost with a hash function chosen randomly from a family of hash functions. Although these results are very relevant in practice, those pesky constant factors, that the big-O cost ignores, do matter, and we don't pick hash functions randomly but fix the hash function for the lifetime of the hash table. There are Perfect Hashing algorithms, that choose an optimal hash function for a given set of keys. The drawback is that they either require the set of keys to be fixed or they are too slow to be used as general purpose hash tables. Still, the idea that we can do better by adapting the hash function to the actual keys is key. Can we do that online, that is, while the hash table is being used? Potential performance ... Read full article.