Fish Touching🐟🎣

Bloom Filter

Nov 3, 2023

# What

A space-efficient probabilistic data structure to test whether an element is a member of a set.
Only false positive, no false negative.

# Implementation

Use $n$ bits array and $m$ hashing functions. Apply all $m$ functions to the input and $\mod n$, then we can set all $m$ results bits to 1.

# Design


There is also another filter called cuckoo filter, which should be practically better than bloom filter since it supports deletion.