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 19 - satisfiability<br />

Next: Lecture 20 - integer Up: No Title Previous: Lecture 18 - shortest<br />

Lecture 19 - satisfiability<br />

Listen To Part 21-7<br />

<strong>The</strong> <strong>The</strong>ory of NP-Completeness<br />

Several times this semester we have encountered problems for which we couldn't find efficient algorithms,<br />

such as the traveling salesman problem. We also couldn't prove an exponential time lower bound for the<br />

problem.<br />

By the early 1970s, literally hundreds of problems were stuck in this limbo. <strong>The</strong> theory of NP-Compleness,<br />

developed by Stephen Cook and Richard Karp, provided the tools to show that all of these problems were<br />

really the same problem.<br />

Listen To Part 21-8<br />

n f(n) = n f(n) = n!<br />

10 0.01 s 0.1 s 1 s 3.63 ms<br />

20 0.02 s 0.4 s 1 ms 77.1 years<br />

Polynomial vs. Exponential Time<br />

30 0.03 s 0.9 s 1 sec years<br />

40 0.04 s 1.6 s 18.3 min<br />

50 0.05 s 2.5 s 13 days<br />

100 0.1 s 10 s years<br />

1,000 1.00 s 1 ms<br />

Listen To Part 21-9<br />

<strong>The</strong> Main Idea<br />

Suppose I gave you the following algorithm to solve the bandersnatch problem:<br />

file:///E|/LEC/LECTUR16/NODE19.HTM (1 of 7) [19/1/2003 1:35:22]

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

Saved successfully!

Ooh no, something went wrong!