NP-Completeness Proofs

Slides:



Advertisements
Similar presentations
Propositional and First Order Reasoning. Terminology Propositional variable: boolean variable (p) Literal: propositional variable or its negation p 
Advertisements

Models and Propositional Logic In propositional logic, a model in general simply fixes the truth value – true or false – for every proposition symbol.
Lecture 23. Subset Sum is NPC
Lecture 21 NP-complete problems
1 Boolean Satisfiability in Electronic Design Automation (EDA ) By Kunal P. Ganeshpure.
1 Polynomial Church-Turing thesis A decision problem can be solved in polynomial time by using a reasonable sequential model of computation if and only.
1 Polynomial Time Reductions Polynomial Computable function : For any computes in polynomial time.
The Theory of NP-Completeness
Restricted Satisfiability (SAT) Problem
1 CSE 417: Algorithms and Computational Complexity Winter 2001 Lecture 23 Instructor: Paul Beame.
NP-Completeness (2) NP-Completeness Graphs 4/17/2017 6:25 AM x x x x x
Restricted Satisfiability (SAT) Problem
1 The Cook-Levin Theorem Zeph Grunschlag. 2 Announcements Last HW due Thursday Please give feedback about course at oracle.seas.columbia.edu/wces oracle.seas.columbia.edu/wces.
1 L is in NP means: There is a language L’ in P and a polynomial p so that L 1 ≤ L 2 means: For some polynomial time computable map r : x: x L 1 iff r(x)
The Theory of NP-Completeness 1. What is NP-completeness? Consider the circuit satisfiability problem Difficult to answer the decision problem in polynomial.
Lecture 22 More NPC problems
Theory of Computation, Feodor F. Dragan, Kent State University 1 NP-Completeness P: is the set of decision problems (or languages) that are solvable in.
INTRODUCTION TO ARTIFICIAL INTELLIGENCE COS302 MICHAEL L. LITTMAN FALL 2001 Satisfiability.
INHERENT LIMITATIONS OF COMPUTER PROGRAMS CSci 4011.
MCS 312: NP Completeness and Approximation algorthms Instructor Neelima Gupta
1 NP-Completeness Poly time algorithm: input size n (in some encoding), worst case running time – O(n c ) for some constant c. Three classes of problems.
EMIS 8373: Integer Programming NP-Complete Problems updated 21 April 2009.
Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display. Circuit Design.
1 P P := the class of decision problems (languages) decided by a Turing machine so that for some polynomial p and all x, the machine terminates after at.
Unit 9: Coping with NP-Completeness
NP-Completeness (Nondeterministic Polynomial Completeness) Sushanth Sivaram Vallath & Z. Joseph.
1 Chapter 10 Intractable Problems Switzerland Lion Monument in Lucerne.
28.
Solving the Logic Satisfiability problem Solving the Logic Satisfiability problem Jesus De Loera.
Chapter 11 Introduction to Computational Complexity Copyright © 2011 The McGraw-Hill Companies, Inc. Permission required for reproduction or display. 1.
NPC.
CSCI 2670 Introduction to Theory of Computing December 2, 2004.
CSCI 2670 Introduction to Theory of Computing December 7, 2005.
CSE 421 Algorithms Richard Anderson Lecture 27 NP-Completeness Proofs.
CSC 3130: Automata theory and formal languages Andrej Bogdanov The Chinese University of Hong Kong NP-complete.
Computability Examples. Reducibility. NP completeness. Homework: Find other examples of NP complete problems.
 2005 SDU Lecture15 P,NP,NP-complete.  2005 SDU 2 The PATH problem PATH = { | G is a directed graph that has a directed path from s to t} s t
TU/e Algorithms (2IL15) – Lecture 10 1 NP-Completeness, II.
NP-Completeness A problem is NP-complete if: It is in NP
NP-Completeness (2) NP-Completeness Graphs 4/13/2018 5:22 AM x x x x x
L is in NP means: There is a language L’ in P and a polynomial p so that L1 ≤ L2 means: For some polynomial time computable map r :  x: x  L1 iff.
Richard Anderson Lecture 26 NP-Completeness
Advanced Algorithms Analysis and Design
Polynomial-Time Reduction
NP-Completeness (2) NP-Completeness Graphs 7/23/ :02 PM x x x x
NP-Completeness (2) NP-Completeness Graphs 7/23/ :02 PM x x x x
NP-Completeness Proofs
Richard Anderson Lecture 26 NP-Completeness
Hard Problems Introduction to NP
NP-Completeness (36.4-5) P: yes and no in pt NP: yes in pt NPH  NPC
NP-complete problems The Chinese University of Hong Kong Fall 2008
NP-Completeness Yin Tat Lee
CS21 Decidability and Tractability
Intro to Theory of Computation
Intro to Theory of Computation
Propositional Calculus: Boolean Algebra and Simplification
Lecture 24 NP-Complete Problems
NP-Completeness (2) NP-Completeness Graphs 11/23/2018 2:12 PM x x x x
Richard Anderson Lecture 25 NP-Completeness
The Satisfiability Problem
Richard Anderson Lecture 28 NP-Completeness
Chapter 34: NP-Completeness
Richard Anderson Lecture 28 NP Completeness
PROPOSITIONAL LOGIC - SYNTAX-
Richard Anderson Lecture 26 NP-Completeness
NP-Completeness Yin Tat Lee
Instructor: Aaron Roth
NP-Completeness (2) NP-Completeness Graphs 7/9/2019 6:12 AM x x x x x
The Satisfiability Problem
Lecture 23 NP-Hard Problems
Presentation transcript:

NP-Completeness Proofs Since L’ is NPC, for all L” in NP we have L” <=p L’ L’ <=p L is given, so by transitivity we have L” <=p L Therefore L is NP-hard; moreover if L is NP then by definition L is NPC

Formula Satisfiability An instance of SAT is a boolean formula composed of A particular truth value assignment to variables satisfies the formula if the result is true Our goal is to prove SAT is NP-complete, but first we look at a sample problem

An Example of SAT Since there are 2n possible assignments to n boolean variables, we do not suspect a polynomial algorithm will exist to prove satisfiability

Reduction to CIRCUIT-SAT - 1 First we claim verification can happen in polynomial time simply by replacing all variable in the formula with the given constant value and find if the final result is 1 We now show any instance of circuit satisfiability can be reduced to formula satisfiability in polynomial time Each wire is labeled with a variable and the operation of each gate is expressed as a formula, such as x1 x2 x3 x4 for The circuit  is the AND of all the individual circuit components

Reduction to CIRCUIT-SAT - 2 Here is an example with a complete circuit The AND of the logical operation of all gates gives us the desired formula This formula can be produced in polynomial time

3-CNF Satisfiability Definition a literal is a variable or its negation a formula in conjunctive normal form is expressed as an AND of clauses each of which contains the OR of one or more literals

Reduction - Step 1 Construct a binary parse tree for the formula use associativity to insure only 1 or 2 children introduce variables on the branches and write the formula as we have done before

Reduction - Step 2 The rows with 0 result are used to form the DNF Each clause has at most three terms

Reduction - Step 3 The final task is to insure exactly 3 terms per clause All three steps preserve satisfiability The formula is polynomial in length because step 1 introduces at most 1 variable and 1 clause per connective; step 2 introduces at most 23 = 8 clauses step 3 introduces at most 4 clauses per connective