Iceberg Hashing: Optimizing Many Hash-Table Criteria at Once
Open Access
- 30 November 2023
- journal article
- research article
- Published by Association for Computing Machinery (ACM) in Journal of the ACM
- Vol. 70 (6) , 1-51
Abstract
Despite being one of the oldest data structures in computer science, hash tables continue to be the focus of a great deal of both theoretical and empirical research. A central reason for this is that many of the fundamental properties that one desires from a hash table are difficult to achieve simultaneously; thus many variants offering different trade-offs have been proposed. This article introduces Iceberg hashing, a hash table that simultaneously offers the strongest known guarantees on a large number of core properties. Iceberg hashing supports constant-time operations while improving on the state of the art for space efficiency, cache efficiency, and low failure probability. Iceberg hashing is also the first hash table to support a load factor of up to 1 - o(1) while being stable, meaning that the position where an element is stored only ever changes when resizes occur. In fact, in the setting where keys are Θ (log n ) bits, the space guarantees that Iceberg hashing offers, namely that it uses at most \(\log \binom{|U|}{n} + O(n \log \ \text{log} n)\) bits to store n items from a universe U , matches a lower bound by Demaine et al. that applies to any stable hash table. Iceberg hashing introduces new general-purpose techniques for some of the most basic aspects of hash-table design. Notably, our indirection-free technique for dynamic resizing, which we call waterfall addressing, and our techniques for achieving stability and very-high probability guarantees, can be applied to any hash table that makes use of the front-yard/backyard paradigm for hash table design.
Keywords
All Related Versions
Funding Information
- NSF (CSR-1938180, CCF-2106999, CCF-2118620, CCF-2118832, CCF-2106827, CCF-1725543, CSR-1763680, CCF-1716252 and CNS-1938709)
- NSF GRFP fellowship and a Fannie and John Hertz Fellowship
- United States Air Force Research Laboratory (FA8750-19-2-1000)
This publication has 34 references indexed in Scilit:
- Cache-Oblivious HashingAlgorithmica, 2013
- The Power of Simple Tabulation HashingJournal of the ACM, 2012
- Derandomized Constructions of k-Wise (Almost) Independent PermutationsAlgorithmica, 2008
- Uniform deterministic dictionariesACM Transactions on Algorithms, 2008
- Uniform Hashing in Constant Time and Optimal SpaceSIAM Journal on Computing, 2008
- A new universal class of hash functions and dynamic hashing in real time2005
- Cuckoo hashingJournal of Algorithms, 2004
- Deterministic DictionariesJournal of Algorithms, 2001
- The input/output complexity of sorting and related problemsCommunications of the ACM, 1988
- Analysis of Uniform HashingJournal of the ACM, 1983