PA of Algorithms Q66

0. Which one of the following correctly determines the solution of the recurrence relation with T(1)= 1?

  • Option : A
  • Explanation :
    Since f(n) = log n
    a = 2, b = 2
    finding logba using master’s method = log22 = 1
    Hence, f(n) = n'
    So, T(n) = Θ(n)
Cancel reply

Your email address will not be published. Required fields are marked *


Cancel reply

Your email address will not be published. Required fields are marked *