paper

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

arXiv:2401.14394

Abstract

The random walk -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 -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 random hashes, let be the sharp threshold for the load factor at which a valid assignment of objects to a hash table of size exists with high probability. We show that for any hashes and load factor , the expectation of the random walk insertion time is , that is, a constant depending only on and but not .

arXiv commentA preliminary version of this paper appeared in FOCS 2024. Major update from v4 to v6 to fix errors in the previous version and include the case. Minor update to v7. 34 pages