Broken Bloom Filters

A bloom filter is composed of a bit array of 2 16 2^{16} bits. We are told that the filter is designed to be optimally performing when there are 2 8 2^8 entries.

Given that the filter is filled with 2 8 2^8 entries, what is the expected number of queries one has to perform to perform to get a false positive?

If your answer is x x , enter the value of log 10 x \lfloor \log_{10} x \rfloor .

Notation : \lfloor \cdot \rfloor denotes the floor function .


The answer is 53.

This section requires Javascript.
You are seeing this because something didn't load right. We suggest you, (a) try refreshing the page, (b) enabling javascript if it is disabled on your browser and, finally, (c) loading the non-javascript version of this page . We're sorry about the hassle.

1 solution

Abhishek Sinha
Jul 12, 2016

Substituting for the optimal k = k k=k^* probability of a false positive is 2 k \approx 2^{-k^*} . Hence we need 2 k 2^{k^*} insertion in expectation to get a false positive. Now from the formula, we have k = ln ( 2 ) 2 8 k^*= \ln(2)2^8 and the answer may be readily computed.

how do we get the FP 2^k ? any formula to calculate it?

p w - 2 years, 4 months ago

0 pending reports

×

Problem Loading...

Note Loading...

Set Loading...