![]() |
AuD
Lecture 'Algorithmen und Datenstrukturen' (code examples)
|
Simple framework for experiments with hash tables. More...
Classes | |
class | DoubleHashing |
Collision handling by double hashing using h2 More... | |
class | HashString |
Compute integer hash value from string. | |
class | IdentityHash |
Identity hash function. | |
class | Key |
Key could be integer or string. | |
class | LinearProbing |
Collision handling by linear probing h(x,i)=h(x)+i*b More... | |
class | QuadraticProbing |
Collision handling by quadratic probing h(x,i)=h(x)+i*b+i*i*c More... | |
class | UniversalHash |
Universal hash function parameterized as described in Goodrich and Tamassia. | |
Simple framework for experiments with hash tables.
The program lets you choose among hash functions and strategies for collision handling. The you can fill the hash tables either with integers or with strings. The latter uses HashString
to compute integer values. You can output the hash table or visualize the history of inserts to see entries are well-spread in the table.
Few hash functions and collision handlers for SimpleHashtable
are implemented as nested classes. Don't hesitate to extend the program and experiment with your own functions! Have fun! :-)
Definition at line 23 of file HashtableExample.java.