Skip to main contentSkip to solution

If the hash function is perfect, collisions will _____________occur.

Solution

✅ Correct Option: 3

A perfect hash function maps every distinct key to a unique slot in the table. Since no two keys ever share the same index, collisions will never occur.

A perfect hash function is possible only when the set of keys is known in advance and the table is large enough to hold them all.

Keyboard Shortcuts

  • Left arrow: Previous question
  • Right arrow: Next question
  • S key: Jump to solution
  • Q key: Jump to question