Last active
May 20, 2019 19:05
-
-
Save viveksyngh/9370a8abeb6b909e0b562ed0e141d31f to your computer and use it in GitHub Desktop.
Bloom Filter test operations
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| def add(item): | |
| for hash_function in hash_functions: | |
| index = hash_function(item) % m | |
| bit_array[index] = True |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment