previous |
start |
next
Hash Function
- A hash function computes an integer hash code from an
object
- Choose a hash function so that different objects are likely to
have different hash codes.
- Bad choice for hash function for a string
- Adding the unicode values of the characters in the string
- Because permutations ("eat" and "tea") would have the same hash
code
previous |
start |
next