Created
December 7, 2019 03:03
-
-
Save diogodanielsoaresferreira/70caa3ff4d40bf24319adda433b8af72 to your computer and use it in GitHub Desktop.
This file contains 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_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