Suppose that we have a hash table with n slots, with collisions resolved by chaining, and suppose
Question:
a. Argue that the probability Qk that exactly k keys hash to a particular slot is given by Qk = (1/n)k(1 1/n) nk (n/k)..
b. Let Pk be the probability that M = k, that is, the probability that the slot containing the most keys contains k keys. Show that Pk ≤ n Q k..
c. Use Stirling's approximation, equation (3.17), to show that Qk d. Show that there exists a constant c > 1 such that for k0 = clg n/ lg lg n. Conclude that Pk e. Argue that
Conclude that E[M] = O(lg n/ lg lg n)..
Fantastic news! We've Found the answer you've been seeking!
Step by Step Answer:
Related Book For
Computer organization and architecture designing for performance
ISBN: 978-0136073734
8th edition
Authors: william stallings
Question Posted: