Command Palette

Search for a command to run...

Hectal
Phase 2Intermediate3 of 12 in Bloom Filters

Hash Functions

What a Bloom filter needs from its hashes, why production filters use double hashing from one 128-bit hash, and how to detect and fix bad distribution.

The false-positive formula assumes perfect, independent hashes. Real implementations get very close to that with fast non-cryptographic hashes and a trick that derives all k positions from two values. Get hashing wrong and the filter quietly performs far worse than its maths says.

0/3 · 0%
3 topics ~22 min 3 code blocks & diagrams
Start with the first topic