Answer: A
We can solve the recurrence relation T(n)=T(3n)+cn using the Master Theorem or by expansion.
Method 1: Master Theorem
The recurrence is of the form T(n)=aT(bn)+f(n), where a=1, b=3, and f(n)=cn=Θ(n).
Comparing f(n) with nlogba=nlog31=n0=1, we see that f(n)=Ω(n0+ϵ) for ϵ=1. The regularity condition af(n/b)≤kf(n) holds because 1⋅c3n≤k⋅cn for k=31<1. By Case 3 of the Master Theorem, T(n)=Θ(f(n))=Θ(n).
Method 2: Expansion Method
Expanding the recurrence step-by-step:
T(n)=T(3n)+cn=T(9n)+c3n+cn=⋯=T(3kn)+cn∑i=0k−1(31)i
The summation is a decreasing geometric series that converges to a constant factor 23. Thus, T(n)=Θ(1)+23cn=Θ(n).