3 ms·
I recall reading a paper, maybe ten years back, about a collision handling algorithm that was far simpler than any I’d seen before. The paper claimed that doub
by hinkley 7y ago
I recall reading a paper, maybe ten years back, about a collision handling algorithm that was far simpler than any I’d seen before. The paper claimed that double hashing avoided unresolvable collisions in most cases without chaining or any of the additional overhead (especially on deletes) of cuckoo hashing or any of the alternatives.
Each key can live in two slots, using two different hash algorithms. If it’s not in the first it’ll be in the second. I can’t speak to the quality of their math. And of course a lot of theory for hash tables is based on the quality of the hash. The empirical evidence has often failed to support the theory.
- ignoramous 7y agoIs 2-left hashing what you're taking about: https://xlinux.nist.gov/dads/HTML/twoLeftHashing.html https://xlinux.nist.gov/dads/HTML/twoLeftHashing.html If not, Michael Mitzenmacher is known to research a lot on hashing algorithms, may be you would find it was one of his papers? https://dblp.uni-trier.de/pers/hd/m/Mitzenmacher:Michael https://dblp.uni-trier.de/pers/hd/m/Mitzenmacher:Michael Also see: https://danluu.com/2choices-eviction/ https://danluu.com/2choices-eviction/
- hinkley 7y agoSimilar to two choice, but they were using it instead of chaining.