Note: The detailed analysis required in Questions 4-6 will not be on the final exam, due to time constraints.
(b) What are the limitations of hash tables?
(c) Explain the collision problem in closed hashing.
(d) Given N data stored in a hash table with B buckets, explain why N/B represents the average number of data per bucket.
(b) [1 point] List the disadvantages of closed hashing in detail.
(c) [1 point] What is rehashing and how is it used?
(b) [2 points] What are two successful strategies for choosing c? Illustrate each choice with a diagram of the hash table that shows both successful and unsuccessful probes.
(b) [2 points] How full should the first and second level tables be to generate two or fewer probes per access at each level of the hashing scheme?
(b) [2 points] Graph the number of probes as a function of the fill factor ai = Ni/Bi, where i = 1..2. Here, Ni denotes the number of data stored at level i of the hashing scheme. List 5-8 data points (as pairs), so their values can be checked.
Hint: Recall the hash table efficiency graphs that we discussed in class.
(b) [2 points] Graph the number of probes as a function of the fill factor ai for each level, where M = 4. List 5-8 data points (as pairs), so they can be checked.
Copyright © 1999 by Mark S. Schmalz.