Jump to content

Lazy deletion

From Wikipedia, the free encyclopedia

This is an old revision of this page, as edited by CAPTAIN RAJU (talk | contribs) at 15:19, 15 April 2019 (Reverted 2 edits by Najeeb tiwana identified as test/vandalism using STiki). The present address (URL) is a permanent link to this revision, which may differ significantly from the current revision.

In computer science, lazy deletion refers to a method of deleting elements from a hash table that uses open addressing. In this method, deletions are done by marking an element as deleted, rather than erasing it entirely. Deleted locations are treated as empty when inserting and as occupied during a search.

The problem with this scheme is that as the number of delete/insert operations increases, the cost of a successful search increases. To improve this, when an element is searched and found in the table, the element is relocated to the first location marked for deletion that was probed during the search. Instead of finding an element to relocate when the deletion occurs, the relocation occurs lazily during the next search.[1][2]

References

  1. ^ Celis, Pedro; Franco, John (1995), The Analysis of Hashing with Lazy Deletions, Computer Science Department, Indiana University, CiteSeerX 10.1.1.39.9637, Technical Report CS-86-14
  2. ^ Celis, Pedro; Franco, John (1992), "The analysis of hashing with lazy deletions", Information Sciences, 62 (1–2): 13–26, CiteSeerX 10.1.1.39.9637, doi:10.1016/0020-0255(92)90022-Z