In Hashing, if every item of the list maps to a unique index in the hash table, the hash function is called as _______________ .
In Hashing, if every item of the list maps to a unique index in the hash table, the hash function is called as _______________ .
Solution
A perfect hash function maps every key in the list to a distinct index, so no two items share a slot and no collisions occur. Lookups then take constant time with no collision handling.
Option 1: a collision is the opposite case, where two different keys map to the same index.
Option 3: the hash table is the data structure that stores the items, not the function that maps them.
Option 4: the modulo (division) method is only one way of computing a hash, and it does not guarantee unique indices.
Related questions:
2026: 13 May Shift 2
2026: 24 May Shift 1
2026: 29 May Shift 2
2026: 11 May Shift 2