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

Similar documents
Essential facts about NP-completeness:

6-1 Computational Complexity

Intractable Problems [HMU06,Chp.10a]

1 Circuit Complexity. CS 6743 Lecture 15 1 Fall Definitions

Umans Complexity Theory Lectures

Correctness of Dijkstra s algorithm

NP-Completeness and Boolean Satisfiability

Intractable Problems. Time-Bounded Turing Machines Classes P and NP Polynomial-Time Reductions

Lecture 23: More PSPACE-Complete, Randomized Complexity

Artificial Intelligence. 3 Problem Complexity. Prof. Dr. Jana Koehler Fall 2016 HSLU - JK

Identifying an Honest EXP NP Oracle Among Many

CSC 5170: Theory of Computational Complexity Lecture 5 The Chinese University of Hong Kong 8 February 2010

CS151 Complexity Theory. Lecture 1 April 3, 2017

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

Time and space classes

Polynomial Space. The classes PS and NPS Relationship to Other Classes Equivalence PS = NPS A PS-Complete Problem

Lecture 19: Interactive Proofs and the PCP Theorem

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

Umans Complexity Theory Lectures

Umans Complexity Theory Lectures

Computational Complexity

NP Complete Problems. COMP 215 Lecture 20

CSCI 1590 Intro to Computational Complexity

Great Theoretical Ideas in Computer Science

-bit integers are all in ThC. Th The following problems are complete for PSPACE NPSPACE ATIME QSAT, GEOGRAPHY, SUCCINCT REACH.

6.896 Quantum Complexity Theory November 4th, Lecture 18

Computational Complexity Theory

Introduction to Computational Complexity

NP-Completeness. CptS 223 Advanced Data Structures. Larry Holder School of Electrical Engineering and Computer Science Washington State University

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

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

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

Notes on Complexity Theory Last updated: December, Lecture 2

Notes on Complexity Theory Last updated: November, Lecture 10

15-451/651: Design & Analysis of Algorithms October 31, 2013 Lecture #20 last changed: October 31, 2013

Computability and Complexity Theory: An Introduction

Quantum Complexity Theory. Wim van Dam HP Labs MSRI UC Berkeley SQUINT 3 June 16, 2003

NP-complete problems. CSE 101: Design and Analysis of Algorithms Lecture 20

1 PSPACE-Completeness

Complexity Theory Final Exam

Lecture 16 November 6th, 2012 (Prasad Raghavendra)

CHAPTER 3 FUNDAMENTALS OF COMPUTATIONAL COMPLEXITY. E. Amaldi Foundations of Operations Research Politecnico di Milano 1

Chapter Finding parse trees

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

6.841/18.405J: Advanced Complexity Wednesday, April 2, Lecture Lecture 14

NP-Completeness. f(n) \ n n sec sec sec. n sec 24.3 sec 5.2 mins. 2 n sec 17.9 mins 35.

Computational Complexity

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

P is the class of problems for which there are algorithms that solve the problem in time O(n k ) for some constant k.

Lecture 23: Alternation vs. Counting

NP-Completeness Review

CSC 5170: Theory of Computational Complexity Lecture 9 The Chinese University of Hong Kong 15 March 2010

Limitations of Algorithm Power

A Note on the Karp-Lipton Collapse for the Exponential Hierarchy

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

6.840 Language Membership

JASS 06 Report Summary. Circuit Complexity. Konstantin S. Ushakov. May 14, 2006

Lecture 24: Randomized Complexity, Course Summary

The Immerman-Szelepcesnyi Theorem and a hard problem for EXPSPACE

6.045 Final Exam Solutions

NP-Completeness I. Lecture Overview Introduction: Reduction and Expressiveness

satisfiability (sat) Satisfiability unsatisfiability (unsat or sat complement) and validity Any Expression φ Can Be Converted into CNFs and DNFs

NP-Complete Reductions 1

ITCS:CCT09 : Computational Complexity Theory Apr 8, Lecture 7

Introduction to Complexity Theory

Hardness of Approximation

Complexity Theory VU , SS The Polynomial Hierarchy. Reinhard Pichler

Outline. Complexity Theory EXACT TSP. The Class DP. Definition. Problem EXACT TSP. Complexity of EXACT TSP. Proposition VU 181.

Computational Complexity. IE 496 Lecture 6. Dr. Ted Ralphs

NP-Completeness Part II

1 Primals and Duals: Zero Sum Games

CS5371 Theory of Computation. Lecture 19: Complexity IV (More on NP, NP-Complete)

Undecidability and Rice s Theorem. Lecture 26, December 3 CS 374, Fall 2015

P vs. NP. Data Structures and Algorithms CSE AU 1

PCP Course; Lectures 1, 2

6.080 / Great Ideas in Theoretical Computer Science Spring 2008

COSE215: Theory of Computation. Lecture 20 P, NP, and NP-Complete Problems

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

COSE215: Theory of Computation. Lecture 21 P, NP, and NP-Complete Problems

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

Overview. 1 Introduction. 2 Preliminary Background. 3 Unique Game. 4 Unique Games Conjecture. 5 Inapproximability Results. 6 Unique Game Algorithms

Lecture 23: Introduction to Quantum Complexity Theory 1 REVIEW: CLASSICAL COMPLEXITY THEORY

NP, polynomial-time mapping reductions, and NP-completeness

Definition: conp = { L L NP } What does a conp computation look like?

Lecture 26. Daniel Apon

6.896 Quantum Complexity Theory November 11, Lecture 20

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

Notes for Lecture 3... x 4

Lecture 22: Quantum computational complexity

Quantum Computing Lecture 8. Quantum Automata and Complexity

Computer Science 385 Analysis of Algorithms Siena College Spring Topic Notes: Limitations of Algorithms

Chapter Finding parse trees

Polynomial Time Computation. Topics in Logic and Complexity Handout 2. Nondeterministic Polynomial Time. Succinct Certificates.

Lecture 8. MINDNF = {(φ, k) φ is a CNF expression and DNF expression ψ s.t. ψ k and ψ is equivalent to φ}

The Complexity Classes NP-Hard, BPP.

Chapter 5 : Randomized computation

1 Agenda. 2 History. 3 Probabilistically Checkable Proofs (PCPs). Lecture Notes Definitions. PCPs. Approximation Algorithms.

Lecture 12: Interactive Proofs

COMPUTATIONAL COMPLEXITY

A.Antonopoulos 18/1/2010

Transcription:

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

Tautology Problem & NP-Hardness & co-np 2

NP-Hardness Another essential part of an NPcompleteness proof is showing the problem is in NP. Sometimes, we can only show a problem NP-hard = if the problem is in P, then P = NP, but the problem may not be in NP. 3

Example: NP-Hard Problem The Tautology Problem is: given a Boolean formula, is it satisfied by all truth assignments? Example: x x yz Not obviously in NP, but it s complement is. Guess a truth assignment; accept if that assignment doesn t satisfy the formula. 4

Key Point Regarding Tautology An NTM can guess a truth assignment and decide whether formula F is satisfied by that assignment in polytime. But if the NTM accepts when it guesses a satisfying assignment, it will accept F whenever F is in SAT, not Tautology. 5

Co-NP A problem/language whose complement is in NP is said to be in Co-NP. Note: P is closed under complementation. Thus, P Co-NP. Also, if P = NP, then P = NP = Co-NP. 6

Tautology is NP-Hard While we can t prove Tautology is in NP, we can prove it is NP-hard. Suppose we had a polytime algorithm for Tautology. Take any Boolean formula F and convert it to (F). Obviously linear time. 7

Tautology is NP-Hard (2) F is satisfiable if and only (F) is not a tautology. Use the hypothetical polytime algorithm for Tautology to test if (F) is a tautology. Say yes, F is in SAT if (F) is not a tautology and say no otherwise. Then SAT would be in P, and P = NP. 8

Historical Comments 9

Historical Comments There were actually two notions of NPcomplete that differ subtlely. And only if P NP. Steve Cook, in his 1970 paper, was really concerned with the question why is Tautology hard? Remember: theorems are really logical tautologies. 10

History (2) Cook used if problem X is in P, then P = NP as the definition of X is NPhard. Today called Cook completeness. In 1972, Richard Karp wrote a paper showing many of the key problems in Operations Research to be NPcomplete. 11

History (3) Karp s paper moved NP-completeness from a concept about theorem proving to an essential for any study of algorithms. But Karp used the definition of NPcompleteness exists a polytime reduction, as we have. Called Karp completeness. 12

Cook Vs. Karp Completeness In practice, there is very little difference. Biggest difference: for Tautology, Cook lets us flip the answer after a polytime reduction. In principle, Cook completeness could be much more powerful, or (if P = NP) exactly the same. 13

Cook Vs. Karp (2) But there is one important reason we prefer Karp-completeness. Suppose I had an algorithm for some NP-complete problem that ran in time O(n log n ). A function that is bigger than any polynomial, yet smaller than the exponentials like 2 n. 14

Cook Vs. Karp (3) If NP-complete is Karp-completeness, I can conclude that all of NP can be solved in time O(n f(n) ), where f(n) is some function of the form c log k n. Still faster than any exponential, and faster than we have a right to expect. But if I use Cook-completeness, I cannot say anything of this type. 15

Optimization Problems 16

Optimization Problems NP-complete problems are always yes/no questions. In practice, we tend to want to solve optimization problems, where our task is to minimize (or maximize) a parameter subject to some constraints. 17

Example: Optimization Problem People who care about node covers would ask: Given this graph, what is the smallest number of nodes I can pick to form a node cover? If I can solve that problem in polytime, then I can solve the yes/no version. 18

Example Continued Polytime algorithm: given graph G and budget k, solve the optimization problem for G. If the smallest node cover for G is of size k or less, answer yes ; otherwise answer no. 19

Optimization Problems (2) Optimization problems are never, strictly speaking, in NP. They are not yes/no. But there is a Cook reduction from the yes/no version to the optimization version. 20

Optimization Problems (3) That is enough to show that if the optimization version of an NP-complete problem can be solved in polytime, then P = NP. A strong argument that you cannot solve the optimization version of an NP-complete problem in polytime. 21

More Complexity Classes 22

Complexity Zoo There are 100s of complexity classes: P & NP: (non-deterministic) polynomial time (N)EXP: (non-det.) exponential time PSPACE: polynomial space (AI games) RP & ZPP & BPP: probabilistic polynomial BQP: quantum (comp.) polynomial time IP: interactive proofs PCP: probabilistically checkable proofs More: P/poly, co-np, NL, #P, AC 0, AM, RP, MA, E, PH, See Aaronson s (2000) Complexity Zoo for many more classes and their relation. 23