Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Suppose there are m distinct integers a1, ..., Am which are each drawn from the universe U = {0, 1, 2, 3, ..., n 1}.

image text in transcribed

Suppose there are m distinct integers a1, ..., Am which are each drawn from the universe U = {0, 1, 2, 3, ..., n 1}. We would like to choose a random hash function h from a family H so that for all i + j, h(ai) # h(az), that is, the set {a1, ..., Am} is perfectly hashed under h. We have seen that if H is universal and has range size M = (m2), then a random h in H has this property with constant probability. However, for the the hash function families we saw, specifying a random h in H requires at least log n bits. We would like to use fewer random bits when m is much less than n. Suppose we pick a random prime p among the first 10m2. log2 n primes. Define the map h:U + {0, 1, 2, ..., 10m2 1} given by h(y) = g(y mod p), where g is a universal hash function with range size 10m. Argue that h has the above perfect hashing property with probability at least 9/10. How many bits do we need to specify h? Suppose there are m distinct integers a1, ..., Am which are each drawn from the universe U = {0, 1, 2, 3, ..., n 1}. We would like to choose a random hash function h from a family H so that for all i + j, h(ai) # h(az), that is, the set {a1, ..., Am} is perfectly hashed under h. We have seen that if H is universal and has range size M = (m2), then a random h in H has this property with constant probability. However, for the the hash function families we saw, specifying a random h in H requires at least log n bits. We would like to use fewer random bits when m is much less than n. Suppose we pick a random prime p among the first 10m2. log2 n primes. Define the map h:U + {0, 1, 2, ..., 10m2 1} given by h(y) = g(y mod p), where g is a universal hash function with range size 10m. Argue that h has the above perfect hashing property with probability at least 9/10. How many bits do we need to specify h

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Beginning ASP.NET 4.5 Databases

Authors: Sandeep Chanda, Damien Foggon

3rd Edition

1430243805, 978-1430243809

More Books

Students also viewed these Databases questions

Question

What is the EPEAT tool? How is it used?

Answered: 1 week ago

Question

Graph f(x) = 2(x + 1) 2 - 4 using transformations.

Answered: 1 week ago