Data set: 476,192,215,729,318,620,586,828,434.
Getting the index of each item in the data set:
Index of 476=(4×30+7×31+6×32)mod 9=7Index of 192=(1×30+9×31+2×32)mod 9=4Index of 215=(2×30+1×31+5×32)mod 9=8Index of 729=(7×30+2×31+9×32)mod 9=2Index of 318=(3×30+1×31+8×32)mod 9=8Index of 620=(6×30+2×31+0×32)mod 9=8Index of 586=(5×30+8×31+6×32)mod 9=5Index of 828=(8×30+2×31+8×32)mod 9=0Index of 434=(4×30+3×31+4×32)mod 9=8
Hash table generated by Linear Probing
Comments