arXiv:2608.24866cs.DSAug 2026

Manuscript Offprint

arXiv:2608.24866

Lower Bounds for Linear Hashing via Arithmetic Kakeya

Ainesh Bakshi, Alex Conway, Hanna Komlós, William Kuszmaul, Alek Westover

Abstract

Affine modular linear hashing is one of the simplest classical hash families. For a prime p>up > u, the hash function is obtained by choosing s,ts, t uniformly from Zp\mathbb{Z}_p and mapping each key x∈{0,…,u−1}x \in \{0, \ldots, u - 1\} to one of nn bins by

hs,tmod(x):=[(sx+t) mod p] mod n.h_{s,t}^{\mathrm{mod}}(x):=\left[(sx+t)\bmod p\right]\bmod n.

Despite its simplicity, the maximum load of linear hashing remains poorly understood. For nn keys hashed into nn bins, the best known upper bound is O((nlog⁡n)1/3)O((n \log n)^{1/3}), whereas the best known lower bound is only Ω(log⁡n/log⁡log⁡n)\Omega(\log n / \log \log n). We prove a lower bound of exp⁡(Ω(log⁡n/log⁡log⁡n))\exp(\Omega(\log n / \log \log n)) for universes of size n1+o(1)n^{1+o(1)}. Surprisingly, there is a key set for which this load holds not just in expectation, but for every random seed. The proof is driven by two simple reductions: one transfers lower bounds from a real version of linear hashing to modular linear hashing, and the other transfers arithmetic Kakeya constructions to real hashing. We further show that, for sufficiently large pp, the expected maximum loads in the modular and real settings are essentially the same, giving an alternative route to an n1/3+o(1)n^{1/3+o(1)} upper bound. Finally, we show that any uniform subpolynomial upper bound for either setting would imply a polynomial-length arithmetic Kakeya conjecture and hence the Kakeya conjecture for upper Minkowski dimension.

1 Introduction

Hash functions are used throughout computer science for load distribution. Among other applications, they are used by hash tables to distribute keys across locations [18, 28, 38], by low-associativity caches to distribute cache blocks among sets [25, 42, 43], and by randomized and distributed load balancers to assign jobs or clients to servers [4, 34, 35]. In these applications, it is important that hash functions distribute keys evenly among bins, and one of the most important measures of this is the maximum load. For example, in a hash table with separate chaining, a lookup or update may scan every key in one chain, and the maximum load therefore controls the worst-case lookup time.

An ideal fully random hash function has maximum load Θ(log⁡n/log⁡log⁡n)\Theta(\log n/\log \log n) with high probability when nn items are hashed to nn locations [40]. However, fully random hash functions are not practical

Independent concurrent work of Zamir [49] obtains the same super-polylogarithmic lower bound for linear hashing. The two works differ in their surrounding frameworks and additional results.

because they require high space and time to evaluate. As a result, there is a long line of research both in theory and practice which looks for hash families that give comparable guarantees to fully random hash families, but which are small and fast to evaluate [10, 16, 37, 39, 44, 46].

This paper studies one such hash family, known as affine modular linear hashing (or linear hashing, for short, when it is unambiguous). A modular linear hash function maps keys from a universe U=[u]U = [u] to [n]1[n]^1 using modular arithmetic with a fixed prime p>up > u. The hash function is parameterized by random s,t∈Zps, t \in \mathbb{Z}_p, and maps each key xx to

hs,tmod(x)=[[sx+t]p]n,h_{s,t}^{\mathrm{m o d}}(x)=\left[\left[s x+t\right]_{p}\right]_{n},

where [a]b[a]_{b} is the residue of a modulo bb. Note that this hash function requires only O(log⁡p)O(\log p) bits to store, and can be evaluated in O(1)O(1) time.

Linear hashing was first studied in a classic 1979 paper by Carter and Wegman [10], who showed that the underlying affine maps over Zp\mathbb{Z}_p form a 2-universal and pairwise-independent family. 2^2 This pair-collision bound gives a generic O(n)O(\sqrt{n}) expected maximum-load bound when a set XX of nn keys is hashed into nn bins. Indeed, the expected number of colliding pairs of keys is O(n)O(n), while a bin of load LL contributes (L2)\binom{L}{2} colliding pairs.

Subsequent work showed that the O(n)O(\sqrt{n}) bound is tight for general pairwise-independent hash families [1]. However, it remained possible that linear hashing specifically achieves a better bound. Nearly four decades after Carter and Wegman's original analysis [10], Knudsen showed this to be the case: in a paper titled Linear Hashing is Awesome, he proved that the expected maximum load is O((nlog⁡n)1/3)O((n \log n)^{1/3}) [26, 27].

Perhaps surprisingly, on the lower bound side, essentially nothing is known. It has remained possible that, in terms of expected maximum load, linear hashing might even match the O(log⁡n/log⁡log⁡n)O(\log n/\log \log n) bound achieved by fully random hash functions. If so, it would be the first known explicit hash function with O(log⁡u)O(\log u) description bits (where u is the universe size) to achieve this bound [11, 30, 33].

This paper: A new lower bound via two reductions. The main result of this paper is a lower bound showing that the expected maximum load using modular linear hashing is

exp⁡(Ω(log⁡n/log⁡log⁡n)).(1)\exp(\Omega(\log n/\log\log n)). \tag{1}

This represents an exponential improvement over the previous best lower bound of Ω(log⁡n/log⁡log⁡n)\Omega(\log n/\log \log n) [26], which, when u≥n2u \geq n^2, follows simply by considering a random key set XX [11, Theorem 5.1]. Interestingly, our proof of (1) actually establishes a stronger fact: there exists a set XX of nn elements such that, for every pair s,t∈Zps, t \in \mathbb{Z}_p, the maximum load of hs,tmodh_{s,t}^{\text{mod}} on XX is exp⁡(Ω(log⁡n/log⁡log⁡n))\exp(\Omega(\log n/\log \log n)). Thus the lower bound holds not just in expectation, but even pointwise.

The new lower bound is achieved by chaining together two simple reductions, each of which allows us to transfer known bounds from one problem to another. Therefore, we view another contribution of the paper to be establishing the connections between these seemingly unrelated

1^{1}Throughout the paper we write [k]:={0,1,…,k−1}[k] := \{0, 1, \ldots, k - 1\}.

2^{2}After the final reduction to [n][n], the marginals are only nearly uniform, but two distinct keys still collide with probability O(1/n)O(1/n), which is all that we use here.

problems.

The first reduction relates the maximum load under modular linear hashing (Problem 1) to the maximum load of a continuous version of the problem, real linear hashing (Problem 2). We define the hash functions hareal(x)h_a^{\text{real}}(x) parameterized by a random real number a∈[0,1)a \in [0,1) as

hareal(x)=⌊n{ax}⌋,h_{a}^{\mathrm{r e a l}}(x)=\lfloor n\{a x\}\rfloor,

where {ax}\{ax\} denotes the fractional part of axax. 3^{3} We show that any lower bound in the real-valued setting that holds for all a∈[0,1)a \in [0,1) implies the same lower bound in the modular-valued setting that holds for all s,t∈Zps, t \in \mathbb{Z}_p. This reduction allows us to reinterpret known results in combinatorial number theory [29] to immediately obtain a lower bound of

exp⁡(Ω(log⁡n/(log⁡log⁡n)2)).\exp(\Omega(\log n/(\log\log n)^{2})).

To improve this bound to (1), we relate the real-valued version of linear hashing to a third problem, known as the arithmetic Kakeya problem (Problem 3). Problem 3, which is also studied in combinatorial number theory, seeks, for given integers K, D, to construct an integer set X that is as small as possible while containing K-term arithmetic progressions with every positive difference d∈[D]d \in [D]. We show that known constructions for Problem 3 imply a new exp⁡(Ω(log⁡n/log⁡log⁡n))\exp(\Omega(\log n/\log \log n)) lower bound for Problem 2. Chaining together both of our reductions, we obtain the same lower bound for Problem 1. Dhar and Dvir [15] previously connected linear hashing and Kakeya sets in a different but related problem, as we discuss in Section 1.1.

Further strengthening the relationship between Problems 1 and 2. We also extend our reduction between Problems 1 and 2 to obtain an equivalence result: We show, for p sufficiently large, the expected maximum load under modular linear hashing is the same as the expected maximum load under real linear hashing differ by at most 1.

As an immediate consequence, we are able to obtain a new path to Knudsen's n1/3+o(1)n^{1/3+o(1)} upper bound (albeit with a worse o(1)o(1) term). Specifically, we can take a known upper bound for (the average-case version of) Problem 2 [29] and transform it directly into an upper bound for Problem 1.

A conditional obstacle to subpolynomial upper bounds. Finally, our reductions also present a natural obstacle to obtaining significantly better upper bounds for either of Problems 1 or 2 and, specifically, for the expected maximum load of modular linear hashing. We show that a subpolynomial bound would imply a polynomial-length version of the arithmetic Kakeya conjecture, which is known to imply the Kakeya conjecture for upper Minkowski dimension. A Besicovitch set in RdR^{d} is a compact measure-zero set containing a unit line segment in every direction, and this conjecture asserts that every such set has upper Minkowski dimension d [7, 8, 20]; see Section 4.

Roadmap. We discuss related work in the remainder of this section. In Section 2, we formally introduce the three problems described above and present the reductions. In Section 3, we strengthen

3^{3}Real linear hashing was introduced in an earlier preprint by one of the authors [48]. Theorems 2.5 and 3.1 can be viewed as strengthening results in that work.

the relationship between Problems 1 and 2 to include upper bounds. In Section 4, we show that subpolynomial bounds for either of Problems 1 or 2 imply the Kakeya conjecture for upper Minkowski dimension.

References (46)