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 4 - heapsort<br />

Let a = 1, b= 3/2 and f(n) = 1.<br />

Note that , since .<br />

Thus Case 2 of the Master theorem applies.<br />

<strong>The</strong> Master <strong>The</strong>orem: Let and b>1 be constants, let f(n) be a function, and let T(n) be defined on the nonnegative<br />

integers by the recurrence<br />

where we interpret n/b to mean either or . <strong>The</strong>n T(n) can be bounded asymptotically as follows:<br />

1. If for some constant , then .<br />

2. If , then .<br />

3. If for some constant , and if for some constant c

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

Saved successfully!

Ooh no, something went wrong!