Lecture08-nonhomogeneous

Lecture08-nonhomogeneous - are exactly n roots They may...

Info icon This preview shows pages 1–33. Sign up to view the full content.

View Full Document Right Arrow Icon
CS 312: Algorithm Analysis Lecture #8: Non- Homogeneous Recurrence Relations This work is licensed under a Creative Commons Attribution-Share Alike 3.0 Unported License. Slides by: Eric Ringger, with contributions from Mike Jones, Eric Mercer, Sean Warnick
Image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Announcements § HW #5 Due Today § Questions about Homogeneous RR? § Project #2 § Questions about the project? § Early Day: Friday § Due Date: next Monday
Image of page 2
Objectives § Define “roots of multiplicity j” § Understand how to solve non-homogeneous , linear, recurrence relations with constant coefficients § Geometric forcing function § Find the specific solution from initial conditions
Image of page 3

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Example (cont.): Linear, Homogeneous Recurrence Relation
Image of page 4
Image of page 5

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Finding the Particular Solution
Image of page 6
Finding the Particular Solution
Image of page 7

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Fibonacci in Closed Form!
Image of page 8
Fibonacci in Closed Form!
Image of page 9

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Fundamental Theorem of Algebra § For every polynomial of degree n, there
Image of page 10
Image of page 11

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 12
Image of page 13

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 14
Image of page 15

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 16
Image of page 17

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 18
Image of page 19

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full Document Right Arrow Icon
Image of page 20
This is the end of the preview. Sign up to access the rest of the document.

Unformatted text preview: are exactly n roots. § They may not be unique. Roots of Multiplicity j Roots of Multiplicity j Roots of Multiplicity j Roots of Multiplicity j Roots of Multiplicity j Example Example Non-Homogeneous, Linear Recurrence Relations Non-Homogeneous Example What do you notice about the problem now? Non-Homogeneous Example What do you notice about the problem now? Example (Cont.): d=0 Example (Cont.): d=0 Possible Update § Point out existence of homog. RR for every non-homog. RR. § Notation: Use y(k) (homog.) instead of z(k) (non-homog.) to emphasize the difference. Initial Conditions Initial Conditions Example (cont.) Example (cont.) Towers of Hanoi Revisited Towers of Hanoi Revisited Assignment § Read: Recurrence Relations Notes, Parts III & IV § HW #6: Part II Exercises (Section 2.2)...
View Full Document

{[ snackBarMessage ]}

What students are saying

  • Left Quote Icon

    As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

    Student Picture

    Kiran Temple University Fox School of Business ‘17, Course Hero Intern

  • Left Quote Icon

    I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

    Student Picture

    Dana University of Pennsylvania ‘17, Course Hero Intern

  • Left Quote Icon

    The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

    Student Picture

    Jill Tulane University ‘16, Course Hero Intern