Lune

FOCS2021顶会

Linear Probing Revisited: Tombstones Mark the Demise of Primary Clustering

Michael A. Bender, Bradley C. Kuszmaul, William Kuszmaul

摘要

The linear-probing hash table is one of the oldest and most widely used data structures in computer science. However, linear probing famously comes with a major draw-back: as soon as the hash table reaches a high memory utilization, elements within the hash table begin to cluster together, causing insertions to become slow. This phenomenon, now known as primary clustering, was first captured by Donald Knuth in 1963; at a load factor of1−1/x1 -1/x, the expected time per insertion isΘ(x2)\Theta(x^{2}), rather than the more desirableΘ(x)\Theta(x). We show that there is more to the story than the classic analysis would seem to suggest. It turns out that small design decisions in how deletions are implemented have dramatic effects on the asymptotic performance of insertions. If these design decisions are made correctly, then even a hash table that is continuously at a load factor1−Θ(1/x)1-\Theta(1/x)can achieve average insertion timeO~(x)\tilde{O}(x). A key insight is that the tombstones left behind by deletions cause a surprisingly strong “anti-clustering” effect, and that when insertions and deletions are one-for-one, the anti-clustering effects of deletions actually overpower the clustering effects of insertions. We also present a new variant of linear probing, which we call graveyard hashing, that completely eliminates primary clustering on any sequence of operations. If, when an operation is performed, the current load factor is1−1/x1 -1/xfor somexx, then the expected cost of the operation isO(x)O(x). One corollary is that, in the external-memory model with a data block size ofBB, graveyard hashing offers the following remarkable guarantee: at any load factor1−1/x1 -1/xsatisfyingx=o(B)x=o(B), graveyard hashing achieves1+o(1)1 +o(1)expected block transfers per operation. Past external-memory hash tables have only been able to offer a1+o(1)1 +o(1)guarantee when the block sizeBBis at leastΩ(x2)\Omega(x^{2}). Our results come with actionable lessons for both theoreticians and practitioners, in particular, that well-designed use of tombstones can completely change the asymptotic landscape of how the linear probing behaves (and if there are no deletions).

问 Lune

几分钟看清这篇 Paper 的位置,不用再花一下午。

Lune 能读引用它和与它最相关的顶会 Paper,讲清它说了什么、后来怎样、哪里站不住,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

已有 6 篇顶会 Paper 引用了它。别等审稿人问起,先弄清它们发现了什么。

可以从这些问题问起

Lune 可以查阅

摘要 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Tight Analyses of Ordered and Unordered Linear Probing 引用了 Locally Uniform Hashing
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper6

  1. Locally Uniform HashingIoana O. Bercea, Lorenzo Beretta, Jonas Klausen, Jakob Bæk Tejs Houen 等FOCS 2023 · 4 次引用
  2. DLHT: A Non-blocking Resizable Hashtable with Fast Deletes and Memory-awarenessAntonios Katsarakis, Vasilis Gavrielatos, Nikos NtarmosHPDC 2024 · 3 次引用
  3. Tight Bounds for Classical Open AddressingMichael A. Bender, William Kuszmaul, Renfei ZhouFOCS 2024 · 2 次引用
  4. Zombie Hashing: Reanimating Tombstones in GraveyardYuvaraj Chesetti, Benwei Shi, Jeff M. Phillips, Prashant PandeySIGMOD 2025 · 2 次引用
  5. Tight Analyses of Ordered and Unordered Linear ProbingMark Braverman, William KuszmaulFOCS 2024 · 1 次引用

相关 Paper

  1. Optimal Non-oblivious Open AddressingMichael A. Bender, William Kuszmaul, Renfei ZhouSTOC 2025 · 1 次引用
  2. On the optimal time/space tradeoff for hash tablesMichael A. Bender, Martin Farach-Colton, John Kuszmaul, William Kuszmaul 等STOC 2022 · 20 次引用
  3. Optimal Bounds for Open Addressing Without ReorderingMartín Farach-Colton, Andrew Krapivin, William KuszmaulFOCS 2024 · 3 次引用
  4. Greedy Open Addressing Revisited: Beyond Yao's Lower BoundMartín Farach-Colton, Andrew Krapivin, William KuszmaulSTOC 2026 · 2 次引用
  5. Flushing Without CascadesMichael A. Bender, Rathish Das, Martin Farach-Colton, Rob Johnson 等SODA 2020 · 8 次引用
黄昏的海面,两侧是细线勾勒的悬崖