Bloom filters
A database has a thousand files on disk. To read one key, it would like to open only the files that might hold it. Is there a tiny summary that can say 'definitely not here' without storing the keys?
In this lesson you'll learn to
- Explain how a Bloom filter uses a bit array and several hash functions, and why it never gives a false negative.
- Reason about false positive rates and how bits per item and hash count control them.
- Recognise where Bloom filters save expensive lookups, such as LSM trees, caches and CDNs.
- Know their limits (no deletes, no listing) and the variants that address them.
Create a free account to open this lesson
It's free. You'll get every free lesson, quizzes that save your progress, daily flashcards and streaks.