GATE CS 2021 · Set-2 · Linear Search & Binary Search

MCQ · 1 mark · Problem PROG-SRCH-0013

What is the worst-case number of arithmetic operations performed by recursive binary search on a sorted array of size n?
  1. A
    \(\Theta (\sqrt{n})\)
  2. B
    \(\Theta ( \log _2 (n))\)
  3. C
    \(\Theta ( n^2)\)
  4. D
    \(\Theta ( n)\)

Solve it on GATE DA practice →More Searching & Sorting Algorithms problems

Show the worked solutionOfficial GATE Answer Key: Option B.See full step-by-step discussion on GateOverflow: https://gateoverflow.in/357532/gate-cse-2021-set-2-question-8

GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com