paper

Fast Insertion for Bucketized Cuckoo Hashing

arXiv:2607.24545

Abstract

Bucketized cuckoo hashing is a practically efficient hash table scheme in which each object is stored in one of two buckets of capacity . For any bucket size $\ell\in\mb{N}$, there is a threshold for which there exists a way to fill the hash table to any load factor less than with low probability of an error. Queries and deletions only need to check two buckets to find whether an object exists. Our contribution is to give a new insertion procedure for bucketized cuckoo hashing. For any , our algorithm can fill the hash table to load factor with an expected run time of per insertion. This gives the first insertion time bound, and the first time bound for load factors that are very close to the optimal threshold. Additionally, our algorithm (which can be viewed as a variation of the classic random-walk algorithm) comes with a very strong amortized guarantee: it performs amortized expected evictions per insertion. Furthermore, we show that the traditional random-walk algorithm cannot match this guarantee. Finally, our insertion protocol also comes with the feature that, for any key in the hash table, the query algorithm can \emph{guess} which of the two bins the key is in with probability of being correct. Thus positive queries can complete in expected bin accesses.

FOCS 2026

Fast Insertion for Bucketized Cuckoo Hashing · wovepaper