Quadratic Probing Revisited: Smoothed Analysis and the Fall of Robin Hood
arXiv:2607.13247
Abstract
Quadratic probing is one of the most widely used open-addressing hash-table schemes in practice, but after more than half a century, even its most basic performance guarantees remain poorly understood. In this paper, we revisit quadratic probing through the lens of a smoothed variant in which each key follows a random probe sequence where its th probe is expected at offset . This is simultaneously a toy model for better understanding regular quadratic probing and a natural hashing scheme in its own right. We analyse smoothed quadratic probing for both Robin Hood ordering and anti-Robin Hood ordering and reveal a surprising separation: At load factor , anti-Robin Hood achieves an expected query time of , which matches the conjectured expected average successful query time for regular quadratic probing, while Robin Hood falls short at . Our analysis generalises to degree- probing for any with expected query time for anti-Robin Hood and for Robin Hood. Finally, we go beyond smoothed analysis: using the probabilistic method, we show that for every , almost every random fixed-offset degree- probing sequence achieves expected query time under anti-Robin Hood ordering, simultaneously over all admissible table sizes and load factors. Thus, while quadratic probing itself remains elusive, we prove that essentially all quadratic-probing-like fixed-offset schemes achieve the ideal performance under the anti-Robin Hood ordering.