We are given
T(2n)=T(2n−1)+Θ(n2),T(1)=Θ(1).
Step 1 — Define a helper sequence over the exponent.
Let S(n)=T(2n). Substituting into the recurrence:
S(n)=S(n−1)+Θ(n2),S(0)=T(20)=T(1)=Θ(1).
This is a simple subtract-and-conquer recurrence in n: each step removes one level and adds a Θ(n2) cost.
Step 2 — Unroll the sum.
S(n)=Θ(1)+∑k=1nΘ(k2)=Θ(∑k=1nk2)=Θ(6n(n+1)(2n+1))=Θ(n3).
So S(n)=T(2n)=Θ(n3).
Step 3 — Translate back to the original variable.
Write m=2n, so n=lgm (base-2 log). Then
T(m)=S(lgm)=Θ((lgm)3).
Renaming m back to n, the order is
T(n)=Θ((lgn)3).
This matches option 4.
Pitfall: The recurrence is written in terms of the exponent n, not the argument size. Plugging Θ(n2) directly into a Master-Theorem template gives n3 (option 2), which is the value of S(n) — the answer before substituting n=lgm back. You must change variables so the order is expressed in the actual input n, yielding (lgn)3.