Chapter 8. Recursion. 8.3. More Recurrence. Second-Order Recurrence. Definition
PowerPoint Slideshow about 'Chapter 8' - xiu
An Image/Link below is provided (as is) to download presentation
Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author.While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server.
A second-order linear homogeneous recurrence relation with constant coefficients is a recurrence relation of the form,ak = Aak-1 + Bak-2 for all intsk ≥ some fixed int, where A and B are fixed real numbers and B≠0.
This is called a second order because expression is based on the previous two terms (ak-1 , ak-2).
Its linear ak-1 , ak-2 are separate terms of the first order.
Homogenous because are terms are of the same order.
Constant coefficient b/c A and B are fixed real numbers that do not depend on k.
Let A and B be real numbers. A recurrence relation of the form ak = Aak-1 + Bak-2 is satisfied by the sequence 1, t, t2, t3, … , tn, … where t is non-zero real number if, and only if, t satisfies the equation t2 – At – B = 0.
Let A and B be real numbers and suppose the characteristic eq t2 – At – B = 0 has a single root r. Then the sequence 1, r1, r2, … , rn, … and 0, r, 2r2, … nrn, … both satisfy the recurrence relationak = Aak-1 + Bak-2 for all ints k≥2
Suppose a sequence satisfies a recurrence relation ak = Aak-1 + Bak-2for some real numbers A and B with B≠0 and for all ints k≥2. If the characteristic eq t2 – At – B = 0 has a single (real) root r then the sequence a0, a1, a2, … satisfies the explicit formula an = Crn + Dnrnwhere C and D are the real numbers whose values are determined by the values of a0 and any other known value of the sequence.
Suppose b0, b1, b2 … satisfies the recurrence relation bk = 4bk-1 – 4bk-2 for all intsk ≥ 2 with initial conditions b0 = 1 and b1 = 3.Find an explicit formula for the sequence.
sequences is of second-order linear homogenous recurrence relation with constant coefficients (A=4 and B=-4). The single-root condition is also met because the characteristic equation t2 – 4t + 4 = 0 has a single root r = 2 ( (t-2)(t-2) )
bn = C 2n + Dn2n
to find C and D use initial conditions
b0 = 1 = C 20 +D(0)20 => C = 1
b1 = 3 = C 21 +D(1)21 =>2C + 2D = 3 (sub C = 1 from above)