The ________ takes elements of the list one by one and generates an index value for every element.
The ________ takes elements of the list one by one and generates an index value for every element.
Solution
✅ Correct Option: 1
A hash function takes each element (key) of the list one by one and computes an index value for it, usually as . That index tells us where the element will be stored.
Hash Table: the data structure that stores the elements at the indices the hash function produces. It does not generate the indices itself.
Collision: the situation where two different elements get the same index from the hash function.
Related questions:
2026: 26 May Shift 1
2025: 3 June Shift 2
2026: 23 May Shift 1