Identify the correct order steps involved in search by using Hashing technique.
(A) An empty hash table is taken.
(B) Use the hash function, applied on the elements of a list and fill the hash table.
(C) Compare the element to search at that index with the key to declare whether the element is present in the list or not.
(D) Take a list with given elements.
Identify the correct order steps involved in search by using Hashing technique.
(A) An empty hash table is taken.
(B) Use the hash function, applied on the elements of a list and fill the hash table.
(C) Compare the element to search at that index with the key to declare whether the element is present in the list or not.
(D) Take a list with given elements.
Solution
(D) Take a list with given elements.
(A) Take an empty hash table.
(B) Apply the hash function to each element of the list and place it in the hash table.
(C) Apply the hash function to the key, go to that index and compare the stored element with the key to decide whether it is present.
Option 1: the alphabetical order (A), (B), (C), (D) is wrong because the list must exist before it can be hashed into the table, and the search comes last.
Related questions:
2026: 20 May Shift 1
2025: 27 May Shift 2
2026: 23 May Shift 2
2026: 18 May Shift 2