When two elements map to the same slot in the hash table it is called ___________.
When two elements map to the same slot in the hash table it is called ___________.
Solution
✅ Correct Option: 2
A collision occurs when a hash function gives the same slot (index) to two different keys, so both elements compete for one position in the hash table. It is resolved by methods such as chaining or open addressing (linear probing, quadratic probing, double hashing).
Option 1: hashing is the overall process of mapping keys to slots using a hash function, not the clash between two keys.
Option 4: searching is looking up a key in the table, which has nothing to do with two keys sharing a slot.
Related questions:
2025: 27 May Shift 2
2025: 13 May Shift 2
2025: 16 May Shift 1
2025: 22 May Shift 1