Skip to content

Instantly share code, notes, and snippets.

@diogodanielsoaresferreira
Created December 7, 2019 03:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save diogodanielsoaresferreira/70caa3ff4d40bf24319adda433b8af72 to your computer and use it in GitHub Desktop.
Save diogodanielsoaresferreira/70caa3ff4d40bf24319adda433b8af72 to your computer and use it in GitHub Desktop.
def add_to_filter(self, item):
for i in range(self.number_hash_functions):
self.bloom_filter[self._hash(item, i)] = 1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment