What is the Best Second Hash function when using Double Hashing?
问题 I saw in some of the forums that people used: 7-(key mod 7) or 6-(key mod 6) This is used for computing the second hash function of Double Hashing for any large values of the key. Is there any importance to the usage of that 6(not even a prime no.) or 7? Or is it just to randomly generate some value unlike linear probing and quadratic probing? References: http://www.java2s.com/Code/Java/Collections-Data-Structure/Hashtablewithdoublehashing.htm http://www.cse.unt.edu/~donr/courses/2050