Lune

STOC2022顶会

On the optimal time/space tradeoff for hash tables

Michael A. Bender, Martin Farach-Colton, John Kuszmaul, William Kuszmaul, Mingmou Liu

摘要

For nearly six decades, the central open question in the study of hash tables has been to determine the optimal achievable tradeoff curve between time and space. State-of-the-art hash tables offer the following guarantee: If keys/values are Θ(log n) bits each, then it is possible to achieve constant-time insertions/deletions/queries while wasting only O(log log n) bits of space per key when compared to the information-theoretic optimum. Even prior to this bound being achieved, the target of O(log log n) wasted bits per key was known to be a natural end goal, and was proven to be optimal for a number of closely related problems (e.g., stable hashing, dynamic retrieval, and dynamically-resized filters).

This paper shows that O(log log n) wasted bits per key is not the end of the line for hashing. In fact, for any k ∈ [log * n], it is possible to achieve O(k)-time insertions/deletions, O(1)-time queries, and

wasted bits per key (all with high probability in n). This means that, each time we increase insertion/deletion time by an additive constant, we reduce the wasted bits per key exponentially. We further show that this tradeoff curve is the best achievable by any of a large class of hash tables, including any hash table designed using the current framework for making constant-time hash tables succinct.

Our results hold not just for fixed-capacity hash tables, but also for hash tables that are dynamically resized (this is a fundamental departure from what is possible for filters); and for hash tables that store very large keys/values, each of which can be up to n o(1) bits (this breaks with the conventional wisdom that larger keys/values should lead to more wasted bits per key). For very small keys/values, we are able to tighten our bounds to o(1) wasted bits per key, even when k = O(1). Building on this, we obtain a constant-time dynamic filter that uses n log ε -1 + n log e + o(n) bits of space for a wide choice of false-positive rates ε, resolving a long-standing open problem for the design of dynamic filters.

问 Lune

几分钟读透这篇 Paper,不用再花一下午。

Lune 能读完全文,也能读引用它的顶会 Paper,讲清它的结论、证据和局限,每一点都注明出自哪篇 Paper。不用硬啃,也不靠猜。

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

可以从这些问题问起

Lune 可以查阅

全文 · 引用它的顶会 Paper · 相关的 Paper

获取答案

免费开始,无需绑卡

脉络

  • Tight Cell-Probe Lower Bounds for Dynamic Succinct Dictionaries 引用了 Nearly optimal static Las Vegas succinct dictionary
  • Tight Cell-Probe Lower Bounds for Dynamic Succinct Dictionaries 引用了 Strongly History-Independent Storage Allocation: New Upper and Lower Bounds
  • Strongly History-Independent Storage Allocation: New Upper and Lower Bounds 引用了 Tight Cell-Probe Lower Bounds for Dynamic Succinct Dictionaries
  • Strongly History-Independent Storage Allocation: New Upper and Lower Bounds 引用了 Tiny Pointers
  • Strongly History-Independent Storage Allocation: New Upper and Lower Bounds 引用了 Balanced Allocations: The Heavily Loaded Case with Deletions
  • Balanced Allocations: The Heavily Loaded Case with Deletions 引用了 Tiny Pointers
它引用的引用它的从左到右按年份排列,引用越多,位置越高。

引用它的顶会 Paper15

  1. Tiny PointersMichael A. Bender, Alex Conway, Martin Farach-Colton, William Kuszmaul 等SODA 2023 · 11 次引用
  2. Tight Cell-Probe Lower Bounds for Dynamic Succinct DictionariesTianxiao Li, Jingxun Liang, Huacheng Yu, Renfei ZhouFOCS 2023 · 11 次引用
  3. A Hash Table Without Hash Functions, and How to Get the Most Out of Your Random BitsWilliam KuszmaulFOCS 2022 · 7 次引用
  4. Strongly History-Independent Storage Allocation: New Upper and Lower BoundsWilliam KuszmaulFOCS 2023 · 7 次引用
  5. Balanced Allocations: The Heavily Loaded Case with DeletionsNikhil Bansal, William KuszmaulFOCS 2022 · 6 次引用

它引用的 Paper1

  1. Nearly optimal static Las Vegas succinct dictionaryHuacheng YuSTOC 2020 · 6 次引用

相关 Paper

  1. Optimal Non-oblivious Open AddressingMichael A. Bender, William Kuszmaul, Renfei ZhouSTOC 2025 · 1 次引用
  2. Tight Bounds for Classical Open AddressingMichael A. Bender, William Kuszmaul, Renfei ZhouFOCS 2024 · 2 次引用
  3. Optimal Static Dictionary with Worst-Case Constant Query TimeYang Hu, Jingxun Liang, Huacheng Yu, Junkai Zhang 等STOC 2025 · 3 次引用
  4. Space Lower Bounds for Dynamic Filters and Value-Dynamic RetrievalWilliam Kuszmaul, Stefan WalzerSTOC 2024 · 2 次引用
  5. Optimal Bounds for Open Addressing Without ReorderingMartín Farach-Colton, Andrew Krapivin, William KuszmaulFOCS 2024 · 3 次引用
黄昏的海面,两侧是细线勾勒的悬崖