The order of the binary search algorithm is _______.
Show answerHide answer
Correct answer: (E) None of the above
Explanation
Binary search halves the search range at each step, so its order is O(log n). That is not among N, N log n or N².
Correct answer: (E) None of the above
Explanation
Binary search halves the search range at each step, so its order is O(log n). That is not among N, N log n or N².
This is question 93 of BPSC TRE 3.0 (2024) Computer Science Class 11-12 — Previous Year Paper. See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.