NP Completeness
NP Completeness
Preliminaries
• Polynomial-Time algorithm:
On input size n the worst-case running time is
O(nk) for some constant k.
• 3-CNF
Continued.
• P consists of problems solvable in polynomial
time.
• NP consists problems that are verifiable in
polynomial time
• If we were given a certificate of a solution , we
can verify whether it is correct in polynomial time
• P NP ?
• (Open question whether P is a proper subset of
NP)
NP-Complete Definition
X’ Y
Continued.
• If k denotes the no. of clauses in the CNF
formula (f), then the k-vertex clique in the
graph represents ways of assigning truth
values to some of its variables in order to
satisfy the formula.