InterviewSolution
Saved Bookmarks
| 1. |
Which hash function satisfies the condition of simple uniform hashing?(a) h(k) = lowerbound(km)(b) h(k)= upperbound(mk)(c) h(k)= lowerbound(k)(d) h(k)= upperbound(k)I would like to ask this question from Hash Tables in chapter Hash Tables of Data Structures & Algorithms II got this question during an interview. |
|
Answer» correct OPTION is: (a) h(K) = lowerbound(km) If the keys are KNOWN to be random real numbers k independently and UNIFORMLY distributed in the range 0<=k<=1, the HASH function which satisfies the condition of simple uniform hashing is h(k)= lowerbound(km). |
|