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.

3-Satisfiability<br />

where for , , , and .<br />

<strong>The</strong> most complicated case is that of the large clauses. If none of the original variables are , then<br />

there are not enough additional variables to be able to satisfy all of the new subclauses. You can satisfy<br />

by setting , but this forces , and so on until finally cannot be satisfied. But<br />

if any single literal , then we have n-3 free variables and n-3 remaining 3-clauses, so we can<br />

satisfy each of them.<br />

This transform takes O(m+n) time if there were n clauses and m total literals in the SAT instance. Since<br />

any SAT solution also satisfies the 3-SAT instance and any 3-SAT solution sets the variables giving a<br />

SAT solution, the transformed problem is equivallent to the original.<br />

Note that a slight modification to this construction would serve to prove that 4-SAT, 5-SAT, or any<br />

-SAT is also NP-complete. However, this construction breaks down when we try to use it for 2-<br />

SAT, since there is no way to stuff anything into the chain of clauses. It turns out that resolution gives a<br />

polynomial-time algorithm for 2-SAT, as discussed in Section .<br />

Next: Difficult Reductions Up: Satisfiability Previous: <strong>The</strong> <strong>The</strong>ory of NP-Completeness<br />

<strong>Algorithm</strong>s<br />

Mon Jun 2 23:33:50 EDT 1997<br />

file:///E|/BOOK/BOOK3/NODE112.HTM (2 of 2) [19/1/2003 1:29:50]

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

Saved successfully!

Ooh no, something went wrong!