1.

What is the hash function used in the division method?(a) h(k) = k/m(b) h(k) = k mod m(c) h(k) = m/k(d) h(k) = mmod kMy question comes from Hash Tables topic in portion Hash Tables of Data Structures & Algorithms II have been asked this question in quiz.

Answer»

Correct choice is (b) H(k) = k MOD m

For explanation: In division method for creating hash functions,k keys are mapped into ONE of m SLOTS by TAKING the reminder of k divided by m.



Discussion

No Comment Found

Related InterviewSolutions