






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!







CS 1501 Fall 2005 Midterm Exam 2 Name____________________________________
b) Assume that you are implementing double hashing. Let h 1 (x) be the primary hash function, and h 2 (x) be the secondary hash function. What is the probe sequence for an element x? The ith probe, i = 1, 2, …, n is (h 1 (x) + (i-1) h 2 (x)) mod n where n is the table size c) Assume that you are implementing a Bloom filter with the k hash functions h 1 , h 2 , …, hk, and a hash table/array H. Explain how to implement a SEARCH/FIND operation. A SEARCH(x) operation returns a Boolean that is true if and only if the key x was previously inserted. H[h 1 (x)] AND H[h 2 (x)] … AND H[hk(x)]
Students: Do not write on this page. Total Score: _________________________________