P versus NP. Math 40210, Spring September 16, Math (Spring 2012) P versus NP September 16, / 9

Similar documents
P versus NP. Math 40210, Fall November 10, Math (Fall 2015) P versus NP November 10, / 9

P versus NP. Math 40210, Spring April 8, Math (Spring 2012) P versus NP April 8, / 9

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

1.1 P, NP, and NP-complete

1. Introduction Recap

Spring Lecture 21 NP-Complete Problems

P, NP, NP-Complete. Ruth Anderson

CMSC 441: Algorithms. NP Completeness

NP and Computational Intractability

VIII. NP-completeness

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

Introduction to Complexity Theory

K-center Hardness and Max-Coverage (Greedy)

Theory of Computer Science

CMPT307: Complexity Classes: P and N P Week 13-1

Theory of Computer Science. Theory of Computer Science. E1.1 Motivation. E1.2 How to Measure Runtime? E1.3 Decision Problems. E1.

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

NP and NP Completeness

SAT, NP, NP-Completeness

CS 241 Analysis of Algorithms

NP-Completeness. Andreas Klappenecker. [based on slides by Prof. Welch]

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

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

6 Euler Circuits and Hamiltonian Cycles

Design and Analysis of Algorithms

Complexity Theory: The P vs NP question

COP 4531 Complexity & Analysis of Data Structures & Algorithms

CS 583: Algorithms. NP Completeness Ch 34. Intractability

A Simple Proof of P versus NP

The Complexity Classes P and NP. Andreas Klappenecker [partially based on slides by Professor Welch]

CS 320, Fall Dr. Geri Georg, Instructor 320 NP 1

ECS122A Handout on NP-Completeness March 12, 2018

On the Computational Hardness of Graph Coloring

Easy Problems vs. Hard Problems. CSE 421 Introduction to Algorithms Winter Is P a good definition of efficient? The class P

M is a TM with start state s defined over the alphabet {#,(,),0,1,a,q,,}:

NP-Completeness. Subhash Suri. May 15, 2018

Lecture 24: How to become Famous with P and NP

Lecture 27: Theory of Computation. Marvin Zhang 08/08/2016

Edge Elimination for the Hamiltonian Cycle problem

Essential facts about NP-completeness:

NP-problems continued

Problem Complexity Classes

Complexity of conditional colorability of graphs

Data Structures in Java

The Class NP. NP is the problems that can be solved in polynomial time by a nondeterministic machine.

Formal definition of P

P and NP. Inge Li Gørtz. Thank you to Kevin Wayne, Philip Bille and Paul Fischer for inspiration to slides

Polynomial-time Reductions

NP-Completeness. Until now we have been designing algorithms for specific problems

NP-Completeness. NP-Completeness 1

Intro to Contemporary Math

1 Computational Problems

Notes for Lecture Notes 2

Correctness of Dijkstra s algorithm

ABHELSINKI UNIVERSITY OF TECHNOLOGY

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

DESIGN AND ANALYSIS OF ALGORITHMS. Unit 6 Chapter 17 TRACTABLE AND NON-TRACTABLE PROBLEMS

Unit 6 Chapter 17 TRACTABLE AND NON-TRACTABLE PROBLEMS

6-1 Computational Complexity

NP-problems continued

CSC 373: Algorithm Design and Analysis Lecture 15

1 Distributional problems

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

Classes of Problems. CS 461, Lecture 23. NP-Hard. Today s Outline. We can characterize many problems into three classes:

Is It As Easy To Discover As To Verify?

CSI 4105 MIDTERM SOLUTION

COMP/MATH 300 Topics for Spring 2017 June 5, Review and Regular Languages

Chapter 34: NP-Completeness

Matchings in hypergraphs of large minimum degree

Class Note #20. In today s class, the following four concepts were introduced: decision

UC Berkeley CS 170: Efficient Algorithms and Intractable Problems Handout 22 Lecturer: David Wagner April 24, Notes 22 for CS 170

Who Has Heard of This Problem? Courtesy: Jeremy Kun

CSCI3390-Lecture 14: The class NP

CS/COE

Agenda. What is a complexity class? What are the important complexity classes? How do you prove an algorithm is in a certain class

NP Complete Problems. COMP 215 Lecture 20

Geometric Steiner Trees

P and NP. Warm Up: Super Hard Problems. Overview. Problem Classification. Tools for classifying problems according to relative hardness.

Introduction. Pvs.NPExample

The P-vs-NP problem. Andrés E. Caicedo. September 10, 2011

NP-Complete Problems and Approximation Algorithms

CS21 Decidability and Tractability

Equitable and semi-equitable coloring of cubic graphs and its application in batch scheduling

Hamiltonian Cycle. Zero Knowledge Proof

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

M. Smith. 6 September 2016 / GSAC

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

Consecutive ones Block for Symmetric Matrices

NP-Completeness. ch34 Hewett. Problem. Tractable Intractable Non-computable computationally infeasible super poly-time alg. sol. E.g.

Non-Deterministic Time

NP-Complete Problems. More reductions

The maximum edge biclique problem is NP-complete

Graph Theory and Optimization Computational Complexity (in brief)

1 Primals and Duals: Zero Sum Games

Lecture 4: NP and computational intractability

Automata Theory CS Complexity Theory I: Polynomial Time

COMP Analysis of Algorithms & Data Structures

NP-Completeness. NP-Completeness 1

Transcription:

P versus NP Math 40210, Spring 2012 September 16, 2012 Math 40210 (Spring 2012) P versus NP September 16, 2012 1 / 9

Properties of graphs A property of a graph is anything that can be described without referring to specific vertices Examples of properties: being bipartite having an Euler circuit having a Hamilton cycle Examples of non-properties: vertices 1, 2 and 3 form a triangle vertices u and v are in different components Math 40210 (Spring 2012) P versus NP September 16, 2012 2 / 9

The decision problem for a property The decision problem for a particular property is to determine, for any possible input graph G, whether or not G has the property Examples of decision problems: Is G bipartite? Does G have an Euler circuit? Is G Hamiltonian? Math 40210 (Spring 2012) P versus NP September 16, 2012 3 / 9

The class P A property is in class P if there is a quick procedure for answering the decision problem, that works for every possible input graph (here quick formally means that the number of steps that the procedure takes is at most a polynomial in the number of vertices of the graph) Examples of P properties: Being bipartite: pick a vertex to put in X; put its neighbors in Y, put the neighbors of these new vertices in X, etc.; wait until either the process finishes successfully (in which case G is bipartite), or it breaks down (in which case G has an odd cycle and is not bipartite) Having an Euler circuit: look at the vertex degrees; if they are all even, then G has an Euler circuit; if one or more is odd, then it does not P stands for polynomial time Math 40210 (Spring 2012) P versus NP September 16, 2012 4 / 9

The class NP A property is in class NP if, for every graph G for which the answer to the decision problem is YES, it is possible to present a quick proof of this fact (here again, quick formally means that the number of steps that need to be taken to verify that the proof is correct is at most a polynomial in the number of vertices of the graph) Important note: the proof that G has the property has to be short, but there s no limit to the amount of time needed to come up with the proof Another way to say this: a property is in class NP if whenever a graph G has the property, I can quickly convince you that it has the property, as long as I am given as much time as I need to prepare before beginning to convince you NP stands for nondeterministic polynomial time Math 40210 (Spring 2012) P versus NP September 16, 2012 5 / 9

Examples of NP properties Being bipartite: Before talking to you I find a valid bipartition X Y, and I show it to you. Or: while you watch, I run the algorithm that answers the decision problem Having an Euler circuit: Before talking to you I find an Euler circuit, and I show it to you. Or: while you watch, I run the algorithm that answers the decision problem Any P property is also NP: to convince you that G has the property, I run the (quick) algorithm that answers the decision problem Having a Hamilton cycle: Before talking to you, I find a Hamilton cycle in the graph (this may take a very long time); once I have found it, I show it to you, and clearly you can quickly verify that it is indeed a Hamilton cycle Math 40210 (Spring 2012) P versus NP September 16, 2012 6 / 9

The $1,000,000 question P: properties for which the decision problem can be quickly solved NP: properties for which a YES answer to the decision problem can be quickly verified, given enough preparation time We ve seen that P NP. The $1,000,000 question is this: Is P = NP? In other words, is it true that every decision problem for which a YES answer can be quickly verified, can also be quickly solved? A specific example: is there a quick way of deciding whether a given graph has a Hamilton cycle? Math 40210 (Spring 2012) P versus NP September 16, 2012 7 / 9

The class NP-complete A property is in the class NP-complete if a procedure for solving the decision problem for that property can be converted into a procedure for solving the decision problem for any other NP property, without any significant slow down NP-complete properties are in a sense the hardest properties: if you solve the decision problem for any one of them, you ve solved the decision problem for all other NP properties Having a Hamilton cycle is known to be an NP-complete property. So: if you find a quick way to answer the question does G have a Hamilton cycle, you ve shown P = NP if you prove that no such quick way exists, you ve shown P NP Computers and Intractability: A Guide to the Theory of NP-Completeness by Garey and Johnson (1979, W. H. Freeman publisher) 350 pages of NP-complete problems Math 40210 (Spring 2012) P versus NP September 16, 2012 8 / 9

The Millennium Prize Problems In 2000, the Clay Mathematics Institute identified seven important open problems in mathematics, and offered a prize of $ 1,000,000 for a solution to each one; see http://www.claymath.org/millennium/. One of these seven is the P versus NP problem The other six are problems of the form prove X, with the $1,000,000 only being offered for a proof of X, not a counterexample. For P versus NP, the full prize is guaranteed, whichever way the problem is resolved Math 40210 (Spring 2012) P versus NP September 16, 2012 9 / 9