A form of Recurrence Equations, where we:
- Guess a solution
- Suppose it is right for all
- Prove that it is correct given the assumption
- Important to understand Asymptotic Notation here
How do i know if i guess wrong?
- A wrong guess will lead to a wrong equation (Remember that equations () are strict!)
Examples
Merge-Sort
Merge sort has a run time of
Guess Assume ,
→ →
insert this into our equation for T(n) → , QED