What is the worst-case number of arithmetic operations performed by recursive…

PYQ GATE 2021

What is the worst-case number of arithmetic operations performed by recursive binary search on a sorted array of size nn ?

  1. A.

    θ(n)\theta (\sqrt n)

  2. B.

    θ(log2(n))\theta (log_2 (n))

  3. C.

    θ(n2)\theta (n^2)

  4. D.

    θ(n)\theta (n)

Attempted by 653 students.

Sign up free to check your answer

Sign up free

Explore the full course: Algorithms

Loading lesson…