Comments (1)
Do you mean, the maximum number of times the same key can be added?
The counters are 4 bits, so they can count from 0 up to 15. But there are collisions of individual bits in a bloom filter (which is what allows it to "record" the fingerprint of more keys than a hash table in the same amount of space). So I'd suggest not adding more than 2 or 3 of the exact same key.
So, it's not really useful for adding multiple of the same key. You should probably make sure you only add one of a particular key, by checking before adding. The counting is only sufficient to allow you to remove a key, even with the inevitable collisions of some bits. The bins count up enough that if you're getting enough collisions to overflow some counts from unique keys, the bloom filter is way too full already, the scalable bloom filter would have already started on a new bloom.
Also, this repo isn't really maintained anymore, fwiw :)
from dablooms.
Related Issues (16)
- counting_bloom stand-alone creation functions need work HOT 2
- counting_bloom_add() segfaults HOT 3
- make install_pydablooms ignores PREFIX argument HOT 3
- Invalid keyword arguments to pydablooms segfaults HOT 1
- Can't delete Go bloom filter HOT 1
- pydablooms compilation failing on OSX 10.8.5 HOT 4
- Proper "Bloom filter" capitalization HOT 1
- pydablooms compiling in Ubuntu 12.04 64bit HOT 1
- pydablooms compiling in OS X Mavericks 64bit HOT 4
- Force counts_per_func to nearest prime > counts_per_func ?
- about the Makefile HOT 2
- undefined reference to `log`, `ceil`, `pow` HOT 4
- build broken on linux
- error in free_counting_bloom.
- Cant build
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from dablooms.