Recurrence relations - PowerPoint PPT Presentation

1 / 11
About This Presentation
Title:

Recurrence relations

Description:

t2 At B = 0. has two distinct roots r and s, then the most general solution to the recurrence ... Clearly P0 = 1 and P100 = 0, but what are those in between? ... – PowerPoint PPT presentation

Number of Views:33
Avg rating:3.0/5.0
Slides: 12
Provided by: cary72
Category:

less

Transcript and Presenter's Notes

Title: Recurrence relations


1
Solving recurrence relations
One typical problem of this type is to find an
explicit formula for the n-th term (an) of the
Fibonacci sequence 1, 1, 2, 3, 5,
8, 13, 21, where the recurrence relation is
an an-1 an-2
2
Definitions of terms
Order of a recurrence relation
an 2an1 5 is of order 1 bn
3bn1 4nbn2 is of order 2 cn
(cn1)2 (-1)ncn3 is of order 3
( order 0 relations are not really recurrence
relations)
3
Degree of a relation
an 2an1 5an2 n(n 1) is of
degree 1 bn 3(bn1)(bn2) (bn3 )2
is of degree 2 (cn)2 (cn1)3 6cn2
is of degree 3
Degree 1 relations are also called linear
relations
4
Homogeneous relations i.e. every term has the
same power
an 2an-1 5an-2
is homogeneous bn 3bn-1 2bn-2 (bn-3 )2
is not homogeneous cn cn-1 6cn-2
n(n 3) is not
homogeneous (dn)2 n2(dn-1)(dn-2) (dn-3 )2
is homogeneous
5
Relations with constant coefficients
an 2an1 7an2 has
constant coefficients bn 3bn1 (n 1)bn2
(cos n)bn3
has
non-constant coefficients
6
Solving 1st order linear recurrence relations by
Iteration.
Example 1 sk sk-1 (k-1), s1 0.
Example 2
Example 3 xk 3xk-1 k, x1 1.
7
Second Order Linear Homogenous equations with
Constant coefficients.
This is the most complicated type of equations
that we will need to solve in this course.
  • Examples
  • The Fibonacci sequence an an-1 an-2
  • bn 2bn-1 5bn-2
  • 2cn 3cn-1 cn-2

8
Definition Let an Aan-1
Ban-2 for n gt 1 be a second-order
linear homogeneous relation with constant
coefficients. We define the characteristic
equation of this relation to be
t2 At B 0
  • There are two possibilities for this equation,
  • it has two distinct (real or complex) roots.
  • it has a double root.
  • We shall handle these two cases separately.

9
Distinct Roots
Suppose that the characteristic equation
t2 At B 0 has
two distinct roots r and s, then the most general
solution to the recurrence relation is
an Crn Dsn where C and
D are constants whose values are determined by
the values a0 and a1.
10
A Double Root
Suppose that the characteristic equation
t2 At B 0 has
only one root r, then the most general solution
to the recurrence relation is
an Crn Dnrn where C and D are
constants whose values are determined by the
values a0 and any other value of the sequence.
11
Example
A gambler repeatedly bets 1 that a fair coin
will come up heads when tossed. Each time the
coin comes up heads, the gambler wins 1 each
time the coin comes up tails, he loses 1.
The gambler will quit either when he loses
all his money or when he has 100. Let
Pn be the probability that the gambler will have
0 in his pocket when he starts playing with n.
Clearly P0 1 and P100 0, but what are those
in between?
Write a Comment
User Comments (0)
About PowerShow.com