Correct Answer (Detailed Explanation is Below)
A.
O(1)
Detailed Explanation
The average time complexity of searching in a
hash table is
O(1), assuming a good hash function and controlled collisions. The key is passed through the hash function to determine the likely storage location. Therefore, the desired element can normally be accessed directly rather than scanning every element. However, in the worst case, many keys may collide at the same location, making searching
O(n). Hash-table performance therefore depends heavily on hashing quality and collision management.