Part 6: Quotient Filters - the Theory
In the previous articles of this series, we saw Bloom Filters, with restrictions on removing added values. Here we'll see Quotient Filters, which free the caller from those limits. Quotient Filters Bloom Filters answer one question cheaply: "Have I possibly seen this value before?" An SBF cannot support removals, and a CBF can, albeit at a cost: it requires more memory, and to ensure a removal…
Quotient Filters (QFs) offer a solution to the limitations of Bloom Filters when it comes to removing added values. Unlike Bloom Filters, QFs can support removals without incurring significant memory overhead. The main innovation behind QFs lies in their structure, which computes a single hash per item and splits it into two parts: a quotient and a remainder.
The quotient determines a slot in the filter, while the remainder is stored as a fingerprint within that slot. This approach allows QFs to retain enough information to support removals, using memory close to that of a Bloom Filter.
Written by urgent.news from Dev.to's reporting — not their text. Machine-written — may contain errors; check the original before relying on it.