Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Q: when is deleted entry reused? #2

Closed
dibyendumajumdar opened this issue Apr 10, 2023 · 1 comment
Closed

Q: when is deleted entry reused? #2

dibyendumajumdar opened this issue Apr 10, 2023 · 1 comment

Comments

@dibyendumajumdar
Copy link

Hi,

The readme says that:

When an insert collides, the insert
steps through the table using the reprobe stride until a free or dead entry is
found. 

But reading the code is my understanding correct that deleted entries are only reused if a free slot is not found?
If so, I am curious why.

@dibyendumajumdar
Copy link
Author

I think I understand it now, the chain has to be followed until the end, as there could be an entry after a deleted one that matches the key.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant