Skip to content

fabiogaluppo/bloom_filter

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Bloom filter

C++ header-only Bloom filter data structure

Context

This probabilistic data structure was introduced in my algorithms course (Algoritmos com C++), then I'm sharing here as free code.

The first time I had to deal with a problem using Bloom filter was consuming the Guava library from Google.

So I felt like I needed to port and adapt to my favorite programming language: C++

After that, I've ported and adapted to C# in a commercial release, exploring its capabilities to solve the problem of Idempotent Consumer. Here is the result of my experience. Enjoy it!

C++ example

auto bf = bloom_filter::make_bloom_filter<std::string>(100, 0.01);
bf.add("hello");
bf.add("world");
bf.add("hello");
bf.exists("hello"); //true
bf.exists("C++");   //false

Bloom filter in action

Bloom filter in action

License

MIT

Free Software, Hell Yeah!

About

C++ header-only Bloom filter data structure

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages