A bloom filter is composed of a bit array of bits. We are told that the filter is designed to be optimally performing when there are entries.
Given that the filter is filled with entries, what is the expected number of queries one has to perform to perform to get a false positive?
If your answer is , enter the value of .
Notation : denotes the floor function .
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.
Substituting for the optimal k = k ∗ probability of a false positive is ≈ 2 − k ∗ . Hence we need 2 k ∗ insertion in expectation to get a false positive. Now from the formula, we have k ∗ = ln ( 2 ) 2 8 and the answer may be readily computed.