![]() |
AuD
Lecture 'Algorithmen und Datenstrukturen' (code examples)
|
Collision handling strategy in SimpleHashtable
.
More...
Public Member Functions | |
abstract long | newHash (SimpleHashtable< T > table, T key, long h, int count) |
Handle collision by computing a new hash value. More... | |
Collision handling strategy in SimpleHashtable
.
Definition at line 6 of file CollisionHandler.java.
|
abstract |
Handle collision by computing a new hash value.
table | hash table |
key | new entry that is to be inserted but caused the collision |
h | previously used hash value |
count | iteration count for collision handling starting with 1 (=first collision) |
Reimplemented in aud.example.hash.HashtableExample.LinearProbing< T >, aud.example.hash.HashtableExample.QuadraticProbing< T >, and aud.example.hash.HashtableExample.DoubleHashing< T >.