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.
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.
C++ Programming: From Problem Analysis to Program Design
8th Edition
ISBN:9781337102087
Author:D. S. Malik
Publisher:D. S. Malik
Chapter5: Control Structures Ii (repetition)
Section: Chapter Questions
Problem 7PE
Related questions
Question
Expert Solution
This question has been solved!
Explore an expertly crafted, step-by-step solution for a thorough understanding of key concepts.
Step by step
Solved in 2 steps
Recommended textbooks for you
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Operations Research : Applications and Algorithms
Computer Science
ISBN:
9780534380588
Author:
Wayne L. Winston
Publisher:
Brooks Cole
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning
Operations Research : Applications and Algorithms
Computer Science
ISBN:
9780534380588
Author:
Wayne L. Winston
Publisher:
Brooks Cole
Systems Architecture
Computer Science
ISBN:
9781305080195
Author:
Stephen D. Burd
Publisher:
Cengage Learning
Programming Logic & Design Comprehensive
Computer Science
ISBN:
9781337669405
Author:
FARRELL
Publisher:
Cengage
Np Ms Office 365/Excel 2016 I Ntermed
Computer Science
ISBN:
9781337508841
Author:
Carey
Publisher:
Cengage
EBK JAVA PROGRAMMING
Computer Science
ISBN:
9781337671385
Author:
FARRELL
Publisher:
CENGAGE LEARNING - CONSIGNMENT