Tight Analyses of Ordered and Unordered Linear Probing

Fuente: arXiv
Saved in:
Bibliographic Details
Main Authors: Braverman, Mark, Kuszmaul, William
Format: Preprint
Published: 2025
Subjects:
Online Access:
Tags: Add Tag
No Tags, Be the first to tag this record!
_version_ 1866929683082248192
author Braverman, Mark
Kuszmaul, William
author_facet Braverman, Mark
Kuszmaul, William
contents Linear-probing hash tables have been classically believed to support insertions in time $Θ(x^2)$, where $1 - 1/x$ is the load factor of the hash table. Recent work by Bender, Kuszmaul, and Kuszmaul (FOCS'21), however, has added a new twist to this story: in some versions of linear probing, if the \emph{maximum} load factor is at most $1 - 1/x$, then the \emph{amortized} expected time per insertion will never exceed $x \log^{O(1)} x$ (even in workloads that operate continuously at a load factor of $1 - 1/x$). Determining the exact asymptotic value for the amortized insertion time remains open. In this paper, we settle the amortized complexity with matching upper and lower bounds of $Θ(x \log^{1.5} x)$. Along the way, we also obtain tight bounds for the so-called path surplus problem, a problem in combinatorial geometry that has been shown to be closely related to linear probing. We also show how to extend Bender et al.'s bounds to say something not just about ordered linear probing (the version they study) but also about classical linear probing, in the form that is most widely implemented in practice.
format Preprint
id arxiv_https___arxiv_org_abs_2501_11582
institution arXiv
publishDate 2025
record_format arxiv
spellingShingle Tight Analyses of Ordered and Unordered Linear Probing
Braverman, Mark
Kuszmaul, William
Data Structures and Algorithms
Linear-probing hash tables have been classically believed to support insertions in time $Θ(x^2)$, where $1 - 1/x$ is the load factor of the hash table. Recent work by Bender, Kuszmaul, and Kuszmaul (FOCS'21), however, has added a new twist to this story: in some versions of linear probing, if the \emph{maximum} load factor is at most $1 - 1/x$, then the \emph{amortized} expected time per insertion will never exceed $x \log^{O(1)} x$ (even in workloads that operate continuously at a load factor of $1 - 1/x$). Determining the exact asymptotic value for the amortized insertion time remains open. In this paper, we settle the amortized complexity with matching upper and lower bounds of $Θ(x \log^{1.5} x)$. Along the way, we also obtain tight bounds for the so-called path surplus problem, a problem in combinatorial geometry that has been shown to be closely related to linear probing. We also show how to extend Bender et al.'s bounds to say something not just about ordered linear probing (the version they study) but also about classical linear probing, in the form that is most widely implemented in practice.
title Tight Analyses of Ordered and Unordered Linear Probing
topic Data Structures and Algorithms
url https://arxiv.org/abs/2501.11582