private IntegerPair hashFuncGen() { int a = rnd.nextInt(10000)+1; int b = rnd.nextInt(10000)+1; IntegerPair hashfunc = new IntegerPair(a,b); return hashfunc; } private long hash(IntegerPair ip, int x) { double L = 52.981; long function = (long)(ip.getA()*x + ip.getB())%(long)L; return function; }
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)