Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
skip to main content
research-article

Load Thresholds for Cuckoo Hashing with Overlapping Blocks

Published: 05 May 2023 Publication History

Abstract

We consider a natural variation of cuckoo hashing proposed by Lehman and Panigrahy (2009). Each of cn objects is assigned k = 2 intervals of size ℓ in a linear hash table of size n and both starting points are chosen independently and uniformly at random. Each object must be placed into a table cell within its intervals, but each cell can only hold one object. Experiments suggested that this scheme outperforms the variant with blocks in which intervals are aligned at multiples of ℓ. In particular, the load threshold is higher, i.e., the load c that can be achieved with high probability. For instance, Lehman and Panigrahy (2009) empirically observed the threshold for ℓ = 2 to be around 96.5% as compared to roughly 89.7% using blocks. They pinned down the asymptotics of the thresholds for large ℓ, but the precise values resisted rigorous analysis.
We establish a method to determine these load thresholds for all ℓ ≥ 2, and, in fact, for general k ≥ 2. For instance, for k = ℓ = 2, we get ≈ 96.4995%. We employ a theorem due to Leconte, Lelarge, and Massoulié (2013), which adapts methods from statistical physics to the world of hypergraph orientability. In effect, the orientability thresholds for our graph families are determined by belief propagation equations for certain graph limits. As a side note, we provide experimental evidence suggesting that placements can be constructed in linear time using an adapted version of an algorithm by Khosla (2013).

References

[1]
David Aldous and J. Michael Steele. 2004. The Objective Method: Probabilistic Combinatorial Optimization and Local Weak Convergence. Springer, Berlin, 1–72. DOI:
[2]
Stephan Beyer. 2012. Analysis of the Linear Probing Variant of Cuckoo Hashing. Master’s Thesis. Technische Universität Ilmenau. Retrieved from http://gso.gbv.de/DB=2.1/PPNSET?PPN=685166759.
[3]
Julie Anne Cain, Peter Sanders, and Nicholas C. Wormald. 2007. The random graph threshold for \(k\) -orientiability and a fast algorithm for optimal multiple-choice allocation. In Proceedings of the 18th SODA. 469–476. Retrieved from http://dl.acm.org/citation.cfm?id=1283383.1283433.
[4]
Martin Dietzfelbinger, Andreas Goerdt, Michael Mitzenmacher, Andrea Montanari, Rasmus Pagh, and Michael Rink. 2010. Tight thresholds for cuckoo hashing via XORSAT. In Proceedings of the 37th ICALP (1). 213–225. DOI:
[5]
Martin Dietzfelbinger and Christoph Weidling. 2005. Balanced allocation and dictionaries with tightly packed constant size bins. In Proceedings of the 32nd ICALP. 166–178. DOI:
[6]
Martin Dietzfelbinger and Christoph Weidling. 2007. Balanced allocation and dictionaries with tightly packed constant size bins. Theor. Comput. Sci. 380, 1-2 (2007), 47–68. DOI:
[7]
Daniel Fernholz and Vijaya Ramachandran. 2007. The \(k\) -orientability Thresholds for \(G_{n,p}\) . In Proceedings of the 18th SODA. 459–468. Retrieved from http://dl.acm.org/citation.cfm?id=1283383.1283432.
[8]
Dimitris Fotakis, Rasmus Pagh, Peter Sanders, and Paul G. Spirakis. 2005. Space efficient hash tables with worst case constant access time. Theory Comput. Syst. 38, 2 (2005), 229–248. DOI:
[9]
Nikolaos Fountoulakis, Megha Khosla, and Konstantinos Panagiotou. 2011. The multiple-orientability thresholds for random hypergraphs. In Proceedings of the 22nd SODA. 1222–1236. Retrieved from http://www.siam.org/proceedings/soda/2011/SODA11_092_fountoulakisn.pdf.
[10]
Nikolaos Fountoulakis and Konstantinos Panagiotou. 2010. Orientability of random hypergraphs and the power of multiple choices. In Proceedings of the 37th ICALP (1). 348–359. DOI:
[11]
Nikolaos Fountoulakis and Konstantinos Panagiotou. 2012. Sharp load thresholds for cuckoo hashing. Random Struct. Algorithms 41, 3 (2012), 306–333. DOI:
[12]
Alan M. Frieze and Páll Melsted. 2012. Maximum matchings in random bipartite graphs and the space utilization of cuckoo hash tables. Random Struct. Algorithms 41, 3 (2012), 334–364. DOI:
[13]
Pu Gao and Nicholas C. Wormald. 2010. Load balancing and orientability thresholds for random hypergraphs. In Proceedings of the 42nd STOC. 97–104. DOI:
[14]
Svante Janson and Malwina J. Luczak. 2007. A simple solution to the k-core problem. Random Struct. Algorithms 30, 1-2 (2007), 50–62. DOI:
[15]
Megha Khosla. 2013. Balls into bins made faster. In Proceedings of the 21st ESA. 601–612. DOI:
[16]
Megha Khosla and Avishek Anand. 2019. A faster algorithm for cuckoo insertion and bipartite matching in large graphs. Algorithmica 81, 9 (2019), 3707–3724. DOI:
[17]
Mathieu Leconte. 2013. Double hashing thresholds via local weak convergence. In Proceedings of the 51st Annual Allerton Conference. 131–137. DOI:
[18]
M. Leconte, M. Lelarge, and L. Massoulié. 2013. Convergence of multivariate belief propagation, with applications to cuckoo hashing and load balancing. In Proceedings of the 24th SODA. 35–46. http://dl.acm.org/citation.cfm?id=2627817.2627820.
[19]
Eric Lehman and Rina Panigrahy. 2009. 3.5-way cuckoo hashing for the price of 2-and-a-Bit. In Proceedings of the 17th ESA. 671–681. DOI:
[20]
Marc Lelarge. 2012. A new approach to the orientation of random hypergraphs. In Proceedings of the 23rd SODA. 251–264. Retrieved from http://dl.acm.org/citation.cfm?id=2095139.
[21]
Michael Mitzenmacher, Konstantinos Panagiotou, and Stefan Walzer. 2018. Load thresholds for cuckoo hashing with double hashing. In SWAT (Leibniz International Proceedings in Informatics (LIPIcs’18)), David Eppstein (Ed.), Vol. 101. Schloss Dagstuhl–Leibniz-Zentrum fuer Informatik, Dagstuhl, Germany, 29:1–29:9. DOI:
[22]
Michael Molloy. 2005. Cores in random hypergraphs and Boolean formulas. Random Struct. Algorithms 27, 1 (2005), 124–135. DOI:
[23]
Rasmus Pagh and Flemming Friche Rodler. 2004. Cuckoo hashing. J. Algorithms 51, 2 (2004), 122–144. DOI:
[24]
Ely Porat and Bar Shalem. 2012. A cuckoo hashing variant with improved memory utilization and insertion time. In Proceedings of the 22nd DCC. DOI:

Cited By

View all

Recommendations

Comments

Information & Contributors

Information

Published In

cover image ACM Transactions on Algorithms
ACM Transactions on Algorithms  Volume 19, Issue 3
July 2023
281 pages
ISSN:1549-6325
EISSN:1549-6333
DOI:10.1145/3592471
  • Editor:
  • Edith Cohen
Issue’s Table of Contents

Publisher

Association for Computing Machinery

New York, NY, United States

Publication History

Published: 05 May 2023
Online AM: 31 March 2023
Accepted: 07 March 2023
Revised: 11 September 2021
Received: 19 October 2018
Published in TALG Volume 19, Issue 3

Permissions

Request permissions for this article.

Check for updates

Author Tags

  1. Cuckoo hashing
  2. unaligned blocks
  3. hypergraph orientability
  4. load thresholds
  5. randomised algorithms

Qualifiers

  • Research-article

Contributors

Other Metrics

Bibliometrics & Citations

Bibliometrics

Article Metrics

  • 0
    Total Citations
  • 153
    Total Downloads
  • Downloads (Last 12 months)48
  • Downloads (Last 6 weeks)4
Reflects downloads up to 17 Oct 2024

Other Metrics

Citations

Cited By

View all

View Options

Get Access

Login options

Full Access

View options

PDF

View or Download as a PDF file.

PDF

eReader

View online with eReader.

eReader

Full Text

View this article in Full Text.

Full Text

HTML Format

View this article in HTML Format.

HTML Format

Media

Figures

Other

Tables

Share

Share

Share this Publication link

Share on social media