Question: 2 Problem 2 (10 points total) Let's say you have a set S of n keys, all of which are in the universe U [1..26].

 2 Problem 2 (10 points total) Let's say you have a

2 Problem 2 (10 points total) Let's say you have a set S of n keys, all of which are in the universe U [1..26]. (As always, assume n much less than JU|) You want to build a dictionary for the set S. You decide to pick your hash function h [1.. .264]-> [1..n in the following way: Let b*- Rand (1....n) For all x let h(x)-11 mod n. The Problem: For every question below, you should briefly explain your answer. Part 1: (5 points) Show that this is not a universal hash function by showing two keys that have a high probability of collision. (state what that probability is.) . Part 2 (3 points): Show a set S of n keys such that with probability at least 1/3, n/2 keys in S all collide in the same spot (ie, there are n/2 keys in S that all hash to the same number.) Part 3 (2 points): For the set S in part 2, what would be expected time to do a search in this hash table in big-O notation

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!