Question: (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

(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

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!