SlideShare a Scribd company logo
CSE 2813 Discrete Structures
Solving Recurrence Relations
Section 6.2
CSE 2813 Discrete Structures
Degree of a Recurrence
Relation
• The degree of a recurrence relation is k
if the sequence {an} is expressed in
terms of the previous k terms:
an  c1an-1 + c2an-2 + … + ckan-k
where c1, c2, …, ck are real numbers
and ck  0
• What is the degree of an  2an-1 + an-2 ?
• What is the degree of an  an-2 + 3an-3 ?
• What is the degree of an  3an-4 ?
CSE 2813 Discrete Structures
Linear Recurrence
Relations
• A recurrence relation is linear when an
is a sum of multiples of the previous
terms in the sequence
• Is an  an-1 + an-2 linear ?
• Is an  an-1 + a2
n-2 linear ?
CSE 2813 Discrete Structures
Homogeneous
Recurrence Relations
• A recurrence relation is homogeneous
when an depends only on multiples of
previous terms.
• Is an  an-1 + an-2 homogeneous ?
• Is Pn  (1.11)Pn-1 homogeneous ?
• Is Hn  2Hn-1 + 1 homogeneous ?
CSE 2813 Discrete Structures
Solving Recurrence
Relations
• Solving 1st Order Linear Homogeneous
Recurrence Relations with Constant
Coefficients (LHRRCC)
– Derive the first few terms of the sequence using
iteration
– Notice the general pattern involved in the iteration
step
– Derive the general formula
– Now test the general formula on some previously
calculated (by iteration) terms
CSE 2813 Discrete Structures
Solving 2nd Order LHRRCC
• Form: an  c1an-1 + c2an-2 with some
constant values for a0 and a1
• Assume that the solution is an  rn,
where r is a constant and r  0
CSE 2813 Discrete Structures
Step 1
• Solve the characteristic quadratic
equation r2 – c1r – c2 = 0 to find the
characteristic roots r1 and r2
2
4 2
2
1
1
2
,
1
c
c
c
r



CSE 2813 Discrete Structures
Step 2
• Case I: The roots are not equal
an = 1r1
n + 2r2
n
• Case II: The roots are equal (r1=r2=r0)
an = 1r0
n + 2nr0
n
CSE 2813 Discrete Structures
Step 3
• Apply the initial conditions to the equations
derived in the previous step.
– Case I: The roots are not equal
a0 = 1r1
0 + 2r2
0 = 1 + 2
a1 = 1r1
1 + 2r2
1 = 1r1 + 2r2
– Case II: The roots are equal
a0 = 1r0
0 + 20r0
0 = 1
a1 = 1r0
1 + 21r0
1 = (1+2)r0
CSE 2813 Discrete Structures
Step 4
• Solve the appropriate pair of equations
for 1 and 2.
CSE 2813 Discrete Structures
Step 5
• Substitute the values of 1, 2, and the
root(s) into the appropriate equation in
step 2 to find the explicit formula for an.
CSE 2813 Discrete Structures
Example
• Solve the recurrence relation:
an  4an-1  4an-2
where a0  a1  1
• Solve the recurrence relation:
an  an-1 + 2an-2
where a0  2 and a1  7
CSE 2813 Discrete Structures
Exercises
• 1, 3

More Related Content

PPTX
PPT
the ppt on chap6 of brassard and Bratley
PDF
Solving recurrences
PDF
Solving recurrences
PPTX
recurrence relations
PPT
Recurrence Relations for Discrete mathematics
PPT
pdf of recurrence relation which is used in statistics
PPT
RecurrenceRelations.ppt
the ppt on chap6 of brassard and Bratley
Solving recurrences
Solving recurrences
recurrence relations
Recurrence Relations for Discrete mathematics
pdf of recurrence relation which is used in statistics
RecurrenceRelations.ppt

Similar to Recurrence section 6.2 of unit 6 explained (20)

PPT
Analysis Of Algorithms Ii
PDF
Daa linear recurrences
PDF
Impact of Linear Homogeneous Recurrent Relation Analysis
PPT
TABREZ KHAN.ppt
PDF
20MA101 MATHEMATICS I COURSE MATERIAL R2020
PPT
recurrence relations in analysis of algorithm
PDF
8.-DAA-LECTURE-8-RECURRENCES-AND-ITERATION-METHOD.pdf
PPT
Matrices and determinants for graduation Engineering.ppt
PDF
Solving linear homogeneous recurrence relations
PPTX
LINEAR RECURRENCE RELATIONS WITH CONSTANT COEFFICIENTS
PPTX
Recurrence Relation
PPT
CLASS X MATHS LINEAR EQUATIONS
PDF
linearequns-classx-180912070018.pdf
PDF
Assignment grouping 2(bungee jumping) (edit)
PDF
Summation Series
PDF
Introduction of determinant
PPT
chp-1-matrices-determinants1.ppt
PDF
Core 2 revision notes
PPT
Determinants and matrices.ppt
PPTX
CLASS X MATHS
Analysis Of Algorithms Ii
Daa linear recurrences
Impact of Linear Homogeneous Recurrent Relation Analysis
TABREZ KHAN.ppt
20MA101 MATHEMATICS I COURSE MATERIAL R2020
recurrence relations in analysis of algorithm
8.-DAA-LECTURE-8-RECURRENCES-AND-ITERATION-METHOD.pdf
Matrices and determinants for graduation Engineering.ppt
Solving linear homogeneous recurrence relations
LINEAR RECURRENCE RELATIONS WITH CONSTANT COEFFICIENTS
Recurrence Relation
CLASS X MATHS LINEAR EQUATIONS
linearequns-classx-180912070018.pdf
Assignment grouping 2(bungee jumping) (edit)
Summation Series
Introduction of determinant
chp-1-matrices-determinants1.ppt
Core 2 revision notes
Determinants and matrices.ppt
CLASS X MATHS
Ad

Recently uploaded (20)

PPTX
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PPTX
Radiologic_Anatomy_of_the_Brachial_plexus [final].pptx
PPTX
Microbial diseases, their pathogenesis and prophylaxis
PPTX
Final Presentation General Medicine 03-08-2024.pptx
PDF
A systematic review of self-coping strategies used by university students to ...
PPTX
Lesson notes of climatology university.
PDF
Module 4: Burden of Disease Tutorial Slides S2 2025
PPTX
UV-Visible spectroscopy..pptx UV-Visible Spectroscopy – Electronic Transition...
PDF
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
PPTX
History, Philosophy and sociology of education (1).pptx
PDF
LNK 2025 (2).pdf MWEHEHEHEHEHEHEHEHEHEHE
PDF
What if we spent less time fighting change, and more time building what’s rig...
PDF
Weekly quiz Compilation Jan -July 25.pdf
PDF
Microbial disease of the cardiovascular and lymphatic systems
PPTX
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
PDF
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
PDF
Yogi Goddess Pres Conference Studio Updates
PDF
Supply Chain Operations Speaking Notes -ICLT Program
PDF
01-Introduction-to-Information-Management.pdf
Introduction-to-Literarature-and-Literary-Studies-week-Prelim-coverage.pptx
Final Presentation General Medicine 03-08-2024.pptx
Radiologic_Anatomy_of_the_Brachial_plexus [final].pptx
Microbial diseases, their pathogenesis and prophylaxis
Final Presentation General Medicine 03-08-2024.pptx
A systematic review of self-coping strategies used by university students to ...
Lesson notes of climatology university.
Module 4: Burden of Disease Tutorial Slides S2 2025
UV-Visible spectroscopy..pptx UV-Visible Spectroscopy – Electronic Transition...
Black Hat USA 2025 - Micro ICS Summit - ICS/OT Threat Landscape
History, Philosophy and sociology of education (1).pptx
LNK 2025 (2).pdf MWEHEHEHEHEHEHEHEHEHEHE
What if we spent less time fighting change, and more time building what’s rig...
Weekly quiz Compilation Jan -July 25.pdf
Microbial disease of the cardiovascular and lymphatic systems
1st Inaugural Professorial Lecture held on 19th February 2020 (Governance and...
A GUIDE TO GENETICS FOR UNDERGRADUATE MEDICAL STUDENTS
Yogi Goddess Pres Conference Studio Updates
Supply Chain Operations Speaking Notes -ICLT Program
01-Introduction-to-Information-Management.pdf
Ad

Recurrence section 6.2 of unit 6 explained

  • 1. CSE 2813 Discrete Structures Solving Recurrence Relations Section 6.2
  • 2. CSE 2813 Discrete Structures Degree of a Recurrence Relation • The degree of a recurrence relation is k if the sequence {an} is expressed in terms of the previous k terms: an  c1an-1 + c2an-2 + … + ckan-k where c1, c2, …, ck are real numbers and ck  0 • What is the degree of an  2an-1 + an-2 ? • What is the degree of an  an-2 + 3an-3 ? • What is the degree of an  3an-4 ?
  • 3. CSE 2813 Discrete Structures Linear Recurrence Relations • A recurrence relation is linear when an is a sum of multiples of the previous terms in the sequence • Is an  an-1 + an-2 linear ? • Is an  an-1 + a2 n-2 linear ?
  • 4. CSE 2813 Discrete Structures Homogeneous Recurrence Relations • A recurrence relation is homogeneous when an depends only on multiples of previous terms. • Is an  an-1 + an-2 homogeneous ? • Is Pn  (1.11)Pn-1 homogeneous ? • Is Hn  2Hn-1 + 1 homogeneous ?
  • 5. CSE 2813 Discrete Structures Solving Recurrence Relations • Solving 1st Order Linear Homogeneous Recurrence Relations with Constant Coefficients (LHRRCC) – Derive the first few terms of the sequence using iteration – Notice the general pattern involved in the iteration step – Derive the general formula – Now test the general formula on some previously calculated (by iteration) terms
  • 6. CSE 2813 Discrete Structures Solving 2nd Order LHRRCC • Form: an  c1an-1 + c2an-2 with some constant values for a0 and a1 • Assume that the solution is an  rn, where r is a constant and r  0
  • 7. CSE 2813 Discrete Structures Step 1 • Solve the characteristic quadratic equation r2 – c1r – c2 = 0 to find the characteristic roots r1 and r2 2 4 2 2 1 1 2 , 1 c c c r   
  • 8. CSE 2813 Discrete Structures Step 2 • Case I: The roots are not equal an = 1r1 n + 2r2 n • Case II: The roots are equal (r1=r2=r0) an = 1r0 n + 2nr0 n
  • 9. CSE 2813 Discrete Structures Step 3 • Apply the initial conditions to the equations derived in the previous step. – Case I: The roots are not equal a0 = 1r1 0 + 2r2 0 = 1 + 2 a1 = 1r1 1 + 2r2 1 = 1r1 + 2r2 – Case II: The roots are equal a0 = 1r0 0 + 20r0 0 = 1 a1 = 1r0 1 + 21r0 1 = (1+2)r0
  • 10. CSE 2813 Discrete Structures Step 4 • Solve the appropriate pair of equations for 1 and 2.
  • 11. CSE 2813 Discrete Structures Step 5 • Substitute the values of 1, 2, and the root(s) into the appropriate equation in step 2 to find the explicit formula for an.
  • 12. CSE 2813 Discrete Structures Example • Solve the recurrence relation: an  4an-1  4an-2 where a0  a1  1 • Solve the recurrence relation: an  an-1 + 2an-2 where a0  2 and a1  7
  • 13. CSE 2813 Discrete Structures Exercises • 1, 3