arXiv:2610.31363cs.DSOct 2026Cited by 1 paper on PaperVantage

Manuscript Offprint

arXiv:2610.31363

A Sharp Analysis of Fixed Offset Hash Tables

Yuhao Guo, Seth Pettie, Chengzhang Wan

Abstract

We consider the class of open addressing hash tables that uses a fixed offset sequence r0,r1,…,rn−1r_0, r_1, \ldots, r_{n-1} to find an open slot in the table. As special cases this subsumes linear probing ( ri=ir_i = i) and quadratic probing ( ri=i2r_i = i^2).

We give a simple analysis that the expected insertion time when the load factor is 1−ϵ1 - \epsilon is O(ϵ−2)O(\epsilon^{-2}). This bound is tight for linear probing (but not for quadratic probing), so the analysis cannot be improved at this level of generality.

1 Introduction

We consider a class of open addressing hash tables defined by a fixed offset probe sequence, which includes linear probing [Knu63] and quadratic probing [Mau68] as special cases. A hash table in this class is defined by a permutation (r0,r1,…,rn−1)(r_0, r_1, \ldots, r_{n-1}) of [n][n], indexing the slots of the table. An Insert(x)\text{Insert}(x) operation places x∈Ux \in U into the first slot among

h(x),h(x)+r1,…,h(x)+rn−1,(modulon)h(x),h(x)+r_{1},\ldots,h(x)+r_{n-1},(\mathrm{modulo}n)

where h:U→[n]h: U \to [n] is the hash function and r0=0r_0 = 0 without loss of generality.

Whereas the behavior of linear probing has been understood for decades [Knu63, Pet57, JS62, KW66, MY80, FPV98, Jan01], there were essentially no theoretical results on quadratic probing and general fixed offset probing until very recently. Kuszmaul and Xi [KX24] proved that all fixed offset hash tables have constant expected insertion time up to load factor 0.089 (8.9%). Guo, Pettie, and Wan [GPW27] improved this load factor limit to 35.74% for any fixed offset probe sequence (ri)(r_i) and to 37.61% for the specific case of quadratic probing (ri=i2)(r_i = i^2). Zamir [Zam26] proved that at load factor 1−ϵ1 - \epsilon, any fixed offset hash table has O(ϵ−2log⁡n)O(\epsilon^{-2} \log n) expected insertion cost. Hu, Kuszmaul, Liang, Walzer, Yu, and Zhou [HKL +^{+}26a] recently proved that for quadratic probing (but not other fixed offset schemes) the expected insertion at load factor 1−ϵ1 - \epsilon, ϵ>1/log⁡n\epsilon > 1/\sqrt{\log n}, is ϵ−(1+o(1))\epsilon^{-(1+o(1))}, nearly reaching the conjectured bound of O(ϵ−1)O(\epsilon^{-1}). The ϵ−(1+o(1))\epsilon^{-(1+o(1))} probe bound of Hu et al. [HKL +^{+}26a] is superior to the Θ(ϵ−2)\Theta(\epsilon^{-2}) bound of linear probing [Knu63], though they are comparable in terms of cache misses, as they typically touch a local area of the array of width ≈ϵ−2\approx \epsilon^{-2}. Zamir [Zam26] proved that no open addressing hash table can have locality o(ϵ−2)o(\epsilon^{-2}).

∗^{*}Supported by NSF Grant CCF-2446604.