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

Aboun “delete item” #46

Open
936187425 opened this issue Apr 7, 2023 · 1 comment
Open

Aboun “delete item” #46

936187425 opened this issue Apr 7, 2023 · 1 comment

Comments

@936187425
Copy link

I see your note that deleting item is sure that the deleted item must be the filter.
May I ask if the principle of a cuckoo filter requires the deleted element to be included in the filter when deleting elements?

@burdges
Copy link

burdges commented Apr 9, 2023

It depends upon usage, but I think cuckoofilters typically preserve the whole original key inside the entry, with which they avoids removing a collision. In principle, you only need derived key parts, so then remove risks removing a collision incorrectly, due to hash collisions. I doubt anyone uses cryptographic hashes, like 128 or really 256 bits, but those avoid collisions without storing the original key of course.

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

2 participants