Lune

STOC2020Top-tier venue

Fast hashing with strong concentration bounds

Anders Aamand, Jakob Bæk Tejs Knudsen, Mathias Bæk Tejs Knudsen, Peter Michael Reichstein Rasmussen, Mikkel Thorup

Abstract

Previous work on tabulation hashing by Pǎtraşcu and Thorup from STOC'11 on simple tabulation and from SODA'13 on twisted tabulation offered Chernoff-style concentration bounds on hash based sums, e.g., the number of balls/keys hashing to a given bin, but under some quite severe restrictions on the expected values of these sums. The basic idea in tabulation hashing is to view a key as consisting of c = O(1) characters, e.g., a 64-bit key as c = 8 characters of 8-bits. The character domain Σ should be small enough that character tables of size |Σ| fit in fast cache. The schemes then use O(1) tables of this size, so the space of tabulation hashing is O(|Σ|). However, the concentration bounds by Pǎtraşcu and Thorup only apply if the expected sums are |Σ|. To see the problem, consider the very simple case where we use tabulation hashing to throw n balls into m bins and want to analyse the number of balls in a given bin. With their concentration bounds, we are fine if n = m, for then the expected value is 1. However, if m = 2, as when tossing n unbiased coins, the expected value n/2 is |Σ| for large data sets, e.g., data sets that do not fit in fast cache. To handle expectations that go beyond the limits of our small space, we need a much more advanced analysis of simple tabulation, plus a new tabulation technique that we call tabulation-permutation hashing which is at most twice as slow as simple tabulation. No other hashing scheme of comparable speed offers similar Chernoff-style concentration bounds.

Ask Lune

Know this paper in minutes, not an afternoon.

Lune can read every page of it and the top-tier papers that cite it, and gives you its claims, its evidence and its limits, each one cited to the paper it comes from. No skimming, no AI slop.

3 top-tier papers have cited it since. Know what they found before your reviewers do.

Questions to start from

Lune can draw on

the full paper · the top-tier papers that cite it · related work

Get the answer

Free to start. No credit card required.

Lineage

  • Locally Uniform Hashing cites No Repetition: Fast and Reliable Sampling with Highly Concentrated Hashing
Builds onCited byLeft to right by year; the more cited, the higher.

Cited by top-tier papers3

  1. Locally Uniform HashingIoana O. Bercea, Lorenzo Beretta, Jonas Klausen, Jakob Bæk Tejs Houen et al.FOCS 2023 · 4 citations
  2. FairHash: A Fair and Memory/Time-efficient HashmapNima Shahbazi, Stavros Sintos, Abolfazl AsudehSIGMOD 2024 · 2 citations
  3. No Repetition: Fast and Reliable Sampling with Highly Concentrated HashingAnders Aamand, Debarati Das, Evangelos Kipouridis, Jakob Bæk Tejs Knudsen et al.VLDB 2022 · 1 citation

Related papers

  1. Entropy-Learned Hashing: Constant Time Hashing with Controllable UniformityBrian Hentschel, Utku Sirin, Stratos IdreosSIGMOD 2022 · 4 citations
  2. MapEmbed: Perfect Hashing with High Load Factor and Fast UpdateYuhan Wu, Zirui Liu, Xiang Yu, Jie Gui et al.KDD 2021 · 14 citations
  3. Optimal Bounds for Open Addressing Without ReorderingMartín Farach-Colton, Andrew Krapivin, William KuszmaulFOCS 2024 · 3 citations
  4. An extendable data structure for incremental stable perfect hashingIoana Oriana Bercea, Guy EvenSTOC 2022 · 2 citations
  5. Linear Hashing Is OptimalMichael Jaber, Vinayak M. Kumar, David ZuckermanSTOC 2025 · 1 citation
Dusk over the sea between two cliffs drawn in fine vertical lines