Which of the following trait of a hash function is most desirable?

Which of the following trait of a hash function is most desirable?
A. it should cause less collisions
B. it should cause more collisions
C. it should occupy less space
D. it should be easy to implement
 
Answer: a
Explanation: Hash function calculates and returns the index for corresponding data. So the most important trait of a hash function is that it should cause a minimum number of collisions.
 

Tìm kiếm

Back
Top