Data Structure (2130702)

BE | Semester-3   Summer-2018 | 05/21/2018

Q5) (a)

List the qualities of a good hash function.

Characteristics of a Good Hash Function

  1. A good hash function avoids collisions.
  2. A good hash function tends to spread keys evenly in the array.
    1. If the hash function does not uniformly distribute keys across the entire set of possible hash values, a large number of collisions will result which cutting down the efficiency of the hash table.
  3. A good hash function is easy to compute.