Suppose our stream consists of the integers 3 1 4 1 5 9 2 6


Do you see any problems with the choice of hash functions in Exercise 4.4.1? What advice could you give someone who was going to use a hash function of the form h(x) = ax + b mod 2k?

Exercise 4.4.1

Suppose our stream consists of the integers 3, 1, 4, 1, 5, 9, 2, 6, 5. Our hash functions will all be of the form h(x) = ax+ b mod 32 for some a and b. You should treat the result as a 5-bit binary integer. Determine the tail length for each stream element and the resulting estimate of the number of distinct elements if the hash function is:

Request for Solution File

Ask an Expert for Answer!!
Basic Computer Science: Suppose our stream consists of the integers 3 1 4 1 5 9 2 6
Reference No:- TGS01598716

Expected delivery within 24 Hours