Skip to content

Instantly share code, notes, and snippets.

@viveksyngh
Last active May 20, 2019 19:05
Show Gist options
  • Save viveksyngh/9370a8abeb6b909e0b562ed0e141d31f to your computer and use it in GitHub Desktop.
Save viveksyngh/9370a8abeb6b909e0b562ed0e141d31f to your computer and use it in GitHub Desktop.
Bloom Filter test operations
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