What is the time complexity of hashing (in absence of collision)?
What is the time complexity of hashing (in absence of collision)?
Solution
✅ Correct Option: 1
In hashing, a hash function converts the key directly into an array index, and the element is stored or found at that index. With no collision, insertion, search and deletion each take one computation and one access, so the time is independent of the number of elements . The time complexity is .
Option 3: is the worst case when many keys collide, for example all keys landing in one chain or probe sequence. It is not the no-collision case.
Average-case hashing is also close to when the load factor is kept low.
Related questions:
2026: 20 May Shift 1
2026: 31 May Shift 1
2025: 15 May Shift 2