Good Values for Knuth's multiplication method - Hashing
Any guesses what are good values for the "c"? // h(k) = ⌊(m · (k · c − ⌊k · c⌋)⌋ return (int) Math.floor(distinctElements * (key * c - Math.floor(key * c))); I have found the this one: (Math.sqrt(5)-1)/2) However are there any other good choices known? Kind regards
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.