Question

Assume a Hash table has 7 slots and the hash function h(k) = k mod 7...

Assume a Hash table has 7 slots and the hash function h(k) = k mod 7 is used. The keys 14, 3, 11, 6, 10, 4, 20, and 17 are inserted in the table with collision resolution by chaining. Assume that the keys arrive in the order shown.

(a) Show the hash table obtained after inserting all 8 keys. [Show only the final table]

(b) Under the assumption that each key is searched with probability 1/8, calculate expected number of steps a successful search takes.

(c) Under the assumption of simple uniform hashing, calculate expected number of steps an unsuccessful search takes. [Note, now the probability is not 1/8 for unsuccessful search.]

0 0
Add a comment Improve this question Transcribed image text
Know the answer?
Add Answer to:
Assume a Hash table has 7 slots and the hash function h(k) = k mod 7...
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. Our experts will answer your question WITHIN MINUTES for Free.
Similar Homework Help Questions
ADVERTISEMENT
Free Homework Help App
Download From Google Play
Scan Your Homework
to Get Instant Free Answers
Need Online Homework Help?
Ask a Question
Get Answers For Free
Most questions answered within 3 hours.
ADVERTISEMENT
ADVERTISEMENT
ADVERTISEMENT