GATE CS 2021, set 2 · Question 18 · Algorithms · Multiple choice (MCQ) · 1 mark · −1/3 for a wrong answer
What is the worst-case number of arithmetic operations performed by recursive binary search on a sorted array of size n?
- (A) Θ(√n)
- (B) Θ(log₂(n))
- (C) Θ(n²)
- (D) Θ(n)
Answer
Answer (B)
Answer from the official GATE CS 2021 answer key.
The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes