06.09.2021 Views

Linear Algebra, 2020a

Linear Algebra, 2020a

Linear Algebra, 2020a

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

480 Chapter Five. Similarity<br />

a linear homogeneous recurrence of order 1. Its associated polynomial is −λ + 2,<br />

with the single root r 1 = 2. Thus functions satisfying the homogeneous relation<br />

take the form c 1 2 n .<br />

That’s the homogeneous solution. Now we need a particular solution. Because<br />

the nonhomogeneous relation −1 =−T(n) +2T(n − 1) is so simple, we can<br />

by eye spot a particular solution T(n) =−1. Any solution of the recurrence<br />

T(n) =2T(n − 1)+1 (without initial conditions) is the sum of the homogeneous<br />

solution and the particular solution: c 1 2 n −1. Now the initial condition T(1) =1<br />

gives that c 1 = 1 and we’ve gotten the formula that generates the table: the<br />

n-disk Tower of Hanoi problem requires T(n) =2 n − 1 moves.<br />

Finding a particular solution in more complicated cases is, perhaps not<br />

surprisingly, more complicated. A delightful and rewarding, but challenging,<br />

source is [Graham, Knuth, Patashnik]. For more on the Tower of Hanoi see<br />

[Ball & Coxeter], [Gardner 1957], and [Hofstadter]. Some computer code follows<br />

the exercises.<br />

Exercises<br />

1 How many months until the number of Fibonacci rabbit pairs passes a thousand?<br />

Ten thousand? A million?<br />

2 Solve each homogeneous linear recurrence relations.<br />

(a) f(n) =5f(n − 1)−6f(n − 2)<br />

(b) f(n) =4f(n − 2)<br />

(c) f(n) =5f(n − 1)−2f(n − 2)−8f(n − 3)<br />

3 Give a formula for the relations of the prior exercise, with these initial conditions.<br />

(a) f(0) =1, f(1) =1<br />

(b) f(0) =0, f(1) =1<br />

(c) f(0) =1, f(1) =1, f(2) =3.<br />

4 Check that the isomorphism given between S and R k is a linear map.<br />

5 Show that the characteristic equation of the matrix is as stated, that is, is the<br />

polynomial associated with the relation. (Hint: expanding down the final column<br />

and using induction will work.)<br />

6 Given a homogeneous linear recurrence relation f(n) =a n f(n−1)+···+a n−k f(n−<br />

k), let r 1 ,...,r k be the roots of the associated polynomial. Prove that each function<br />

f ri (n) =r n k satisfies the recurrence (without initial conditions).<br />

7 (This refers to the value T(64) =18, 446, 744, 073, 709, 551, 615 given in the computer<br />

code below.) Transferring one disk per second, how many years would it<br />

take the priests at the Tower of Hanoi to finish the job?<br />

Computer Code<br />

This code generates the first few values of a function defined by a recurrence<br />

and initial conditions. It is in the Scheme dialect of LISP, specifically,<br />

[Chicken Scheme].

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!