Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
If we can show a decision problem is hard then it will imply that its
corresponding optimization problem is also hard.
TURING MACHINE
Turing machine consists of a line of cells called "tape" that can be moved
back & forth, an active element called "head" that possesses a property
called "state" & that can change the property known as "color" of the
active cell underneath it, and a set of instructions for how the head
should modify the active cell and move the tape.
P CLASS PROBLEM
NP CLASS PROBLEM
NP COMPLETE
A problem X is NP-Complete if
X is in NP, and
NP HARD
Satisfiability (SAT)
INSTANCE
A Logical expression containing
variables xi
logical connectors &, |, and !
PROBLEM
Is there an assignment of truth values to each of
the variables such that the expression will
evaluate to true.
COOKS THEOREM
Theorem:
SATISFIABILITY is NP-Complete.
Proof idea.
-- First show that SAT is in NP.
--Then show that every problem in NP is polynomial-time
reducible to SAT.(i.e SAT is NP hard.)
PROOF :
PROOF(CONTINUED)
We will place the symbol # in the first and last cells of each row, to
help identify the ends of the tape.
PROOF(CONTINUED)
That is, each cell contains one symbol from the set.
Example
INPUT(11)
PROOF(CONTINUED)
These expressions will all be true if and only if the table represents a
valid computation resulting in acceptance.
PROOF(CONTINUED)
The move expression move will take a bit more effort, the legal
moves are left and right. We will consider 2 x 3 windows in the table.
PROOF(CONTINUED)
Hence proved.