Which of the following is not the technique to calculate index in hashing?
Which of the following is not the technique to calculate index in hashing?
Solution
✅ Correct Option: 4
Collision is not a technique for calculating an index. It is a problem that occurs when two different keys map to the same index. It is handled afterwards by collision resolution methods such as chaining or open addressing.
Integer division, modulo division and the mid-square function are all hash functions that compute an index from a key.
Options 1, 2 and 3: each one is a genuine hash function, so each one is a technique for calculating an index.
Mid-square squares the key and takes the middle digits as the index.
Related questions:
2026: 23 May Shift 1
2026: 31 May Shift 1
2026: 11 May Shift 2