We want to expand Bloom Filters by giving them the ability to delete keys as well. Since Bloom Filters can give false positives, we will not be able to check whether the item to be deleted has actually been added - instead, you just get to assume that the remove functions will never be called for items that have not been added previously. We want to keep an absolute guarantee that there will never be false negatives, that is, if a key k has been inserted into the Bloom Filter, the response must always be true when the Bloom Filter is queried for k. How would you change the implementation of the Bloom Filter to fix this problem? You don't need to give code or pseudo-code so long as your explanation is clear. Also discuss what you are sacrificing with this implementation.
Computer Science
We want to expand Bloom Filters by giving them the ability to delete keys as well. Since Bloom Filters can give false positives, we will not be able to check whether the item to be deleted has actually been added - instead, you just get to assume that the remove functions will never be called for items that have not been added previously.
We want to keep an absolute guarantee that there will never be false negatives, that is, if a key k has been inserted into the Bloom Filter, the response must always be true when the Bloom Filter is queried for k.
How would you change the implementation of the Bloom Filter to fix this problem? You don't need to give code or pseudo-code so long as your explanation is clear. Also discuss what you are sacrificing with this implementation.
Step by step
Solved in 2 steps