A Bloom filter is a concise/compressed representation of a set, where the main requirement is to make membership queries; i.e., whether an item is a member of a set. A Bloom filter will always correctly report the presence of an element in the set when the element is indeed present. A Bloom filter can use much less storage than the original set, but it allows for some 'false positives': it may sometimes report that an element is in the set whereas it is not. When you construct, you need to know how many elements you have (the desired capacity), and what is the desired false positive rate you are willing to tolerate. A common false-positive rate is 1%. The lower the false-positive rate, the more memory you are going to require. Similarly, the higher the capacity, the more memory you will use. You may construct the Bloom filter capable of receiving 1 million elements with a false-positive rate of 1%.

Features

  • You should call NewWithEstimates conservatively
  • Our implementation accepts keys for setting and testing as []byte
  • Sometimes, the actual false positive rate may differ (slightly) from the theoretical false positive rate
  • A Bloom filter has two parameters: m, the number of bits used in storage, and k, the number of hashing functions on elements of the set
  • When you construct, you need to know how many elements you have (the desired capacity), and what is the desired false positive rate you are willing to tolerate
  • A Bloom filter can use much less storage than the original set

Project Samples

Project Activity

See All Activity >

Categories

Frameworks

License

BSD License

Follow Bloom filters

Bloom filters Web Site

Other Useful Business Software
Agentic AI SRE built for Engineering and DevOps teams. Icon
Agentic AI SRE built for Engineering and DevOps teams.

No More Time Lost to Troubleshooting

NeuBird AI's agentic AI SRE delivers autonomous incident resolution, helping team cut MTTR up to 90% and reclaim engineering hours lost to troubleshooting.
Learn More
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Bloom filters!

Additional Project Details

Operating Systems

Linux, Mac, Windows

Programming Language

Go

Related Categories

Go Frameworks

Registered

2023-01-27