17.01.2013 Views

Data Structures and Algorithm Analysis in C - SVS

Data Structures and Algorithm Analysis in C - SVS

Data Structures and Algorithm Analysis in C - SVS

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.

<strong>Structures</strong>, <strong>Algorithm</strong> <strong>Analysis</strong>: CHAPTER 1: INTRODUCTION<br />

< (3/5)(5/3) k+1 + (9/25)(5/3) k+1<br />

which simplifies to<br />

F k+1 < (3/5 + 9/25)(5/3) k+1<br />

< (24/25)(5/3) k+1<br />

< (5/3) k+1<br />

prov<strong>in</strong>g the theorem.<br />

As a second example, we establish the follow<strong>in</strong>g theorem.<br />

THEOREM 1.3.<br />

PROOF:<br />

The proof is by <strong>in</strong>duction. For the basis, it is readily seen that the theorem is true when n = 1.<br />

For the <strong>in</strong>ductive hypothesis, assume that the theorem is true for 1 k n. We will<br />

establish that, under this assumption, the theorem is true for n + 1. We have<br />

Apply<strong>in</strong>g the <strong>in</strong>ductive hypothesis, we obta<strong>in</strong><br />

Thus,<br />

prov<strong>in</strong>g the theorem.<br />

Proof by Counterexample<br />

mk:@MSITStore:K:\<strong>Data</strong>.<strong>Structures</strong>.<strong>and</strong>.<strong>Algorithm</strong>.<strong>Analysis</strong>.<strong>in</strong>.C.chm::/...<br />

页码,7/14<br />

2006-1-27

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

Saved successfully!

Ooh no, something went wrong!