
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

Closed books. Closed Notes. Calculators OK. 20 points. 10 minutes. Weight of each question in parentheses. Please use a pencil. If you need more space, use the back of the sheet. Insert the following values: 5 18 31 44 9 12 15 11 7 into an initially empty hash table using the hash function: f(x) = (x + 3)% a) (10) Show the final contents of the array if the collision handling method is quadratic probing b) (10) Show the final contents of the array if the collision handling method is double hashing. Use f 2 (x) = 11 – (x % 11) as the second hash function.