Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

If we hash a set S of n keys into a table of size n with a universal hash function h, what is the expected

image text in transcribed

If we hash a set S of n keys into a table of size n with a universal hash function h, what is the expected mazimum number of keys that collide? In other words, what is the maximum number of keys that are expected to hash to the same location? We break down this computation into a sequence of easier steps, as follows Let Aj be the event that at least one slot in the hash table has 2 j keys. We compute the largest j for which ProblA] 1/2; that j is our answer. Calculating A, directly is not straightforward, so we proceed as follows. In all cases, explain your reasoning (a) Let Aj be the event that the table slot 1 gets 2 j keys under h. Supposing you know ProblA, give an upper bound on Prob[A] (b) Let B be the event that a fired subset C C S of size IC-J hashes into slot 1 That is, each key of C maps to slot 1 under h. Calculate the probability Prob B (c) Use ProblB] to get an upper bound on the probability Prob A] (d) Compute the largest value of j for which Prob[4] . Explain how in combi- nation with (a), this j is the expected maximum number of collisions If we hash a set S of n keys into a table of size n with a universal hash function h, what is the expected mazimum number of keys that collide? In other words, what is the maximum number of keys that are expected to hash to the same location? We break down this computation into a sequence of easier steps, as follows Let Aj be the event that at least one slot in the hash table has 2 j keys. We compute the largest j for which ProblA] 1/2; that j is our answer. Calculating A, directly is not straightforward, so we proceed as follows. In all cases, explain your reasoning (a) Let Aj be the event that the table slot 1 gets 2 j keys under h. Supposing you know ProblA, give an upper bound on Prob[A] (b) Let B be the event that a fired subset C C S of size IC-J hashes into slot 1 That is, each key of C maps to slot 1 under h. Calculate the probability Prob B (c) Use ProblB] to get an upper bound on the probability Prob A] (d) Compute the largest value of j for which Prob[4] . Explain how in combi- nation with (a), this j is the expected maximum number of collisions

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

Database And Expert Systems Applications 23rd International Conference Dexa 2012 Vienna Austria September 2012 Proceedings Part 1 Lncs 7446

Authors: Stephen W. Liddle ,Klaus-Dieter Schewe ,A Min Tjoa ,Xiaofang Zhou

2012th Edition

3642325998, 978-3642325991

More Books

Students also viewed these Databases questions