Bloom filter in JavaScript
Lobsters·13 points·darthdeus·over 8 years ago·nlogn.xyz
<p>A Bloom filter is a simple yet powerful data structure. It allows you to answer the question have you seen this before? in a very fast and memory efficient way. Unlike a regular set, a Bloom filter only needs to store a few bits per item instead of storing the whole thing. The trick is, a Bloom filter will be able to tell you if something is not present in the set with 100% certainty, but if you ask it if something is present in the set, you might get a false positive. That means the response could be true, even if the item was never stored in the set.</p>
Read the full article at nlogn.xyz →
Related stories
- Lobsters · 3 points · over 7 years ago
- JavaScript for Kids | No Starch Pressnostarch.comLobsters · 1 points · over 11 years ago
- DEV Community · 2 points · 5 days ago
- Lobsters · 2 points · about 11 years ago
- From WordPress to JS. A Tale of a Full Stack JavaScript Blogthefullstack.xyzLobsters · 0 points · about 9 years ago
- Lobsters · 3 points · 9 days ago