Answer: A
We can solve the recurrence relation T(n)=3T(4n)+n using the Master Theorem for divide-and-conquer recurrences of the form T(n)=aT(bn)+f(n):
- Here, a=3, b=4, and f(n)=n=Θ(n1).
- We compare f(n) with nlogba=nlog43.
Since log43≈0.792<1, we have f(n)=Ω(nlog43+ϵ) for ϵ≈0.2. This corresponds to Case 3 of the Master Theorem.
To confirm, we check the regularity condition: af(bn)≤cf(n) for some constant c<1.
3(4n)=43n≤cnfor c=43<1
Since the regularity condition holds, the solution is T(n)=Θ(f(n))=Θ(n), which implies T(n)=O(n).