Consider a bitwise Bloom filter A1 and a counting Bloom filter A2, both of size m = 17. The hash functions used are h₁(k) = (k·13) mod m and h₂(k) = (k·19) mod m. The set S₁ = {49, 35, 83, 58, 34, 76, 63} is to be inserted into these filters. 1. Fill the bitwise Bloom filter A1 with the elements of S₁ and write the resulting filter. Then, do the same for the counting Bloom filter A2. 2. If you want to delete the number 34, can this be done in A₁? Justify your answer. Can this be done in A2? If yes, explain the process and justify its correctness. 3. Now, consider another set S₂ = {4, 76, 5, 7, 49, 97}, which has been inserted into a bitwise Bloom filter B₁ = [0, 1, 1, 1, 0, 0, 1, 1, 1, 0, 1, 0, 0, 1, 1, 0, 1] and a counting Bloom filter B2 = [0, 1, 1, 1, 0, 0, 1, 1, 2, 0, 1, 0, 0, 1, 2, 0, 1]. How can you compute the bitwise Bloom filter C1 and counting Bloom filter C2 for the union S = S₁ U S2 using A1, B1, A2, and B2? Justify your answers.

Database System Concepts
7th Edition
ISBN:9780078022159
Author:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Chapter1: Introduction
Section: Chapter Questions
Problem 1PE
icon
Related questions
Question
Consider a bitwise Bloom filter A1 and a counting Bloom filter A2, both of size m = 17. The hash
functions used are h₁(k) = (k·13) mod m and h₂(k) = (k·19) mod m. The set S₁ =
{49, 35, 83, 58, 34, 76, 63} is to be inserted into these filters.
1. Fill the bitwise Bloom filter A1 with the elements of S₁ and write the resulting filter. Then, do
the same for the counting Bloom filter A2.
2. If you want to delete the number 34, can this be done in A₁? Justify your answer. Can this be
done in A2? If yes, explain the process and justify its correctness.
3. Now, consider another set S₂ = {4, 76, 5, 7, 49, 97}, which has been inserted into a bitwise
Bloom filter B₁ = [0, 1, 1, 1, 0, 0, 1, 1, 1, 0, 1, 0, 0, 1, 1, 0, 1] and a counting Bloom filter
B2
=
[0, 1, 1, 1, 0, 0, 1, 1, 2, 0, 1, 0, 0, 1, 2, 0, 1]. How can you compute the bitwise Bloom
filter C1 and counting Bloom filter C2 for the union S = S₁ U S2 using A1, B1, A2, and B2?
Justify your answers.
Transcribed Image Text:Consider a bitwise Bloom filter A1 and a counting Bloom filter A2, both of size m = 17. The hash functions used are h₁(k) = (k·13) mod m and h₂(k) = (k·19) mod m. The set S₁ = {49, 35, 83, 58, 34, 76, 63} is to be inserted into these filters. 1. Fill the bitwise Bloom filter A1 with the elements of S₁ and write the resulting filter. Then, do the same for the counting Bloom filter A2. 2. If you want to delete the number 34, can this be done in A₁? Justify your answer. Can this be done in A2? If yes, explain the process and justify its correctness. 3. Now, consider another set S₂ = {4, 76, 5, 7, 49, 97}, which has been inserted into a bitwise Bloom filter B₁ = [0, 1, 1, 1, 0, 0, 1, 1, 1, 0, 1, 0, 0, 1, 1, 0, 1] and a counting Bloom filter B2 = [0, 1, 1, 1, 0, 0, 1, 1, 2, 0, 1, 0, 0, 1, 2, 0, 1]. How can you compute the bitwise Bloom filter C1 and counting Bloom filter C2 for the union S = S₁ U S2 using A1, B1, A2, and B2? Justify your answers.
Expert Solution
steps

Step by step

Solved in 2 steps

Blurred answer
Similar questions
  • SEE MORE QUESTIONS
Recommended textbooks for you
Database System Concepts
Database System Concepts
Computer Science
ISBN:
9780078022159
Author:
Abraham Silberschatz Professor, Henry F. Korth, S. Sudarshan
Publisher:
McGraw-Hill Education
Starting Out with Python (4th Edition)
Starting Out with Python (4th Edition)
Computer Science
ISBN:
9780134444321
Author:
Tony Gaddis
Publisher:
PEARSON
Digital Fundamentals (11th Edition)
Digital Fundamentals (11th Edition)
Computer Science
ISBN:
9780132737968
Author:
Thomas L. Floyd
Publisher:
PEARSON
C How to Program (8th Edition)
C How to Program (8th Edition)
Computer Science
ISBN:
9780133976892
Author:
Paul J. Deitel, Harvey Deitel
Publisher:
PEARSON
Database Systems: Design, Implementation, & Manag…
Database Systems: Design, Implementation, & Manag…
Computer Science
ISBN:
9781337627900
Author:
Carlos Coronel, Steven Morris
Publisher:
Cengage Learning
Programmable Logic Controllers
Programmable Logic Controllers
Computer Science
ISBN:
9780073373843
Author:
Frank D. Petruzella
Publisher:
McGraw-Hill Education