Giter Site home page Giter Site logo

What is the max count number about dablooms HOT 1 CLOSED

bitly avatar bitly commented on June 18, 2024
What is the max count number

from dablooms.

Comments (1)

ploxiln avatar ploxiln commented on June 18, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.