chapter 8: recurrence relations discrete mathematical structures: theory and applications
TRANSCRIPT
![Page 1: Chapter 8: Recurrence Relations Discrete Mathematical Structures: Theory and Applications](https://reader035.vdocument.in/reader035/viewer/2022081417/5517a2c35503460e6e8b5e44/html5/thumbnails/1.jpg)
Chapter 8: Recurrence Relations
Discrete Mathematical Structures:
Theory and Applications
![Page 2: Chapter 8: Recurrence Relations Discrete Mathematical Structures: Theory and Applications](https://reader035.vdocument.in/reader035/viewer/2022081417/5517a2c35503460e6e8b5e44/html5/thumbnails/2.jpg)
Discrete Mathematical Structures: Theory and Applications 2
Learning Objectives
Learn about recurrence relations
Learn the relationship between sequences and recurrence relations
Explore how to solve recurrence relations by iteration
Learn about linear homogeneous recurrence relations and how to solve them
Become familiar with linear nonhomogeneous recurrence relations
![Page 3: Chapter 8: Recurrence Relations Discrete Mathematical Structures: Theory and Applications](https://reader035.vdocument.in/reader035/viewer/2022081417/5517a2c35503460e6e8b5e44/html5/thumbnails/3.jpg)
Discrete Mathematical Structures: Theory and Applications 3
Sequences and Recurrence Relations
![Page 4: Chapter 8: Recurrence Relations Discrete Mathematical Structures: Theory and Applications](https://reader035.vdocument.in/reader035/viewer/2022081417/5517a2c35503460e6e8b5e44/html5/thumbnails/4.jpg)
Discrete Mathematical Structures: Theory and Applications 4
Sequences and Recurrence Relations
![Page 5: Chapter 8: Recurrence Relations Discrete Mathematical Structures: Theory and Applications](https://reader035.vdocument.in/reader035/viewer/2022081417/5517a2c35503460e6e8b5e44/html5/thumbnails/5.jpg)
Discrete Mathematical Structures: Theory and Applications 5
Sequences and Recurrence Relations
![Page 6: Chapter 8: Recurrence Relations Discrete Mathematical Structures: Theory and Applications](https://reader035.vdocument.in/reader035/viewer/2022081417/5517a2c35503460e6e8b5e44/html5/thumbnails/6.jpg)
Discrete Mathematical Structures: Theory and Applications 6
Sequences and Recurrence Relations
![Page 7: Chapter 8: Recurrence Relations Discrete Mathematical Structures: Theory and Applications](https://reader035.vdocument.in/reader035/viewer/2022081417/5517a2c35503460e6e8b5e44/html5/thumbnails/7.jpg)
Discrete Mathematical Structures: Theory and Applications 7
Sequences and Recurrence Relations
![Page 8: Chapter 8: Recurrence Relations Discrete Mathematical Structures: Theory and Applications](https://reader035.vdocument.in/reader035/viewer/2022081417/5517a2c35503460e6e8b5e44/html5/thumbnails/8.jpg)
Discrete Mathematical Structures: Theory and Applications 8
Sequences and Recurrence Relations
![Page 9: Chapter 8: Recurrence Relations Discrete Mathematical Structures: Theory and Applications](https://reader035.vdocument.in/reader035/viewer/2022081417/5517a2c35503460e6e8b5e44/html5/thumbnails/9.jpg)
Discrete Mathematical Structures: Theory and Applications 9
Sequences and Recurrence Relations
![Page 10: Chapter 8: Recurrence Relations Discrete Mathematical Structures: Theory and Applications](https://reader035.vdocument.in/reader035/viewer/2022081417/5517a2c35503460e6e8b5e44/html5/thumbnails/10.jpg)
Discrete Mathematical Structures: Theory and Applications 10
Sequences and Recurrence Relations
Tower of Hanoi
In the nineteenth century, a game called the Tower of Hanoi became popular in Europe. This game represents work that is under way in the temple of Brahma.
There are three pegs, with one peg containing 64 golden disks. Each golden disk is slightly smaller than the disk below it.
The task is to move all 64 disks from the first peg to the third peg.
![Page 11: Chapter 8: Recurrence Relations Discrete Mathematical Structures: Theory and Applications](https://reader035.vdocument.in/reader035/viewer/2022081417/5517a2c35503460e6e8b5e44/html5/thumbnails/11.jpg)
Discrete Mathematical Structures: Theory and Applications 11
Sequences and Recurrence Relations
The rules for moving the disks are as follows:
1. Only one disk can be moved at a time.
2. The removed disk must be placed on one of the pegs.
3. A larger disk cannot be placed on top of a smaller disk.
The objective is to determine the minimum number of moves required to transfer the disks from the first peg to the third peg.
![Page 12: Chapter 8: Recurrence Relations Discrete Mathematical Structures: Theory and Applications](https://reader035.vdocument.in/reader035/viewer/2022081417/5517a2c35503460e6e8b5e44/html5/thumbnails/12.jpg)
Discrete Mathematical Structures: Theory and Applications 12
Sequences and Recurrence Relations
First consider the case in which the first peg contains only one disk.
The disk can be moved directly from peg 1 to peg 3.
Consider the case in which the first peg contains two disks.
First move the first disk from peg 1 to peg 2.
Then move the second disk from peg 1 to peg 3.
Finally, move the first disk from peg 2 to peg 3.
![Page 13: Chapter 8: Recurrence Relations Discrete Mathematical Structures: Theory and Applications](https://reader035.vdocument.in/reader035/viewer/2022081417/5517a2c35503460e6e8b5e44/html5/thumbnails/13.jpg)
Discrete Mathematical Structures: Theory and Applications 13
Consider the case in which the first peg contains three disks and then generalize this to the case of 64 disks (in fact, to an arbitrary number of disks).
Suppose that peg 1 contains three disks. To move disk number 3 to peg 3, the top two disks must first be moved to peg 2. Disk number 3 can then be moved from peg 1 to peg 3. To move the top two disks from peg 2 to peg 3, use the same strategy as before. This time use peg 1 as the intermediate peg.
Figure 8.2 shows a solution to the Tower of Hanoi problem with three disks.
Sequences and Recurrence Relations
![Page 14: Chapter 8: Recurrence Relations Discrete Mathematical Structures: Theory and Applications](https://reader035.vdocument.in/reader035/viewer/2022081417/5517a2c35503460e6e8b5e44/html5/thumbnails/14.jpg)
Discrete Mathematical Structures: Theory and Applications 14
![Page 15: Chapter 8: Recurrence Relations Discrete Mathematical Structures: Theory and Applications](https://reader035.vdocument.in/reader035/viewer/2022081417/5517a2c35503460e6e8b5e44/html5/thumbnails/15.jpg)
Discrete Mathematical Structures: Theory and Applications 15
Generalize this problem to the case of 64 disks. To begin, the first peg contains all 64 disks. Disk number 64 cannot be moved from peg 1 to peg 3 unless the top 63 disks are on the second peg. So first move the top 63 disks from peg 1 to peg 2, and then move disk number 64 from peg 1 to peg 3. Now the top 63 disks are all on peg 2.
To move disk number 63 from peg 2 to peg 3, first move the top 62 disks from peg 2 to peg 1, and then move disk number 63 from peg 2 to peg 3. To move the remaining 62 disks, follow a similar procedure.
In general, let peg 1 contain n ≥ 1 disks.
1. Move the top n − 1 disks from peg 1 to peg 2 using peg 3 as the intermediate peg.
2. Move disk number n from peg 1 to peg 3.
3. Move the top n − 1 disks from peg 2 to peg 3 using peg 1 as the intermediate peg.
![Page 16: Chapter 8: Recurrence Relations Discrete Mathematical Structures: Theory and Applications](https://reader035.vdocument.in/reader035/viewer/2022081417/5517a2c35503460e6e8b5e44/html5/thumbnails/16.jpg)
Discrete Mathematical Structures: Theory and Applications 16
Sequences and Recurrence Relations
![Page 17: Chapter 8: Recurrence Relations Discrete Mathematical Structures: Theory and Applications](https://reader035.vdocument.in/reader035/viewer/2022081417/5517a2c35503460e6e8b5e44/html5/thumbnails/17.jpg)
Discrete Mathematical Structures: Theory and Applications 17
Sequences and Recurrence Relations
![Page 18: Chapter 8: Recurrence Relations Discrete Mathematical Structures: Theory and Applications](https://reader035.vdocument.in/reader035/viewer/2022081417/5517a2c35503460e6e8b5e44/html5/thumbnails/18.jpg)
Discrete Mathematical Structures: Theory and Applications 18
![Page 19: Chapter 8: Recurrence Relations Discrete Mathematical Structures: Theory and Applications](https://reader035.vdocument.in/reader035/viewer/2022081417/5517a2c35503460e6e8b5e44/html5/thumbnails/19.jpg)
Discrete Mathematical Structures: Theory and Applications 19
Linear Homogenous Recurrence Relations
![Page 20: Chapter 8: Recurrence Relations Discrete Mathematical Structures: Theory and Applications](https://reader035.vdocument.in/reader035/viewer/2022081417/5517a2c35503460e6e8b5e44/html5/thumbnails/20.jpg)
Discrete Mathematical Structures: Theory and Applications 20
Linear Homogenous Recurrence Relations
![Page 21: Chapter 8: Recurrence Relations Discrete Mathematical Structures: Theory and Applications](https://reader035.vdocument.in/reader035/viewer/2022081417/5517a2c35503460e6e8b5e44/html5/thumbnails/21.jpg)
Discrete Mathematical Structures: Theory and Applications 21
Linear Homogenous Recurrence Relations
![Page 22: Chapter 8: Recurrence Relations Discrete Mathematical Structures: Theory and Applications](https://reader035.vdocument.in/reader035/viewer/2022081417/5517a2c35503460e6e8b5e44/html5/thumbnails/22.jpg)
Discrete Mathematical Structures: Theory and Applications 22
Linear Homogenous Recurrence Relations
![Page 23: Chapter 8: Recurrence Relations Discrete Mathematical Structures: Theory and Applications](https://reader035.vdocument.in/reader035/viewer/2022081417/5517a2c35503460e6e8b5e44/html5/thumbnails/23.jpg)
Discrete Mathematical Structures: Theory and Applications 23
Linear Homogenous Recurrence Relations
![Page 24: Chapter 8: Recurrence Relations Discrete Mathematical Structures: Theory and Applications](https://reader035.vdocument.in/reader035/viewer/2022081417/5517a2c35503460e6e8b5e44/html5/thumbnails/24.jpg)
Discrete Mathematical Structures: Theory and Applications 24
Linear Homogenous Recurrence Relations
![Page 25: Chapter 8: Recurrence Relations Discrete Mathematical Structures: Theory and Applications](https://reader035.vdocument.in/reader035/viewer/2022081417/5517a2c35503460e6e8b5e44/html5/thumbnails/25.jpg)
Discrete Mathematical Structures: Theory and Applications 25
![Page 26: Chapter 8: Recurrence Relations Discrete Mathematical Structures: Theory and Applications](https://reader035.vdocument.in/reader035/viewer/2022081417/5517a2c35503460e6e8b5e44/html5/thumbnails/26.jpg)
Discrete Mathematical Structures: Theory and Applications 26
![Page 27: Chapter 8: Recurrence Relations Discrete Mathematical Structures: Theory and Applications](https://reader035.vdocument.in/reader035/viewer/2022081417/5517a2c35503460e6e8b5e44/html5/thumbnails/27.jpg)
Discrete Mathematical Structures: Theory and Applications 27
Linear Homogenous Recurrence Relations
![Page 28: Chapter 8: Recurrence Relations Discrete Mathematical Structures: Theory and Applications](https://reader035.vdocument.in/reader035/viewer/2022081417/5517a2c35503460e6e8b5e44/html5/thumbnails/28.jpg)
Discrete Mathematical Structures: Theory and Applications 28
![Page 29: Chapter 8: Recurrence Relations Discrete Mathematical Structures: Theory and Applications](https://reader035.vdocument.in/reader035/viewer/2022081417/5517a2c35503460e6e8b5e44/html5/thumbnails/29.jpg)
Discrete Mathematical Structures: Theory and Applications 29
![Page 30: Chapter 8: Recurrence Relations Discrete Mathematical Structures: Theory and Applications](https://reader035.vdocument.in/reader035/viewer/2022081417/5517a2c35503460e6e8b5e44/html5/thumbnails/30.jpg)
Discrete Mathematical Structures: Theory and Applications 30
Linear Homogenous Recurrence Relations
![Page 31: Chapter 8: Recurrence Relations Discrete Mathematical Structures: Theory and Applications](https://reader035.vdocument.in/reader035/viewer/2022081417/5517a2c35503460e6e8b5e44/html5/thumbnails/31.jpg)
Discrete Mathematical Structures: Theory and Applications 31
Linear Homogenous Recurrence Relations
![Page 32: Chapter 8: Recurrence Relations Discrete Mathematical Structures: Theory and Applications](https://reader035.vdocument.in/reader035/viewer/2022081417/5517a2c35503460e6e8b5e44/html5/thumbnails/32.jpg)
Discrete Mathematical Structures: Theory and Applications 32
Linear Homogenous Recurrence Relations
![Page 33: Chapter 8: Recurrence Relations Discrete Mathematical Structures: Theory and Applications](https://reader035.vdocument.in/reader035/viewer/2022081417/5517a2c35503460e6e8b5e44/html5/thumbnails/33.jpg)
Discrete Mathematical Structures: Theory and Applications 33
Linear Homogenous Recurrence Relations
![Page 34: Chapter 8: Recurrence Relations Discrete Mathematical Structures: Theory and Applications](https://reader035.vdocument.in/reader035/viewer/2022081417/5517a2c35503460e6e8b5e44/html5/thumbnails/34.jpg)
Discrete Mathematical Structures: Theory and Applications 34
Linear Nonhomogenous Recurrence Relations
![Page 35: Chapter 8: Recurrence Relations Discrete Mathematical Structures: Theory and Applications](https://reader035.vdocument.in/reader035/viewer/2022081417/5517a2c35503460e6e8b5e44/html5/thumbnails/35.jpg)
Discrete Mathematical Structures: Theory and Applications 35
Linear Nonhomogenous Recurrence Relations
![Page 36: Chapter 8: Recurrence Relations Discrete Mathematical Structures: Theory and Applications](https://reader035.vdocument.in/reader035/viewer/2022081417/5517a2c35503460e6e8b5e44/html5/thumbnails/36.jpg)
Discrete Mathematical Structures: Theory and Applications 36
Linear Nonhomogenous Recurrence Relations
![Page 37: Chapter 8: Recurrence Relations Discrete Mathematical Structures: Theory and Applications](https://reader035.vdocument.in/reader035/viewer/2022081417/5517a2c35503460e6e8b5e44/html5/thumbnails/37.jpg)
Discrete Mathematical Structures: Theory and Applications 37
Linear Nonhomogenous Recurrence Relations
![Page 38: Chapter 8: Recurrence Relations Discrete Mathematical Structures: Theory and Applications](https://reader035.vdocument.in/reader035/viewer/2022081417/5517a2c35503460e6e8b5e44/html5/thumbnails/38.jpg)
Discrete Mathematical Structures: Theory and Applications 38
![Page 39: Chapter 8: Recurrence Relations Discrete Mathematical Structures: Theory and Applications](https://reader035.vdocument.in/reader035/viewer/2022081417/5517a2c35503460e6e8b5e44/html5/thumbnails/39.jpg)
Discrete Mathematical Structures: Theory and Applications 39
Linear Nonhomogenous Recurrence Relations
![Page 40: Chapter 8: Recurrence Relations Discrete Mathematical Structures: Theory and Applications](https://reader035.vdocument.in/reader035/viewer/2022081417/5517a2c35503460e6e8b5e44/html5/thumbnails/40.jpg)
Discrete Mathematical Structures: Theory and Applications 40
Linear Nonhomogenous Recurrence Relations
![Page 41: Chapter 8: Recurrence Relations Discrete Mathematical Structures: Theory and Applications](https://reader035.vdocument.in/reader035/viewer/2022081417/5517a2c35503460e6e8b5e44/html5/thumbnails/41.jpg)
Discrete Mathematical Structures: Theory and Applications 41
![Page 42: Chapter 8: Recurrence Relations Discrete Mathematical Structures: Theory and Applications](https://reader035.vdocument.in/reader035/viewer/2022081417/5517a2c35503460e6e8b5e44/html5/thumbnails/42.jpg)
Discrete Mathematical Structures: Theory and Applications 42
![Page 43: Chapter 8: Recurrence Relations Discrete Mathematical Structures: Theory and Applications](https://reader035.vdocument.in/reader035/viewer/2022081417/5517a2c35503460e6e8b5e44/html5/thumbnails/43.jpg)
Discrete Mathematical Structures: Theory and Applications 43
Linear Nonhomogenous Recurrence Relations
![Page 44: Chapter 8: Recurrence Relations Discrete Mathematical Structures: Theory and Applications](https://reader035.vdocument.in/reader035/viewer/2022081417/5517a2c35503460e6e8b5e44/html5/thumbnails/44.jpg)
Discrete Mathematical Structures: Theory and Applications 44
Remark 8.3.14
There are two ways to solve a linear nonhomogeneous equation of the form
with some given initial conditions.
1. First find a particular solution and then add the particular solution to a solution of the associated linear homogeneous recurrence relation.
2. First obtain a linear homogeneous recurrence relation from the given linear nonhomogeneous recurrence relation, as shown in this section. Then a solution of the given linear nonhomogeneous recurrence relation is also a solution of the linear homogeneous equation obtained. Next find a solution of the homogeneous recurrence relation and use the initial conditions of the nonhomogeneous recurrence solution to find the constants. Finally, verify that the solution obtained satisfies the linear nonhomogeneous recurrence relation.