Created
December 7, 2019 03:04
-
-
Save diogodanielsoaresferreira/a12fdfbfa87bb0cb9b354f62203c7661 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 check_is_not_in_filter(self, item): | |
for i in range(self.number_hash_functions): | |
if self.bloom_filter[self._hash(item, i)] == 0: | |
return True | |
return False |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment