0 7

BIT201 ยท 0 ยท 5 marks

Is hashing better than binary search algorithm? Give reasons. Define any two collision resolution techniques.

Is hashing better than binary search algorithm? Give reasons. Define any two collision resolution techniques. [5]

Data Structures and AlgorithmsChapter 7: Searching and HashingHashing versus binary search comparison

It depends on the use case, but in many scenarios hashing is considered better than binary search. Here is a comparison: Criteria Hashing Binary Search --------- Time Complexity (Average) O(1) O(log n) Time Complexity (Worst) O(n) O(log n) Data Requirement Unsorted data is fine Data must be sorte...