






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
The cs 1501 fall 2005 midterm exam 2 for a computer science course. It includes various algorithm and data structure related questions, such as identifying compressible file types, implementing double hashing, explaining bloom filter search operation, estimating space requirements for graph data structures, computing fibonacci numbers, and more. The document also includes instructions for the students and some notes for spring 2006 students.
Typology: Exams
1 / 10
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: _________________________________