Bloom filter

Ever searched for a word in a dictionary and hoped it wouldn't lead to a wild goose chase?

Image: Nandanupadhyay, CC BY-SA 3.0, via Wikimedia Commons

Bloom filter

Ever searched for a word in a dictionary and hoped it wouldn't lead to a wild goose chase?

Imagine you're trying to find a specific word in a massive dictionary with limited memory on your computer.

You want to quickly check if a word is in the dictionary without loading the whole thing into memory. A Bloom filter helps by using less space and letting you know if a word might be there or definitely isn't.

Example

You have a Bloom filter with a memory capacity for 100 words. You add 90 words with simple rules and 10 with complex ones. When you search for a word, the filter tells you if it's possibly in the dictionary or definitely not, saving you from a memory overload.

Remember this

A Bloom filter lets you quickly guess if a word is in your dictionary without needing all the words stored in memory.

Related concepts

Swipe through 100 ML concepts daily

Open Pocket Polymath