I am trying to understand the open addressing method. I refer to T. H. Cormen's book on this topic, which states that deletion is difficult in open addressing. I am completely stuck at this paragraph:
Deletion from an open-address hash table is difficult. When we delete a key from slot
i
, we cannot simply mark that slot as empty by storingNIL
in it. Doing so might make it impossible to retrieve any keyk
during whose insertion we had probed sloti
and found it occupied.
I don't understand this. Please explain it with some examples.