Question

Suppose a hash table contains k buckets and holds n values, where k, n≥2, and suppose...

Suppose a hash table contains k buckets and holds n values, where
k, n≥2, and suppose that the hash function obeys the simple uniform hashing
assumption:

- Hash function distributes records among the buckets randomly, each with equal probability

- Each record's location is independent of the location of all the other records


(a) What is the expected number of buckets that contain exactly 1 value?
Hint: Define Ej,m as the event that bucket j contains exactly the mth value,
and no other values. Then define Ej as the event that bucket j contains
exactly one value. Find Pr(Ej), using the fact that Ej is the union of the
disjoint events Ej,m. Finally, define indicator variables Ij for each event
Ej, and use linearity of expectation to find the answer.
(b) What is the expected number of buckets that contain 2 or more values?
Hint: Use the values from the previous calculation and from
Example 29.32, instead of calculating this directly.

Homework Answers

Know the answer?
Your Answer:

Post as a guest

Your Name:

What's your source?

Earn Coins

Coins can be redeemed for fabulous gifts.

Not the answer you're looking for?
Ask your own homework help question
Similar Questions
ADVERTISEMENT
Need Online Homework Help?

Get Answers For Free
Most questions answered within 1 hours.

Ask a Question
ADVERTISEMENT