The load factor of a hash table is defined as what?

  • A The number of collisions divided by the table size
  • B The number of stored elements divided by the table size
  • C The table size divided by the number of elements
  • D The number of empty slots in the table

Explanation

The load factor is the number of stored elements divided by the size of the table; when it grows too high the table is usually rehashed.