Answered step by step
Verified Expert Solution
Link Copied!

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.

image text in transcribed

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

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_2

Step: 3

blur-text-image_3

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

Beginning Microsoft SQL Server 2012 Programming

Authors: Paul Atkinson, Robert Vieira

1st Edition

1118102282, 9781118102282

More Books

Students also viewed these Databases questions