|
|
|
|
|
by magicalhippo
3172 days ago
|
|
The article states a Bloom filter is "guaranteed to report correctly if it contains the item", however a Bloom filter cannot do this. The bits set by the various hash functions could very well be set due to some other key. What the Bloom filter _can_ say, is that if none of the bits are set, then clearly the key was never inserted. |
|
I think what's going on here is that you're reading "if" as meaning "whether". In fairness, this is common English usage: "I'll tell you tomorrow if I'm going" usually means "I'll tell you tomorrow whether I'm going".
That's not what the OP means. The correct reading is perhaps clarified with a comma:
> A Bloom filter is guaranteed to report correctly, if it contains the item.
or perhaps better
> If it contains the item, a Bloom filter is guaranteed to report correctly.