bdadbin
December 6th, 2004, 07:19 PM
Suppose you want to use hashing with linear probing on a table of size m, and have n keys to place in it, with n<m. In terms of m, what is the largest n can be and still guarentee O(1) average case performance when searching for a key?
a. (3 * m)/4
b. m/2
c. m/4
d. squareRoot(m)
a. (3 * m)/4
b. m/2
c. m/4
d. squareRoot(m)