paper

Linear Probing with Non-Greedy Insertions

arXiv:2607.17494

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 .