hashmap - Calculating a hash function -


there standard hash function take mod key in order define address. is, h(k) = k(mod) p (where p prime number).this called division method. have seen variation of "division method" first multiply key prime , take mod. example: h(k) = (k*17) mod 11. purpose multiply key prime (17,37...) before calculating mod?? improve distribution of keys?


Comments

Popular posts from this blog

c++ - CryptStringToBinary API behavior -

c++ - Correct method for redrawing a layered window -

java.util.scanner - How to read and add only numbers to array from a text file -