Hash Tables
- Hashing can be used to find elements in a data structure quickly without
making a linear search
- A hash table can be used to implement sets and maps
- A hash function computes an integer value (called the hash code) from an
object
- A good hash function minimizes collisionsidentical hash codes for
different objects
- To compute the hash code of object x:
int h = x.hashCode();