INTRODUCTION TO RECURRENCE RELATION
INTRODUCTION TO RECURRENCE RELATION
DEFINITION: Recurrence relation is a procedure of representing the n'th term of the sequence as a function instead of it's previous terms.
consider the following Fibonacci sequence :
here,
a2 = a1 + a0
a3 =
a2 + a1
a4 =
a3 + a2 is true for all values of n>=2 ; a0 = 0 and a1 = 1;
(exit criteria / initial condition)
consider a sequence {a0, a1,
a2, a3, a4, a5, a6 }
A recurrence relation is an equation that represents the n'th term of the sequence is terms of one or more of its previous terms.
The explicitly specified values of the terms of the sequence are known as the initial condition condition of the recurrence relation.
Example:
an =
an-1 + an-2 where n>= 2; a0 = 0, a1
= 1
No comments