How to Prove Recurrence Relations by Induction?

AI Thread Summary
To prove the recurrence relation T(n) = 2T(n/2) + n lg n = Θ(n lg² n) by induction, the base case T(1) must first be established as true, which is given as T(1) = 1. Assuming T(n) holds, the next step is to demonstrate that T(n+1) also holds true based on this assumption. This involves substituting n+1 into the recurrence and simplifying to show that it aligns with the Θ(n lg² n) form. The induction process requires careful handling of the logarithmic terms and ensuring the hypothesis is maintained throughout the proof. The discussion emphasizes the importance of proving both the base case and the inductive step for a complete proof.
needhelp83
Messages
193
Reaction score
0
Prove the following recurrence by induction
T(n) = 2T(n/2) + n lg n = Θ ( n lg^2 n ), T(1) = 1

This to me looks scary and I was wondering if anybody had a heads up on how to solve for this
 
Physics news on Phys.org
Suppose T(n) is true. From that supposition show that T(n+1) is true. That is the proof by induction.
 
CEL said:
Suppose T(n) is true. From that supposition show that T(n+1) is true. That is the proof by induction.
Not forgetting to prove T(1) to be true first as well.
 
Fightfish said:
Not forgetting to prove T(1) to be true first as well.

T(1) is assumed to be 1, by the hypothesis.
 

Similar threads

Replies
11
Views
2K
Replies
2
Views
947
Replies
1
Views
5K
Replies
1
Views
2K
Replies
11
Views
2K
Back
Top