Answered step by step
Verified Expert Solution
Question
1 Approved Answer
(3 points) Given a strict turnstile stream where every value is an integer in (1, N). Modify the count- sketch algorithm to report the elements
(3 points) Given a strict turnstile stream where every value is an integer in (1, N). Modify the count- sketch algorithm to report the elements such that (1) All elements that occur more than F1/3 times in the stream are reported. (2) Moreover, all elements that are reported occur at least F1/6 times. (a) Suppose that we don't care about the running time. Describe a simple algorithm that solves the problem by using the Count-Min Sketch. Your algorithm should succeed with probability at least 2/3 and uses Of(log n + log N). log N) bits of memory. Specify what values of e and 8 are used in your sketch. Explain why your algorithm succeeds with probability at least 2/3. (Hint: We know every key is an integer between 1 and N. Moreover, you can do whatever many queries in the end since we don't care about the running time. However, be careful with the failure probability because you are doing many queries.) (3 points) Given a strict turnstile stream where every value is an integer in (1, N). Modify the count- sketch algorithm to report the elements such that (1) All elements that occur more than F1/3 times in the stream are reported. (2) Moreover, all elements that are reported occur at least F1/6 times. (a) Suppose that we don't care about the running time. Describe a simple algorithm that solves the problem by using the Count-Min Sketch. Your algorithm should succeed with probability at least 2/3 and uses Of(log n + log N). log N) bits of memory. Specify what values of e and 8 are used in your sketch. Explain why your algorithm succeeds with probability at least 2/3. (Hint: We know every key is an integer between 1 and N. Moreover, you can do whatever many queries in the end since we don't care about the running time. However, be careful with the failure probability because you are doing many queries.)
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started