Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Consider you are deciding among four hash functions (h1, h2, h3, h4) and the following keys: key 12 34 45 58 67 78 85 88

Consider you are deciding among four hash functions (h1, h2, h3, h4) and the following keys:

key 12 34 45 58 67 78 85 88 95
h1(key) 2 4 5 8 7 8 5 8 5
h2(key) 5 6 6 2 4 1 1 4 4
h3(key) 3 7 3 2 4 6 4 7 5
h4(key) 4 2 0 0 3 6 5 0 7

a. Explain a criterion that measures the effectiveness of a hash function. Specify if you would like the criterion to be maximized or minimized.

b. Using the criterion, measure each hash function and indicate which hash function is more effective (indicate ties if any)

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

Step: 3

blur-text-image

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

More Books

Students also viewed these Databases questions