You are on page 1of 11

UNIVERSITY INSTITUTE OF ENGINEERING

Academic unit-1
BE :CSE(All IT branches)
DISCRETE MATHEMATICS
SMT-174

DISCOVER . LEARN . EMPOWER


RECURRENCE
RELATION
Course Outcome
CO Title Level
Number

CO1 Some fundamental mathematical concepts and Remember Will be covered in this
terminology related to various types of relations,  
functions, recursive relations and generating functions.
lecture
To use and analyze recursive definitions, To learn about
the basic counting principle and solution of the
problems relating to Graphs, Trees and fundamental
circuit.

CO2 To learn about the various algebraic structures like Understand


binary/ homomorphism/ isomomorphism/ auto  
orphism etc.

CO3 Study the different types of graphs as well as the tree & Analysis and
paths and difference between them such as application
binary/spanning/minimal spanning/ traversal trees.

2
Recurrence Relations
•A recurrence relation for the sequence {an} is an equation that
expresses an is terms of one or more of the previous terms of the
sequence, namely, a0, a1, …, an-1, for all integers n with
n  n0, where n0 is a nonnegative integer.

•A sequence is called a solution of a recurrence relation if it terms


satisfy the recurrence relation.

University Institute of Engineering 3


Recurrence Relations
•In other words, a recurrence relation is like a recursively defined
sequence, but without specifying any initial values (initial conditions).
•Therefore, the same recurrence relation can have (and usually has)
multiple solutions.
•If both the initial conditions and the recurrence relation are specified,
then the sequence is uniquely determined.

4
Recurrence Relations
Example:
Consider the recurrence relation
an = 2an-1 – an-2 for n = 2, 3, 4, …

Is the sequence {an} with an=3n a solution of this recurrence relation?

For n  2 we see that


2an-1 – an-2 = 2(3(n – 1)) – 3(n – 2) = 3n = an.
Therefore, {an} with an=3n is a solution of the recurrence relation.

5
Recurrence Relations
Is the sequence {an} with an=5 a solution of the same recurrence
relation?
For n  2 we see that
2an-1 – an-2 = 25 - 5 = 5 = an.

Therefore, {an} with an=5 is also a solution of the recurrence


relation.

University Institute of Engineering 6


Solving Recurrence Relations
Definition: A linear homogeneous recurrence relation of degree k with
constant coefficients is a recurrence relation of the form:
an = c1an-1 + c2an-2 + … + ckan-k,
Where c1, c2, …, ck are real numbers, and ck  0.

A sequence satisfying such a recurrence relation is uniquely determined by


the recurrence relation and the k initial conditions

a0 = C0, a1 = C1, a2 = C2, …, ak-1 = Ck-1.

7
Solving Recurrence Relations

Example: What is the solution of the recurrence relation an = an-1 + 2an-2 with a0 = 2
and a1 = 7 ?

Solution: The characteristic equation of the recurrence relation is


r2 – r – 2 = 0.
Its roots are r = 2 and r = -1.
Hence, the sequence {an} is a solution to the recurrence relation if and only if:
an = 12n + 2(-1)n for some constants 1 and 2.

8
Recurrence Relations
FREQUENTLY ASKED QUESTIONS

Question: find the generating function of s(n)=n.


Question : solve an = 2an-1 – an-2 by using generating function?
Question : Can recurrence relation have multiple solutions?

9
Bibliography
I have compiled this data from different books and internet. Refernces are
1. Liu C.L. “Eleements Of Discrete Mathematics”. McGraw Hill, 3rd Edition
2. Rosen K.H., “Discrete Mathematics and its Applications.” McGrew Hill.
3. https://www.tutorialspoint.com/discrete_mathematics/discrete_mathematics_recurre
nce_relation.htm
4. https://www.math.cmu.edu/~af1p/Teaching/Combinatorics/Slides/Gene rating-
Functions.pdf

10
THANK YOU

For queries
Email:iyna.appsci @cumail.in

You might also like