Papers
Topics
Authors
Recent
Search
2000 character limit reached

Efficient dd-ary Cuckoo Hashing at High Load Factors by Bubbling Up

Published 4 Jan 2025 in cs.DS and math.CO | (2501.02312v1)

Abstract: A dd-ary cuckoo hash table is an open-addressed hash table that stores each key xx in one of dd random positions h1(x),h2(x),,hd(x)h_1(x), h_2(x), \ldots, h_d(x). In the offline setting, where all items are given and keys need only be matched to locations, it is possible to support a load factor of 1ϵ1 - \epsilon while using d=lnϵ<sup>1</sup>+o(1)d = \lceil \ln \epsilon<sup>{-1}</sup> + o(1) \rceil hashes. The online setting, where keys are moved as new keys arrive sequentially, has the additional challenge of the time to insert new keys, and it has not been known whether one can use d=O(lnϵ<sup>1)d = O(\ln \epsilon<sup>{-1}) hashes to support $\poly(\epsilon<sup>{-1})$ expected-time insertions. In this paper, we introduce bubble-up cuckoo hashing, an implementation of dd-ary cuckoo hashing that achieves all of the following properties simultaneously: (1) uses d=lnϵ<sup>1</sup>+αd = \lceil \ln \epsilon<sup>{-1}</sup> + \alpha \rceil hash locations per item for an arbitrarily small positive constant α\alpha. (2) achieves expected insertion time O(δ<sup>1)O(\delta<sup>{-1}) for any insertion taking place at load factor 1δ1ϵ1 - \delta \le 1 - \epsilon. (3) achieves expected positive query time O(1)O(1), independent of dd and ϵ\epsilon. The first two properties give an essentially optimal value of dd without compromising insertion time. The third property is interesting even in the offline setting: it says that, even though \emph{negative} queries must take time dd, positive queries can actually be implemented in O(1)O(1) expected time, even when dd is large.

Summary

No one has generated a summary of this paper yet.

Paper to Video (Beta)

No one has generated a video about this paper yet.

Whiteboard

No one has generated a whiteboard explanation for this paper yet.

Continue Learning

We haven't generated follow-up questions for this paper yet.