Professional Documents
Culture Documents
Recurrence Relations and Their Solutions
Recurrence Relations and Their Solutions
Recurrence relations,
Solving recurrence relations
Q: What is a recurrence relation ?
Ans: A recurrence relation is a rule supplemented with one or more initial terms to
generate a sequence. The solution of a recurrence relation is a sequence, where each term
of the sequence satisfies the recurrence relation.
For example, is a recurrence relation while its solution is the sequence
The Tower of Hanoi Puzzle
(n-1)-steps
(n-1)-steps
1 step
Solving the recurrence relation for the Tower of Hanoi puzzle
2𝑛 − 1
=2𝑛 − 1 +2𝑛 − 2+ ⋯ + 2+1
2− 1
Explanation: Let us say there are 30 students in a classroom. These 30 students shake hands
with each other, and the total number of handshakes are now.
A teacher enters the classroom and shakes hand with all 30 students. Hence there are 31
persons in the classroom and 30 new handshakes are added. Now, the total number of
handshakes will be
Using recursive
functions to create
recursive relations
Example: Counting the number of bit strings
Case of distinct roots
Case of k number of distinct roots
Example:
Case of two repeated roots