CH 3
CH 3
FUNCTION
Chapter3
• A recurrence relation is an equation that defines a sequence based on a rule that gives
the next term as a function of the previous term(s).
COMMON RECURRENCE RELATIONS
METHODS FOR SOLVING RECURRENCES
✓ Master Method
✓ Recursion Tree Method
✓ Iteration Method
✓ Substitution Method
The Master Method
MASTER METHOD
MASTER EXAMPLES
MASTER EXAMPLES
MASTER EXAMPLES
The Recursion Tree Method
RECURSION TREE METHOD
STEPS OF RECURSION TREE METHOD
RECURSION TREE EXAMPLES
RECURSION TREE EXAMPLES
RECURSION TREE EXAMPLES
RECURSION TREE EXAMPLES
The Iteration Method
ITERATION METHOD
Solution Steps:
1. Iteration Step
2. Find (i) and pattern
ITERATION EXAMPLES
ITERATION EXAMPLES
ITERATION EXAMPLES
ITERATION EXAMPLES
The Substitution Method
SUBSTITUTION METHOD
SUBSTITUTION EXAMPLES
SUBSTITUTION EXAMPLES
SUBSTITUTION EXAMPLES
SUBSTITUTION EXAMPLES
EXTRA EXAMPLE
➢ Solve the following example using master, recursion tree and iteration methods:
𝒏
T(n) = T( ) + n
𝟑
T(1) = 1
END OF CHAPTER3