{
  "slug": "bloom-filter",
  "term": "Bloom filter",
  "aliases": [
    "Bloom membership filter"
  ],
  "definition": "A compact approximate-membership structure that can reject absent keys but may report a false positive, without false negatives for correctly inserted keys in an intact standard filter.",
  "note": "A positive answer requires checking the underlying data. The false-positive denominator is queries for keys absent from the represented set, not all queries. This is not an integrity checksum. The represented set may be whole keys or extracted prefixes; prefix membership and range emptiness are not interchangeable. The pinned RocksDB filter-policy API requires compatibility with comparator equality. [filter-policy]\n\nFor independent uniform hashes with replacement, a realized filter with x set bits out of m and k query addresses has conditional false-positive probability (x/m)^k. Averaging this power across random constructions differs from raising mean occupancy to k. [finite-bloom] Blocked layouts also depend on the distribution of occupied bits and absent queries across blocks. [hesela]\n\nDouble hashing derives query positions from two base hashes. Kirsch and Mitzenmacher prove asymptotic agreement with standard Bloom filtering for independent fully random base hashes and fixed bits-per-key and probe count as the set grows. This is not finite-size equality or independence of the derived positions; the occupancy-only calculation above cannot simply be reused for that scheme. [double-hashing]\n\nFor fixed bits and hash functions, a repeated absent key repeats its answer: after a false positive, it is positive with probability 1 until the filter changes. Adaptive guarantees bound queries after earlier answers; a low initial FPR is insufficient. [adaptive-amq]\n\nSupport-optimal bounds for a predetermined sequence do not imply adversarial adaptivity. [support-optimality] Telescoping-filter block resets can lose earlier corrections; its local-space budget excludes remote state, and the described design does not support deletion. [telescoping-filter]",
  "related": [
    "hyperloglog",
    "lsm-tree",
    "sstable",
    "ribbon-filter",
    "partitioned-filter",
    "prefix-bloom-filter",
    "prefix-extractor",
    "succinct-range-filter",
    "invertible-bloom-lookup-table",
    "cuckoo-filter",
    "xor-filter",
    "binary-fuse-filter",
    "stable-bloom-filter",
    "counting-bloom-filter",
    "blocked-bloom-filter",
    "lsm-tombstone",
    "fragmented-lsm-tree",
    "monkey",
    "scalable-bloom-filter",
    "learned-bloom-filter",
    "quotient-filter",
    "lsm-trie",
    "daisy-bloom-filter",
    "skimpystash",
    "brin",
    "bufferhash"
  ],
  "citations": [
    {
      "id": "bloom",
      "title": "Bloom. Space/time trade-offs in hash coding with allowable errors. CACM 13(7), 1970. DOI: 10.1145/362686.362692.",
      "url": "https://courses.cs.washington.edu/courses/csep521/21wi/readings/bloom_cacm.pdf",
      "accessed": "2026-10-12"
    },
    {
      "id": "rocks-bloom",
      "title": "RocksDB project. RocksDB Bloom Filter: statistics, full filters and implementation trade-offs. Documentation reviewed 12 October 2026.",
      "url": "https://github.com/facebook/rocksdb/wiki/RocksDB-Bloom-Filter",
      "accessed": "2026-10-12"
    },
    {
      "id": "hesela",
      "title": "Hesela: Bloom filters and the cost of an absent LSM lookup",
      "url": "https://hesela.com/analyses/bloom-filters-lsm-read-cost/",
      "accessed": "2026-10-12"
    },
    {
      "id": "filter-policy",
      "title": "RocksDB v9.7.3. FilterPolicy: custom comparator compatibility warning.",
      "url": "https://github.com/facebook/rocksdb/blob/v9.7.3/include/rocksdb/filter_policy.h",
      "accessed": "2026-10-13"
    },
    {
      "id": "finite-bloom",
      "title": "Bose et al. On the false-positive rate of Bloom filters. Author-hosted manuscript, introduction and section 2.",
      "url": "https://people.scs.carleton.ca/~maheshwa/papers/bloom-ipl.pdf",
      "accessed": "2026-10-17"
    },
    {
      "id": "double-hashing",
      "title": "Kirsch and Mitzenmacher. Less Hashing, Same Performance: Building a Better Bloom Filter. RSA 33, 2008, sections 5-6 and 8. DOI: 10.1002/rsa.20208.",
      "url": "https://www.eecs.harvard.edu/~michaelm/postscripts/rsa2008.pdf",
      "accessed": "2026-11-03"
    },
    {
      "id": "adaptive-amq",
      "title": "Bender et al. Bloom Filters, Adaptivity, and the Dictionary Problem. arXiv:1711.01616v3 (2018), sections 1-4.",
      "url": "https://arxiv.org/abs/1711.01616v3",
      "accessed": "2026-11-05"
    },
    {
      "id": "support-optimality",
      "title": "Kopelowitz, McCauley and Porat. Support Optimality and Adaptive Cuckoo Filters. arXiv:2105.10622v1 (2021), sections 1, 3 and 5.",
      "url": "https://arxiv.org/abs/2105.10622v1",
      "accessed": "2026-11-05"
    },
    {
      "id": "telescoping-filter",
      "title": "Lee, McCauley, Singh and Stein. Telescoping Filter: A Practical Adaptive Filter. arXiv:2107.02866v1 (2021), sections 2.2, 4 and appendix B.1.",
      "url": "https://arxiv.org/abs/2107.02866v1",
      "accessed": "2026-11-05"
    }
  ],
  "status": "shipping",
  "advantages": [],
  "limitations": [],
  "supersedes": [],
  "supersededBy": [],
  "firstSeen": null,
  "lastSeen": null,
  "updated": "2026-11-30"
}
