English

Linear Hashing is Awesome

Data Structures and Algorithms 2017-06-12 v1

Abstract

We consider the hash function h(x)=((ax+b)modp)modnh(x) = ((ax+b) \bmod p) \bmod n where a,ba,b are chosen uniformly at random from {0,1,,p1}\{0,1,\ldots,p-1\}. We prove that when we use h(x)h(x) in hashing with chaining to insert nn elements into a table of size nn the expected length of the longest chain is O~ ⁣(n1/3)\tilde{O}\!\left(n^{1/3}\right). The proof also generalises to give the same bound when we use the multiply-shift hash function by Dietzfelbinger et al. [Journal of Algorithms 1997].

Keywords

Cite

@article{arxiv.1706.02783,
  title  = {Linear Hashing is Awesome},
  author = {Mathias Bæk Tejs Knudsen},
  journal= {arXiv preprint arXiv:1706.02783},
  year   = {2017}
}

Comments

A preliminary version appeared at FOCS'16

R2 v1 2026-06-22T20:13:32.694Z