Java Utililty Methods String Hash

List of utility methods to do String Hash

Description

The list of methods to do String Hash are organized into topic(s).

Method

intbernstein(String key)
bernstein
int hash = 0;
int i;
for (i = 0; i < key.length(); ++i)
    hash = 33 * hash + key.charAt(i);
return hash;
doublecalcBernstein(int n, int i)
calc Bernstein
return calcFactorial(n) / calcFactorial(i) / calcFactorial(n - i);