time complexity of binary search for unsuccessful run
Answers
Answered by
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
0
Answer:
O(log n)
Explanation:
Similar questions
History,
6 months ago
Math,
6 months ago
Computer Science,
6 months ago
English,
1 year ago
Science,
1 year ago