Catalan Hashing: Efficient Linear Probing for Variable-Length Items
Abstract
A defining feature of the linear-probing hash table is its spatial locality: at load factor , the hash table can be implemented so that each operation scans a single contiguous region of expected size (this is known as the \emph{scan cost}). This guarantee, however, relies on all items having unit size. In this paper, we ask whether it is possible to achieve a similar guarantee, but in a hash table that stores items of arbitrary lengths . The main result of the paper is a new hash table called \emph{Catalan hashing}, which supports amortized expected scan cost for positive queries, for negative queries, and for insertions/deletions, for any constant . As a corollary, we obtain the same bounds in the cache-oblivious model, with a scan cost of translating to I/Os. Along the way, we introduce several high-level techniques that may be of independent interest; this includes a novel way of using erasure codes in order to perform write optimization within a hash table, and a connection to scheduling that allows us to place elements in a way which avoids clustering at high load factors.
Create a lesson
Metadata
- Comments
- minor updates
Related papers
Load Balancing with Item Fragmentation and More Bins than Items: Linear-Time and Exact
Shared title terminologycs.DSBen Bals, Tomáš Flouri, Kassian Kobert et al.
Efficient Lempel-Ziv Prediction with the Run-Length BWT
Shared title terminologycs.DSOhad Avnery
Toggle Tree: A New Data Structure for Efficient Parallel Graph Processing
Shared title terminologycs.DSXinjian Jiang, Youzhe Liu, Yan Gu et al.
The Anatomy of Piecewise-Linear Learned Indexes
Shared title terminologycs.DSYue Chen, Yong Zhang
A Deterministic Linear Time Algorithm for Minimum Spanning Tree
Shared title terminologycs.DSSanjeev Khanna, Aaron Putterman, Junkai Song
First-Order Entropic Sampling of Words with Prescribed Letter Counts in Linear Time
Shared title terminologycs.DSOlivier Bodini, Francis Durand