Question 41Asked in UGC NET Computer Science, June 2014 (Paper II & III, Selected Questions)

The solution of the recurrence relation of T(n) = 3T(floor(n/4)) + n is

  1. AO(n²)
  2. BO(n lg n)
  3. CO(n)
  4. DO(lg n)
Show answerHide answer

Correct answer: (C) O(n)

Explanation

T(n) = 3T(n/4) + n. Here a = 3, b = 4, f(n) = n and n^(log₄3) ≈ n^0.79. Since f(n) = n grows polynomially faster than n^(log₄3), case 3 of the master theorem gives T(n) = Θ(n). So T(n) = O(n) (it is also O(n²), but (c) is the tight bound and the best choice).

From UGC NET Computer Science PYQ, June 2014 (Paper II & III, Selected Questions)

This is question 41 of UGC NET Computer Science PYQ, June 2014 (Paper II & III, Selected Questions). See all questions of this paper with answers, or attempt the paper as a timed online test to get your score and all-India rank.