Which of the following recurrence relation can be solved using Master theorem?

2017

Which of the following recurrence relation can be solved using Master theorem?

  1. A.

    T(n) = 64T(n/8) − n

  2. B.

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

  3. C.

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

  4. D.

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

Attempted by 130 students.

Show answer & explanation

Correct answer: D

The correct option is D. Master theorem applies to recurrences of the form T(n) = aT(n/b) + f(n), where a >= 1, b > 1, and f(n) is a positive function. T(n) = 2T(n/2) + 1 perfectly satisfies these conditions (a=2, b=2, f(n)=1). Other options fail due to negative terms, non-constant coefficients, or violating polynomial variance conditions.

Explore the full course: Coal India Management Trainee