18.04.2013 Views

The.Algorithm.Design.Manual.Springer-Verlag.1998

The.Algorithm.Design.Manual.Springer-Verlag.1998

The.Algorithm.Design.Manual.Springer-Verlag.1998

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.

Lecture 3 - recurrence relations<br />

<strong>The</strong> term should now be obvious.<br />

Although there are only terms before we get to T(1), it doesn't hurt to sum them all since this is a<br />

fast growing geometric series:<br />

Listen To Part 3-8<br />

Recursion Trees<br />

Drawing a picture of the backsubstitution process gives you a idea of what is going on.<br />

We must keep track of two things - (1) the size of the remaining argument to the recurrence, and (2) the<br />

additive stuff to be accumulated during this call.<br />

Example:<br />

<strong>The</strong> remaining arguments are on the left, the additive terms on the right.<br />

Although this tree has height , the total sum at each level decreases geometrically, so:<br />

<strong>The</strong> recursion tree framework made this much easier to see than with algebraic backsubstitution.<br />

file:///E|/LEC/LECTUR17/NODE3.HTM (5 of 10) [19/1/2003 1:34:27]

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

Saved successfully!

Ooh no, something went wrong!