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
MongoDB Atlas runs apps anywhere Icon
MongoDB Atlas runs apps anywhere

Deploy in 115+ regions with the modern database for every enterprise.

MongoDB Atlas gives you the freedom to build and run modern applications anywhere—across AWS, Azure, and Google Cloud. With global availability in over 115 regions, Atlas lets you deploy close to your users, meet compliance needs, and scale with confidence across any geography.
Start Free
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