Answered step by step
Verified Expert Solution
Question
1 Approved Answer
7. Let H be a hash table of size 245 with the hash function h(K) = 15 * k mod 245 implemented using CHAINED hashing.
7. Let H be a hash table of size 245 with the hash function h(K) = 15 * k mod 245 implemented using CHAINED hashing. Explain why h is NOT a good hash function. 8. Consider a hash table implemented using CHAINED HASHING. Assume that there are n elements in the hash table and that the hash table size is n6/7. (a) What is the WORST CASE running time for retrieving an element from the hash table? Justify your solution. (b) What is the EXPECTED time for retrieving an element from the hash table? Justify your solution. 7. Let H be a hash table of size 245 with the hash function h(K) = 15 * k mod 245 implemented using CHAINED hashing. Explain why h is NOT a good hash function. 8. Consider a hash table implemented using CHAINED HASHING. Assume that there are n elements in the hash table and that the hash table size is n6/7. (a) What is the WORST CASE running time for retrieving an element from the hash table? Justify your solution. (b) What is the EXPECTED time for retrieving an element from the hash table? Justify your solution
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started