Complexity Theory. Jörg Kreiker. Summer term Chair for Theoretical Computer Science Prof. Esparza TU München

Similar documents
Complexity Theory. Jörg Kreiker. Summer term Chair for Theoretical Computer Science Prof. Esparza TU München

Complexity Theory. Jörg Kreiker. Summer term Chair for Theoretical Computer Science Prof. Esparza TU München

Complexity Theory. Jörg Kreiker. Summer term Chair for Theoretical Computer Science Prof. Esparza TU München

Complexity Theory. Jörg Kreiker. Summer term Chair for Theoretical Computer Science Prof. Esparza TU München

Lecture 2 (Notes) 1. The book Computational Complexity: A Modern Approach by Sanjeev Arora and Boaz Barak;

Complexity Theory. Jörg Kreiker. Summer term Chair for Theoretical Computer Science Prof. Esparza TU München

NP Complete Problems. COMP 215 Lecture 20

Computability and Complexity Theory: An Introduction

SAT, NP, NP-Completeness

Technische Universität München Summer term 2010 Theoretische Informatik August 2, 2010 Dr. J. Kreiker / Dr. M. Luttenberger, J. Kretinsky SOLUTION

ECE 695 Numerical Simulations Lecture 2: Computability and NPhardness. Prof. Peter Bermel January 11, 2017

NP-Completeness Part II

an efficient procedure for the decision problem. We illustrate this phenomenon for the Satisfiability problem.

Complexity Theory Final Exam

Lecture Notes Each circuit agrees with M on inputs of length equal to its index, i.e. n, x {0, 1} n, C n (x) = M(x).

CSCI 1590 Intro to Computational Complexity

Welcome to... Problem Analysis and Complexity Theory , 3 VU

NP-completeness was introduced by Stephen Cook in 1971 in a foundational paper.

CSE 555 HW 5 SAMPLE SOLUTION. Question 1.

CS154, Lecture 13: P vs NP

Lecture 7: Polynomial time hierarchy

The Cook-Levin Theorem

CSCI3390-Lecture 16: NP-completeness

The Polynomial Hierarchy

NP-Complete Reductions 1

Algorithm Design and Analysis

NP-Completeness. A language B is NP-complete iff B NP. This property means B is NP hard

Lecture 13, Fall 04/05

Space Complexity. Master Informatique. Université Paris 5 René Descartes. Master Info. Complexity Space 1/26

Theory of Computation CS3102 Spring 2014 A tale of computers, math, problem solving, life, love and tragic death

NP Completeness. Richard Karp, 1972.

Theory of Computation Chapter 9

Lecture 18: PCP Theorem and Hardness of Approximation I

Lecture 3: Nondeterminism, NP, and NP-completeness

Lecture 25: Cook s Theorem (1997) Steven Skiena. skiena

SAT, Coloring, Hamiltonian Cycle, TSP

CSE 3500 Algorithms and Complexity Fall 2016 Lecture 25: November 29, 2016

Essential facts about NP-completeness:

Intro to Theory of Computation

PCP Theorem and Hardness of Approximation

Week 3: Reductions and Completeness

CS154, Lecture 13: P vs NP

CS154, Lecture 15: Cook-Levin Theorem SAT, 3SAT

Circuits. Lecture 11 Uniform Circuit Complexity

NP Completeness. CS 374: Algorithms & Models of Computation, Spring Lecture 23. November 19, 2015

CS256 Applied Theory of Computation

NP and NP Completeness

U.C. Berkeley CS278: Computational Complexity Professor Luca Trevisan August 30, Notes for Lecture 1

Polynomial time reduction and NP-completeness. Exploring some time complexity limits of polynomial time algorithmic solutions

Chapter 7: Time Complexity

NP and Computational Intractability

NP-Completeness Part II

P vs. NP Classes. Prof. (Dr.) K.R. Chowdhary.

CS154, Lecture 18: 1

CS21 Decidability and Tractability

Theory of Computation Time Complexity

Announcements. Friday Four Square! Problem Set 8 due right now. Problem Set 9 out, due next Friday at 2:15PM. Did you lose a phone in my office?

Space is a computation resource. Unlike time it can be reused. Computational Complexity, by Fu Yuxi Space Complexity 1 / 44

NP-Complete Reductions 2

CSCI 1590 Intro to Computational Complexity

Non-Deterministic Time

Lecture 10: Boolean Circuits (cont.)

Complexity Theory. Knowledge Representation and Reasoning. November 2, 2005

CS154, Lecture 17: conp, Oracles again, Space Complexity

P = k T IME(n k ) Now, do all decidable languages belong to P? Let s consider a couple of languages:

Introduction to Complexity Theory. Bernhard Häupler. May 2, 2006

The Complexity of Optimization Problems

Lecture 19: Finish NP-Completeness, conp and Friends

Time and space classes

Show that the following problems are NP-complete

1. Introduction Recap

6.080 / Great Ideas in Theoretical Computer Science Spring 2008

P, NP, NP-Complete, and NPhard

CSE 135: Introduction to Theory of Computation NP-completeness

Polynomial Hierarchy

1 Non-deterministic Turing Machine

Limits to Approximability: When Algorithms Won't Help You. Note: Contents of today s lecture won t be on the exam

NP-Completeness Part II

Lecture 4: NP and computational intractability

Recap from Last Time

Lecture 17: Cook-Levin Theorem, NP-Complete Problems

Intro to Theory of Computation

Maximum 3-SAT as QUBO

Notes on Complexity Theory Last updated: October, Lecture 6

Lecture 3 (Notes) 1. The book Computational Complexity: A Modern Approach by Sanjeev Arora and Boaz Barak;

A.Antonopoulos 18/1/2010

NP-Complete problems

Chapter 2. Reductions and NP. 2.1 Reductions Continued The Satisfiability Problem (SAT) SAT 3SAT. CS 573: Algorithms, Fall 2013 August 29, 2013

Algorithms and Theory of Computation. Lecture 22: NP-Completeness (2)

Non-Approximability Results (2 nd part) 1/19

Lecture 16: Time Complexity and P vs NP

NP-Complete Reductions 3

Beyond NP [HMU06,Chp.11a] Tautology Problem NP-Hardness and co-np Historical Comments Optimization Problems More Complexity Classes

NP and Computational Intractability

DRAFT. PCP and Hardness of Approximation. Chapter 19

CS21 Decidability and Tractability

: Computational Complexity Lecture 3 ITCS, Tsinghua Univesity, Fall October 2007

6.045: Automata, Computability, and Complexity (GITCS) Class 15 Nancy Lynch

Review of unsolvability

Complete problems for classes in PH, The Polynomial-Time Hierarchy (PH) oracle is like a subroutine, or function in

Transcription:

Complexity Theory Jörg Kreiker Chair for Theoretical Computer Science Prof. Esparza TU München Summer term 2010

Lecture 4 NP-completeness

Recap: relations between classes EXP PSPACE = NPSPACE conp NP conp P NL NP L

Agenda efficiently checkable certificates reductions, hardness, completeness Cook-Levin: 3SAT is NP-complete

Certificates NP: efficiently checkable certificates NP computable with NDTM in polynomial time.

Certificates NP: efficiently checkable certificates NP computable with NDTM in polynomial time. Theorem (Certificates) For every L {0, 1} holds: L NP if and only if there exists a polynomial p : N N and a polynomial-time TM M such that for every x {0, 1} x L u {0, 1} p( x ). M(x, u) = 1

Certificates NP: efficiently checkable certificates NP computable with NDTM in polynomial time. Theorem (Certificates) For every L {0, 1} holds: L NP if and only if there exists a polynomial p : N N and a polynomial-time TM M such that for every x {0, 1} x L u {0, 1} p( x ). M(x, u) = 1 M is called verifier u is called certificate

Certificates NP: efficiently checkable certificates NP computable with NDTM in polynomial time. Theorem (Certificates) For every L {0, 1} holds: L NP if and only if there exists a polynomial p : N N and a polynomial-time TM M such that for every x {0, 1} x L u {0, 1} p( x ). M(x, u) = 1 M is called verifier u is called certificate Proof: certificate is sequence of choices NDTM guesses certificate

Certificates Examples Indset: certificate is set of nodes, size of certificate for k nodes in graph with n nodes O(k log n) 0/1 ILP: given a list of m linear inequalities with rational coefficients over variables x 1,..., x k ; find out if there is an assignment of 0s and 1s to x i satisfying all inequalities; certificate is assignment. Iso: given two n n adjacency matrices; do they define isomorphic graphs; certificate is a permutation π : [n] [n]

Certificates Agenda efficiently checkable certificates reductions, hardness, completeness Cook-Levin: 3SAT is NP-complete

Completeness Reductions reminder IF there is an efficient procedure for problem A and and an efficient procedure for B using the procedure for A THEN B cannot be radically harder than A notation: B A We have seen (at least) two reductions. 3 Coloring was reduced to Indset the diagonalized, undecidable language reduced to Halt reduction does not make anything smaller

Completeness Reductions definition Definition (Karp reduction) Let L, L {0, 1} be languages. L is polynomial-time Karp reducible to L iff there exists a polynomial-time computable funtion f : {0, 1} {0, 1} such that for all x {0, 1} We write L p L. x L f(x) L

Completeness Reductions definition Definition (Karp reduction) Let L, L {0, 1} be languages. L is polynomial-time Karp reducible to L iff there exists a polynomial-time computable funtion f : {0, 1} {0, 1} such that for all x {0, 1} We write L p L. x L f(x) L Note: p is a transitive relation on languages (because the composition of polynomials is a polynomial).

Completeness Hardness and Completeness Definition (NP-hardness and -completness) Let L {0, 1} be a language. L is NP-hard if L p L for every L NP L is NP-complete if L is NP-hard and L NP.

Completeness Hardness and Completeness Definition (NP-hardness and -completness) Let L {0, 1} be a language. L is NP-hard if L p L for every L NP L is NP-complete if L is NP-hard and L NP. Examples of NP-hard languages: Indset, Halt k, Halt

Completeness Hardness and Completeness Definition (NP-hardness and -completness) Let L {0, 1} be a language. L is NP-hard if L p L for every L NP L is NP-complete if L is NP-hard and L NP. Examples of NP-hard languages: Indset, Halt k, Halt Observation L NP-hard and L P implies P = NP L NP-complete implies L P iff P = NP

Cook-Levin Do NP-complete languages exist? upcoming result independently discovered by Cook (1971) and Levin (1973) uses notion of satisfiable Boolean formulas Boolean formula ϕ over variables X = {x 1,..., x k } defined by ϕ ::= x ϕ ϕ ϕ ϕ ϕ write x instead of x, x and x literals u assume formulas are in CNF: ϕ = disjunctions j u ij called clauses formula is in k-cnf if the no clause has more than k literals i j u ij

Cook-Levin Cook-Levin Theorem ϕ is satisfiable iff there exists an assignments a : X {0, 1} making ϕ true 3SAT = {ϕ ϕ in 3-CNF and satisfiable} Theorem 3SAT is NP-complete.

Cook-Levin Proof agenda 1. SAT is NP-complete (without restriction to clauses of size three) 1.1 SAT, 3SAT NP 1.2 for every L NP L p SAT 2. Show that SAT p 3SAT

Summary What have we learnt? NP is polynomial certificates Karp reductions, hardness, completeness Cook-Levin: reduce any language in NP to 3SAT up next: more NP-complete problems, P vs. NP, tool demos