Hash Tables on Data Structure and Algorithms related Questions and Answers


Question :   Which of the following is the hashing function for separate chaining?
1. H(x)=(hash(x)+f(i)) mod table size
2. H(x)=hash(x)+i2 mod table size
3. H(x)=x mod table size
4. H(x)=x mod (table size * 2)
Answer :   3 - H(x)=x mod table size  

* Be the First to Post a Comment.

Submit comment :


Captcha Image
Reload

Ask Question

Captcha Image
Reload

Note : Name and Email never shown.





Subscribe


Become a part of EducationForever. Subscribe to our FREE Newsletter