0
891views
Recurrences The Substitution Method
1 Answer
0
12views

Substitution Method: We make a guess for the solution and then we use mathematical induction to prove the guess is correct or incorrect.

For example consider the recurrence T(n) = 2T(n/2) + n

We guess the solution as T(n) = O(nLogn). Now we use induction

to prove our guess.

We …

Create a free account to keep reading this post.

and 4 others joined a min ago.

Please log in to add an answer.