Correct Answer :
T1(n) = Θ(n2)
Solution :
The correct option is: T1(n) = Θ(n2)
To find the asymptotic tight bound for , we need to solve the system of recurrence relations step-by-step.
Step 1: Solve the recurrence for
The recurrence relation for is given by:
We can solve this using the Master Theorem, which has the general form:
For , we have:
•
•
•
Now, we compare with .
Since , we have .
Clearly, grows much slower than . Formally, for any .
By Case 1 of the Master Theorem, the recurrence is dominated by the leaf level, yielding:
Step 2: Solve the recurrence for
Now, substitute the asymptotic behavior of into the recurrence relation for :
Applying the Master Theorem again:
•
•
•
Now we calculate .
We compare the exponent of which is with the exponent .
Since , we have for a positive constant (such as ).
Once again, by Case 1 of the Master Theorem, the recurrence is dominated by the leaf cost:
Access expert-curated educational resources and study materials—completely free.
Create, conduct, and manage professional online assessments with Mindyard. Perfect for teachers and institutes.
Copyright © 2026 Mindyard. All Rights Reserved.