Skip to content

Updating key that collides with deleted item causes dead items #42

@ghost

Description

Say A and B collide at attempt = 0. If we do the following

  • insert("A", <value of A>)
  • insert("B", <value of B>)
  • delete("A")
  • insert("B", <new value>)

The second B will be inserted where A used to be, at hash("B", n, 0), and the B at hash("B", n, 1) will become wasted space. Further, if we then call delete("B"), B will just be restored to its original value, rather than actually being deleted.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions