Click to See Complete Forum and Search --> : Hashing Quest


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)

TheCPUWizard
December 6th, 2004, 08:26 PM
Soulds suspicously like a homework/exam question.....

bdadbin
December 7th, 2004, 02:50 AM
you must be a rocket scientist, b/c no one could have figured that one out. impressive.