For purposes of illustration, this hash table uses a deliberately weak choice of hash functions. Strings are hashed by their length (e.g., "Davis" and "Smith" would each have a hash code of 5). This will yield more (and more easily predictable) collisions than would be seen with a proper hash function.
.jar
file for this animation and save it in any convenient directory on
your PC.
.jar
file you
downloaded in step 1.
cd
to the directory where you saved the
.jar
file, and try the command
java -jar algae-dsft-hashchain.jar
More detailed help is available from the Help menu.
This demo was prepared with the AlgAE animation engine.