l13-handout

l13-handout - Outline NP-completeness Lecture 13: Proving...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
NP-Complete David Dill Department of Computer Science 1 Outline NP-completeness SAT CSAT 3SAT 2 NP-complete problems This is about decision problems (problems with yes/no answers). Equivalently, solving the membership problem x L . The class P – problems that are solvable in polynomial time on an DTM. (P-time, polynomial time). The class N P – problems that are solvable in polynomial time on an NTM. Obviously P N P . No one knows whether N P P (the famous P = N P problem). NP-complete problems are the “hardest” problems in NP. If there are any problems in N P - P , the NP-complete problems are all there. Every NP-complete problem can be translated in deterministic polynomial time to every other NP-complete problem. So, if there is a P-time to one NP-complete problem, there is a P-time solution to every P-time problem. 3 NP-hardness by reduction Typical method: Reduce a known NP-hard problem P 1 to the new problem P 2 . A reduction is a polynomial-time translation of the problem, call it r . If w is an instance of problem P 1 , then r ( w ) is an instance of problem P 2 . r must have two properties: it preserves the answer. So the answer to w is “yes” iff the answer to r ( w ) is “yes.” r ( w ) can be computed in time polynomial in | w | . 4
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
Image of page 2
This is the end of the preview. Sign up to access the rest of the document.

This note was uploaded on 03/08/2011 for the course CS 154 taught by Professor Motwani,r during the Winter '08 term at Stanford.

Page1 / 3

l13-handout - Outline NP-completeness Lecture 13: Proving...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online