Question
Suppose that you built a Bloom filter for a dictionary of words with $m=2^{b}$ bits. A co-worker building an application wants to use your Bloom filter but has only $2^{b-1}$ bits available. Explain how your colleague can use your Bloom filter to avoid rebuilding a new Bloom filter using the original dictionary of words.
Step 1
First, we have a Bloom filter with $m = 2^b$ bits, which is built for a dictionary of words. This Bloom filter uses a set of hash functions to map each word in the dictionary to a specific set of bits in the bit array. Show more…
Show all steps
Your feedback will help us improve your experience
Nick Johnson and 81 other educators are ready to help you.
Ask a new question
Labs
Want to see this concept in action?
Explore this concept interactively to see how it behaves as you change inputs.
Key Concepts
Recommended Videos
Bloom filters can be used to estimate set differences. Suppose you have a set $X$ and I have a set $Y$, both with $n$ elements. For example, the sets might represent our 100 favorite songs. We both create Bloom filters of our sets, using the same number of bits $m$ and the same $k$ hash functions. Determine the expected number of bits where our Bloom filters differ as a function of $m, n, k$, and $|X \cap Y|$. Explain how this could be used as a tool to find people with the same taste in music more easily than comparing lists of songs directly.
If $m$ is a positive integer less than $2^{n-1}$ , how is the one's complement representation of $-m$ obtained from the one's complement of $m,$ when bit strings of length $n$ are used?
Number Theory and Cryptography
Integer Representations and Algorithms
Transcript
Watch the video solution with this free unlock.
EMAIL
PASSWORD