How can a Bloom filter say no for sure?
A lesson on Bloom filters (Wikipedia). Computing, college level.
To check an item, do the same first step.
Give it to all k hash functions and get k positions.
Now look at those boxes.
If any box holds 0, the item is definitely not in the set.
If it had been added, that box would be 1.
If every box holds 1, the item is probably in the set.
Other items may have set those boxes to 1.
Questions in this lesson
- A club keeps a guest list, but you only get a few quick clues about it. Which clue would let you say for sure that someone is NOT on the list?
- In your own words, why does one 0 box mean the item is definitely not in the set, but all 1s only mean maybe?