1.

For constants a ≥ 1 and b > 1, consider the following recurrence defined on the non-negative integers:\(T\left( n \right) = a.T\left( {\frac{n}{b}} \right) + f\left( n \right)\)Which one of the following options is correct about the recurrence T(n)?

A. If f(n) is \(\frac{n}{{{{\log }_2}(n)}}\), then T(n) is θ(log2(n)).
B. If f(n) is n log2(n), then T(n) is θ(n log2(n)).
C. If f(n) is O(nlogb(a) - ϵ) for some ϵ > 0, then T(n) is θ(nlogb(a)).
D. If f(n) is θ(nlogb(a)), then T(n) is θ(nlogb(a))
Answer» D. If f(n) is θ(nlogb(a)), then T(n) is θ(nlogb(a))


Discussion

No Comment Found

Related MCQs