Linear Probing with Non-Greedy Insertions
Data Structures and Algorithms
2026-07-20 v1
Abstract
Linear probing hash tables classically use a \emph{greedy} insertion strategy, placing a key in the first available position out of . If the hash table is filled to full, this results in worst-case expected insertion time. In this note, we show that there is a simple \emph{non-greedy} insertion strategy that does better, and without requiring elements to be reordered within the table over time. Given in advance, the strategy is able to bring the worst-case expected insertion time down to .
Cite
@article{arxiv.2607.17494,
title = {Linear Probing with Non-Greedy Insertions},
author = {Andrew Krapivin and William Kuszmaul and Jolyne Wang},
journal= {arXiv preprint arXiv:2607.17494},
year = {2026}
}