List of utility methods to do String Hash
int | bernstein(String key) bernstein int hash = 0; int i; for (i = 0; i < key.length(); ++i) hash = 33 * hash + key.charAt(i); return hash; |
double | calcBernstein(int n, int i) calc Bernstein return calcFactorial(n) / calcFactorial(i) / calcFactorial(n - i);
|