Computer Science, asked by tanuyadav3008, 2 months ago

what is the worst case run time complexity of binary search algorithm

Answers

Answered by dubeybhim
0

Answer:

Time and Space complexity

The time complexity of the binary search algorithm is O(log n). The best-case time complexity would be O(1) when the central index would directly match the desired value. The worst-case scenario could be the values at either extremity of the list or values not in the list.

Similar questions