by panic · 9y ago · 0 comments
Most counting bloom filters handle this situation by using saturating arithmetic: once the count hits the maximum, it remains stuck there, never decrementing again until the filter is completely cleared (see WebKit's implementation, for example: https://github.com/WebKit/webkit/blob/master/Source/WTF/wtf/...). This maintains the Bloom Filter Guarantee™ that you can get false positives but never false negatives.
There's a paper linked in the blog post that goes into a lot of detail about minimizing false negative probability.