Better HN
topnewbestaskshowjobs
Log inSign up

afonsotsukamoto

1 karma · joined Nov 30, 2016 (10y ago) · 3 submissions

Submissions

comment 9y ago · link · parent

Definitely up to date :)

(open console on article and paste this hacky code for an automated version)

  [ ["carpenter", "Data Scientist"],
    ["brown", "Machine Learning"],
    ["walnut", "AI"], 
    ["rock", "Kubernetes"] ].map(function(r)
  {
      var rg = new RegExp(r[0], 'ig');
      document.body.innerHTML = document.body.innerHTML.replace(rg, r[1]);
  });

comment 9y ago · link · parent

ah! ok - I just had a "mind bending" moment after looking at the calculator + tekromancr's response.

I thought we would want to control the number of hash functions (k) and the number of items (n) but I guess the most common use case will be to set the allowed probability of a false positive for the number of allowed items and let the "system" control the k and m (hash functions and bits in the filter)

Enlightening!

One question remains though - since the number of bits (m) is a function of the probability of false positives (p) and the number of hash functions (k) is a function of the number of bits and the number of items (n), does it mean that once we start a bloom filter we can't update the number of items or the desired probability of false positives?

My assumption is that if we change p, then m will change, which would make the k functions "obsolete" as they're being "mapped" to a new sized m. Same for n, which would change the k functions, making it so that a new item would be hashed differently, making m hits/misses obsolete again.

Might be missing something here though.

Either way, I still find bloom filters a fascinating data structure.

comment 9y ago · link · parent

I do believe on the 100% confidence, but when you have full filter is that still meaningful? As in - are there still any gains on using a bloom filter in this case?

I know that is sort of a corner case, but in that situation the 100% confidence case happens 0% of the times which makes the filter a bit useless - no?

Just trying to understand what are the limitations as been super curious about bloom filters for a long time