1.

Which of the following hash function classifies data into the highest number of buckets ?(a) Sum of digits modulo 8(b) Sum of digits modulo 5(c) Sum of digits modulo 2(d) Sum of digitsThis question was addressed to me in final exam.This key question is from Dynamic Hashing topic in portion Indexing and Hashing of RDBMS

Answer»

Correct choice is (d) SUM of DIGITS

To explain I would say: The sum of the digits hash function CLASSIFIES the data into 10 DIFFERENT buckets thus MAKING it the highest.



Discussion

No Comment Found

Related InterviewSolutions