The recurrence relation that arises in relation with the complexity of binary…

PYQ GATE 1994

The recurrence relation that arises in relation with the complexity of binary search is:

  1. A.

    T(n) = T(n/2) + k, k a constant

  2. B.

    T(n) = 2T(n/2) + k, k a constant

  3. C.

    T(n) = T(n/2) + log n

  4. D.

    T(n) = T(n/2) + n

Attempted by 151 students.

Sign up free to check your answer

Sign up free

Explore the full course: Algorithms

Loading lesson…