computer scienceSolved recentlysince 1985
A student overturns a 40-year-old hashing belief
When a storage table is almost full, how many spots must you check to find an empty one?
In 2025 Farach-Colton, Krapivin and Kuszmaul disproved the central conjecture of Yao's 'Uniform Hashing is Optimal', showing hash tables can search faster than long believed.
The story
A hash table stores items in an array. In open addressing, each item gets a sequence of slots to try; you insert it in the first empty slot you find and later search along the same sequence. When the table is nearly full, many probes may be needed.
In 1985 Andrew Yao published 'Uniform hashing is optimal' and left a conjecture: that a simple random probing scheme, uniform hashing, is the best possible among schemes that never move items once placed. In 2025 Martin Farach-Colton, Andrew Krapivin and William Kuszmaul built tables that beat it, and proved matching lower bounds.
What is known
Each fact links to its source
- 'Optimal Bounds for Open Addressing Without Reordering' by Farach-Colton, Krapivin and Kuszmaul (submitted 4 January 2025) shows that even without reordering elements, hash tables can achieve better expected search complexities than previously thought, both amortized and worst-case. arXiv:2501.02305
- The authors state that they disprove the central conjecture left by Yao in 'Uniform Hashing is Optimal', and give matching lower bounds for all results. arXiv:2501.02305
- Andrew C. Yao's 'Uniform hashing is optimal' appeared in the Journal of the ACM, volume 32, issue 3, pages 687–693, in July 1985. JACM bibliography
News: nothing new found between 1 September 2026 and 27 November 2026; last searched 27 November 2026.
Milestones
The results already checked on the way to the goal, the published claims not yet checked by machine and by people, then the open steps, easiest first. Each step is a piece someone else can check.
Known
Jeffrey Ullman (1972) analysed hashing functions and conjectured that uniform probing (a random order of slots per key, first free slot wins) has the best possible average probe count among greedy tables: about ln(1/δ) at load 1 − δ. source
Known
Andrew Yao (1985, 'Uniform hashing is optimal') proved Ullman's conjecture: no greedy open-addressing table beats uniform probing on average probes. He also conjectured uniform probing is near-best for the worst-case expected probe count, about 1/δ. source
Known
Bender, Kuszmaul and Zhou (2024) built 'rainbow hashing', a classical open-addressed table with O(1) expected queries and O(log log(1/δ)) expected inserts and deletes, and proved that bound optimal. It allows moving items after insertion. source
Known
Farach-Colton, Krapivin and Kuszmaul (2025) gave 'elastic hashing': with no moving of items, average probes O(1) and worst-case expected probes O(log(1/δ)), both with matching lower bounds. Its insertion is not greedy. source
Known
The same paper (2025) gave greedy 'funnel hashing' with worst-case expected probes O(log²(1/δ)), which is far below 1/δ, so Yao's conjecture is false. A matching Ω(log²(1/δ)) lower bound holds for all greedy tables. source
Known
Farach-Colton, Krapivin and Kuszmaul (STOC 2026, 2026-06-09) show a greedy table whose greedy queries differ from greedy insertion has amortized expected query time O(1) and worst-case expected query time O(log(1/δ)). source
First step about ten minutes
Simulate uniform probing in a table of 2²⁰ slots, 20 runs, filled to load 1 − 1/1024. Pass if the last 1,024 insertions average 1024·ln 2 ≈ 710 probes ±5% and the mean over all insertions is ln(1024) ≈ 6.9 ±5%.
Open step an afternoon
Implement funnel hashing from the paper and compare its expected probes for insertions at free fraction δ = 1/16, 1/64, 1/256, 1/1024, 1/4096 with uniform probing. Pass if funnel is lower at δ ≤ 1/256 and the ratio widens at each step.
Open step days of work
Implement elastic hashing (non-greedy) and measure average probes per insertion and worst-case expected probes for the same δ values. Pass if the average stays under a fixed constant and the worst case grows about linearly in log(1/δ).
Open step days of work
State in Lean 4 the model (greedy open addressing, probe sequences, expected probe count) and the two theorems: Yao 1985 and the Ω(log²(1/δ)) greedy lower bound, with proofs of the statements left as sorry.
Open step research level
Prove an explicit upper bound such as 40·log²(1/δ) on worst-case expected probes for a concrete funnel-hashing variant at all δ, with every constant stated, and check it against the simulation.
The goal
Find the exact leading constant c in the best possible worst-case expected probe count c·log²(1/δ) for greedy open addressing at load factor 1 − δ, and prove it.
Tasks for your agent
Nobody expects a solution from one run. Each task here builds a piece someone else can check: a reproduced number, a formal statement, a clean survey. That is how the big results were reached.
Task 1
Simulate the full table
At a load factor of 1 − 1/1024, is the average number of probes per insertion with the paper's elastic hashing lower than with uniform probing, averaged over 20 runs of a table with 2²⁰ slots?
Simulation makes the asymptotic claim visible at a size people use.
Task 2
Fit the growth
As the free fraction δ shrinks from 1/16 to 1/4096, does the worst-case expected probe count for funnel hashing grow more slowly than for uniform probing, with the ratio widening at each halving of δ?
It checks the shape of the improvement, not just one point.
Starting a project makes it private to you and the people you invite. Your agent then works on it with your own model account.