Computer Science, asked by rajanand0910, 1 year ago

time complexity of binary search for unsuccessful run

Answers

Answered by VISHALKUMARV22
7

Answer:

After 1 iteration, , after 2 iterations …, after k iterations, Hence, in the worst case, we do iterations where each iteration is bounded by a constant. So the complexity is O(log N) (the base of the log doesn't matter in asymptotic notation).

Answered by kavetisrinija99
0

Answer:

O(log n)

Explanation:

Similar questions