On Deletions in Open Addressing Hashing [chapter]

Rosa M. Jiménez, Conrado Martínez
2018 2018 Proceedings of the Fifteenth Workshop on Analytic Algorithmics and Combinatorics (ANALCO)  
Deletions in open addressing tables have often been seen as problematic. The usual solution is to use a special mark 'deleted' so that probe sequences continue past deleted slots, as if there was an element still sitting there. Such a solution, notwithstanding is wide applicability, may involve serious performance degradation. In the first part of this paper we review a practical implementation of the often overlooked deletion algorithm for linear probing hash tables, analyze its properties and
more » ... performance, and provide several strong arguments in favor of the Robin Hood variant. In particular, we show how a small variation can yield substantial improvements for unsuccesful search. In the second part we propose an algorithm for true deletion in open addressing hashing with secondary clustering, like quadratic hashing. As far as we know, this is the first time that such an algorithm appears in the literature. Although it involves some extra memory for bookkeeping, the algorithm is comparatively easy and efficient, and might be of practical value, besides its theoretical interest.
doi:10.1137/1.9781611975062.3 dblp:conf/analco/JimenezM18 fatcat:ozptpgqwlndfllpgohxmfu5zzi