English

O(1) Insertion for Random Walk d-ary Cuckoo Hashing up to the Load Threshold

Data Structures and Algorithms 2025-12-04 v6 Combinatorics

Abstract

The random walk dd-ary cuckoo hashing algorithm was defined by Fotakis, Pagh, Sanders, and Spirakis to generalize and improve upon the standard cuckoo hashing algorithm of Pagh and Rodler. Random walk dd-ary cuckoo hashing has low space overhead, guaranteed fast access, and fast in practice insertion time. In this paper, we give a theoretical insertion time bound for this algorithm. More precisely, for every d3d\ge 3 random hashes, let cdc_d^* be the sharp threshold for the load factor at which a valid assignment of cmcm objects to a hash table of size mm exists with high probability. We show that for any d3d\ge 3 hashes and load factor c<cdc<c_d^*, the expectation of the random walk insertion time is O(1)O(1), that is, a constant depending only on dd and cc but not mm.

Keywords

Cite

@article{arxiv.2401.14394,
  title  = {O(1) Insertion for Random Walk d-ary Cuckoo Hashing up to the Load Threshold},
  author = {Tolson Bell and Alan Frieze},
  journal= {arXiv preprint arXiv:2401.14394},
  year   = {2025}
}

Comments

A preliminary version of this paper appeared in FOCS 2024. Paper updated to fix errors in the previous version and include the $d=3$ case. 31 pages