FKS Perfect Hashing Collision Energy
Use bucket collision energy to turn two-level hashing into collision-free lookup.
Free theory articleUse bucket collision energy to turn two-level hashing into collision-free lookup.
Concept & interpretation
The FKS (Fredman, Komlós, Szemerédi) perfect hashing scheme provides a way to construct a static hash table with O(n) space and guaranteed O(1) worst-case lookup time. It achieves this by using a two-level hashing strategy and bounding the collision energy of the first level.
Experiment
In the interactive module, you can select different sets of Keys, a Multiplier a, and an Offset b.
- Change the distribution of keys from "Spread" to "Clustered".
- Observe how it drastically increases the collision energy