GO-V.ORG
As seen in

Cuckoo filter

A cuckoo filter is an space-efficient probabilistic data structure that is used to test whether an element is a member of a set, like a Bloom filter does.[src] False positive matches are possible, but false negatives are not – in other words, a query returns either "possibly in set" or "definitely not in set".[src] A cuckoo filter can also delete existing items, which is not supported by Bloom filters.[src] In addition, for applications that store many items and target moderately low false positive rates, cuckoo filters can achieve lower space overhead than space-optimized Bloom filters.[src] Cuckoo filters were first described in 2014.[src]

A cuckoo filter is an space-efficient probabilistic data structure that is used to test whether an element is a member of a set, like a Bloom filter does.[src] False positive matches are possible, but false negatives are not – in other words, a query returns either "possibly in set" or "definitely not in set".[src] A cuckoo filter can also delete existing items, which is not supported by Bloom filters.[src] In addition, for applications that store many items and target moderately low false positive rates, cuckoo filters can achieve lower space overhead than space-optimized Bloom filters.[src] Cuckoo filters were first described in 2014.[src] ==Algorithm description== A cuckoo filter uses a hash table based on cuckoo hashing to store the fingerprints of items.[src] The data structure is broken into buckets of some size b .[src] To insert the fingerprint of an item x , one first computes two potential buckets h_1(x) and h_2(x) where x could go.[src] These buckets are calculated using the formula h_1(x)=\text{hash}(x) h_2(x)=h_1(x)\oplus\text{hash}(\text{fingerprint}(x)) Note that, due to the symmetry of the XOR operation, one can compute h_2(x) from h_1(x) , and h_1(x) from h_2(x) .[src] As defined above, h_2(x) = h_1(x)\oplus\text{hash}(\text{fingerprint}(x)) ; it follows that h_1(x) = h_2(x)\oplus\text{hash}(\text{fingerprint}(x)) .[src] These properties are what make it possible to store the fingerprints with cuckoo hashing.[src] The fingerprint of x is placed into one of buckets h_1(x) and h_2(x) .[src] If the buckets are full, then one of the fingerprints in the bucket is evicted using cuckoo hashing, and placed into the other bucket where it can go.[src] If that bucket, in turn, is also full, then that may trigger another eviction, etc.[src] The hash table can achieve both high utilization (thanks to cuckoo hashing), and compactness because only fingerprints are stored.[src] Lookup and delete operations of a cuckoo filter are straightforward.[src] There are a maximum of two buckets to check by h_1(x) and h_2(x) .[src] If found, the appropriate lookup or delete operation can be performed in O(b) time.[src] Often, in practice, b is a constant.[src] In order for the hash table to offer theoretical guarantees, the fingerprint size f must be at least \Omega((\log n) / b) bits.[src] Subject to this constraint, cuckoo filters guarantee a false-positive rate of at most \epsilon \le b/2^{f - 1} .[src] ==Comparison to Bloom filters== A cuckoo filter is similar to a Bloom filter in that they both are fast and compact, and they may both return false positives as answers to set-membership queries: Space-optimal Bloom filters use 1.44\log_2(1/\epsilon) bits of space per inserted key, where \epsilon is the false positive rate.[src] A cuckoo filter requires (\log_2(1/\epsilon) + 1 + \log_2 b)/\alpha space per key where \alpha is the hash table load factor, which can be 95.5\% based on the cuckoo filter's setting.[src] Note that the information theoretical lower bound requires \log_2(1/\epsilon) bits for each item.[src] Both bloom filters and cuckoo filters with low load can be compressed when not in use.[src] On a positive lookup, a space-optimal Bloom filter requires a constant \log_2(1/\epsilon) memory accesses into the bit array, whereas a cuckoo filter requires at most 2b memory accesses, which can be a constant in practice.[src] Cuckoo filters have degraded insertion speed after reaching a load threshold, when table expanding is recommended.[src] In contrast, Bloom filters can keep inserting new items at the cost of a higher false positive rate before expansion.[src] Bloom filters offer fast union and approximate intersection operations using cheap bitwise operations, which can also be applied to compressed bloom filters if streaming compression is used.[src] ==Limitations== A cuckoo filter can only delete items that are known to be inserted before.[src] Insertion can fail and rehashing is required like other cuckoo hash tables.[src] Note that the amortized insertion complexity is still O(1) .[src] Cuckoo filters require a fingerprint size f of at least \Omega((\log n) / b) bits.[src] This means that the space per key must be at least (\log n) / b bits, even if \epsilon is large.[src] In practice, b is chosen to be large enough that this is not a major issue.[src]

40 sentences · 40 cited inline · 0 references stored

References

No reference rows published for this article.

Cite this article

MLA

"Cuckoo filter." encyclopegia.org, 2026, https://encyclopegia.org/wiki/cuckoo-filter. Accessed 05 December 2026.

Chicago

"Cuckoo filter." encyclopegia.org. Accessed December 5, 2026. https://encyclopegia.org/wiki/cuckoo-filter.

APA

encyclopegia.org. (2026). Cuckoo filter. Retrieved December 5, 2026, from https://encyclopegia.org/wiki/cuckoo-filter

Accessed December 5, 2026 · CC BY-SA 4.0 · citation page · JSON

Related articles

Thick-billed Cuckoo

stub · references available

Cherry Filter

stub · references available

Pearly-breasted Cuckoo

stub · references available

Sumatran Ground Cuckoo

stub · references available

Red-chested Cuckoo

stub · references available

filter press

stub · references available

Great Spotted Cuckoo

stub · references available

packet filter

stub · references available
CC BY-SA 4.0 · share-alike · https://en.wikipedia.org/w/index.php?oldid=1378922778 · 0.5 · snapshot enwiki-001378922778

Cite · JSON · Search

Related services and records

Services

  • Estate — measured countries, lanes and facts
  • Intel — live corroborated events
  • Legal — statutes, cases and citations
  • Encyclopedia — articles with inline sources
  • Space — launches, satellites and orbits
  • Search — federated search and reports
  • Pass — passport account and SSO
  • Corpora — read-only corpus origins
  • e01 — self-hosted corpora and tools
  • Careers — open roles: frontier engineers and sales partners
  • Index — every corpus, paper and record
  • Estate guide — what a public data estate is
  • Founder — Lois-Kleinner Alpasan
  • Records — DOIs and external deposits
  • Documents — one-pagers, PDFs and QR codes
  • Brand kit — logos and share images
  • Papers — plain-language briefs with citations
  • Browser — search engine, PWA and bookmarklet
  • Anticloud — the operator and its projects

As seen in Business Insider · 336 outlets · evidence DOIs · plain-language papers

Text and metadata only; each target carries its own sources. Missing data is published as no-data, never estimated.