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

Wrap around is not correct. #5

Open
karim-manaouil opened this issue Sep 7, 2017 · 0 comments
Open

Wrap around is not correct. #5

karim-manaouil opened this issue Sep 7, 2017 · 0 comments

Comments

@karim-manaouil
Copy link

karim-manaouil commented Sep 7, 2017

The implementation of Hopscotch lacks a technique to make a wrap around, the current algorithm is not correct in such a case. First, there should be a certain condition to check if Bucket[j] is in neighborhood of Bucket[i] when j < i (For instance bucket[0] is in neighborhood of Bucket[MapSize - 1]).

I've written an implementation in C that has a wrap around functionality. You can check it out at :https://github.com/karim-manaouil/Hashmaps

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