← All stories
● Covered by 1 source · 1 reportLow impact1 neutral

One Hash Bloom Filters Explained

🔄 Updated 17d ago
New to BrevFeed? We gather this story from every outlet covering it into one summary — ranked by real-world impact, not just the latest headline — so you never miss what matters. What is BrevFeed? →

Key points

  • Bloom filters are probabilistic data structures for set membership testing.
  • They offer low memory usage and computational cost.
  • Traditional Bloom filters use multiple hash functions.
  • Double hashing can achieve similar false positive rates with fewer computations.

Bloom Filter Basics

A Bloom filter is a probabilistic data structure that efficiently determines if a key is likely present in a set. It can definitively state a key is not in the set, or probabilistically state it is. Users select an acceptable false positive rate for their specific workload.

These filters use minimal memory relative to the set's size and are computationally inexpensive. This makes them suitable for high-performance data systems, such as databases, to reduce disk I/O, and in backend systems like Bluesky to minimize database queries.

Traditional Bloom Filter Operation

A standard Bloom filter consists of a bit array and 'k' hash functions. The size of the array and 'k' are chosen beforehand to achieve a desired false positive rate. To add a key, it is run through all 'k' hash functions, and the bits at the resulting locations in the array are set.

To check for a key's presence, it is hashed 'k' times, and the corresponding bit locations are checked. If any bit is zero, the key is definitely not in the set. If all bits are one, the key is probably in the set.

Optimizing with Double Hashing

While Bloom filters are efficient, computing 'k' independent hashes per key can still be resource-intensive for very high-performance systems. Research by Kirsch and Mitzenmacher in 2008 demonstrated that two hash functions can achieve comparable results.

By deriving the i-th location using the formula (hash_1 + i*hash_2) % n, where 'n' is the array size, the false positive rate remains effectively the same as using 'k' independent hashes, reducing the computational overhead.

✨ This summary was generated by AI from the outlets' reporting listed below. It is not independently verified and may contain errors — check the original sources. How BrevFeed works →

The daily brief

One email each morning: the day's tech stories, clustered across outlets and summarized. No account needed.

One email a day. Unsubscribe in one click, any time.

Today's brief

Spend a few minutes, get the whole day. Every topic's top stories in one hands-free rundown — listen, watch, or read the transcript.

~4 min · 3 stories · Nov 07

▶ Play today's brief Listen on Spotify

New every morning, and the back catalogue is archived by date.

Reporting from

This article explains how Bloom filters work, their use cases, and introduces the concept of "one hash" Bloom filters. It details how two hash functions can achieve similar results to multiple independent hashes, reducing computational cost.