If a hash function is perfect, collision will _________ occur.
If a hash function is perfect, collision will _________ occur.
Solution
✅ Correct Option: 4
A perfect hash function maps every distinct key to a distinct slot, so no two keys share the same hash value. Collisions therefore never occur.
Option 2: this describes an ordinary hash function, where collisions are possible and must be handled by chaining or open addressing.
Perfect hashing works only when the set of keys is known in advance.
Related questions:
2025: 30 May Shift 2
2026: 20 May Shift 1
2026: 23 May Shift 1
2026: 19 May Shift 1