Analysis Of Algorithms University of Bridgeport Analysis of Algorithms


Solving Homogenous Linear Recurrence Relations Using Method of Characteristic Roots (Another Method To Solve Recurrence Equations)



Download 3.4 Mb.
Page18/33
Date28.05.2018
Size3.4 Mb.
#51061
1   ...   14   15   16   17   18   19   20   21   ...   33
Solving Homogenous Linear Recurrence Relations Using Method of Characteristic Roots (Another Method To Solve Recurrence Equations)
Homogenous Linear Recurrence Relation:

The term linear means that each term of the sequence is defined as a linear function of the preceding terms. The coefficients and the constants may depend on n, even non-linearly. Homogeneous means that the constant term of the relation is zero.


Example 1:
Recurrence Relation:



General form:


Let

Substituting this in original recurrence relation, we have





or,
Dividing by rn-2 gives us,

or, (r – 2) (r – 3) = 0

=> r1 = 2 r2 = 3

=> an = 2n or, an = 3n; both work


Therefore,
Download 3.4 Mb.

Share with your friends:
1   ...   14   15   16   17   18   19   20   21   ...   33




The database is protected by copyright ©ininet.org 2024
send message

    Main page