It depends on the keys. If you know that your hash function is ideal for all possible keys (e.g. using gperf ), then you know that you will only have a few collisions, so the number is higher.
But most of the time you know little about keys, except that it is text. In this case, you should guess, since you don’t even have test data to figure out in advance how your hash function behaves.
So you hope for the best. If the hash function is very bad for the keys, then you will have many collisions and the growth point will never be reached. In this case, the selected digit does not matter.
If your hash function is adequate, then it should only create a few collisions (less than 50%), so a number from 65% to 80% seems reasonable.
However: if your hash table does not have to be perfect (= huge size or many accesses), do not worry. If you have, say, ten elements, given these problems, this is a waste of time.
Aaron digulla
source share