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?

  1. (A) Θ(√n)
  2. (B) Θ(log₂(n))
  3. (C) Θ(n²)
  4. (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