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

Adding filters #21

Open
semaj opened this issue Mar 10, 2016 · 1 comment
Open

Adding filters #21

semaj opened this issue Mar 10, 2016 · 1 comment

Comments

@semaj
Copy link

semaj commented Mar 10, 2016

If I wanted to combine two filters of the same size, can I get the array forms and add the values at each respective index? (Then reserialize into another filter)

@pchaigno
Copy link
Contributor

Although I'm not sure what you mean by "reserialize into another filter", yes, you can add two Bloom filters. You will have to add binary values for each index such that:

0 + 0 = 0
0 + 1 = 1
1 + 1 = 1

You also have to keep in mind that, if your Bloom filters weren't created with this in mind, the operation might significantly increase the number of false positives.

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