Deletion Algorithms for Coalesced Hashing

From MaRDI portal





We present efficient deletion algorithms for three variants of coalesced chaining - late insertion (LICH), early insertion (EICH), and varied insertion (VICH). Our approach is uniform in the sense that each deletion algorithm works simultaneously for all three variants, though the implementation details are of course different. Deletion algorithms for coalesced hashing when there is a cellar have not been studied previously in the literature; these algorithms are useful because coalesced hashing is most efficient when a cellar is utilised. First we present and analyse a deletion algorithm that preserves randomness - in that deleting a record is in some sense like never having inserted it. In particular, the formulas for the average search times after N random insertions intermixed with d random deletions are the same as the formulas for the average search times after N-d random insertions. This answers an open question in the literature. We then present two deletion algorithms that require fewer pointer fields per table slot; the latter one does not relocate records once inserted. These two algorithms do not preserve randomness, but simulations suggest that search times remain good after repeated deletions and insertions.











This page was built for publication: Deletion Algorithms for Coalesced Hashing

Report a bug (only for logged in users!)Click here to report a bug for this page (MaRDI item Q3746900)