P versus NP. Math 40210, Spring April 8, Math (Spring 2012) P versus NP April 8, / 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 September 16, Math (Spring 2012) P versus NP September 16, / 9

NP and NP Completeness

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

CMSC 441: Algorithms. NP Completeness

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

1. Introduction Recap

1 Computational Problems

Notes for Lecture Notes 2

SAT, NP, NP-Completeness

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

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

Introduction to Computational Complexity

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

Spring Lecture 21 NP-Complete Problems

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

Correctness of Dijkstra s algorithm

NP-Complete problems

Complexity Theory: The P vs NP question

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

CSI 4105 MIDTERM SOLUTION

CS 241 Analysis of Algorithms

Lecture 18: P & NP. Revised, May 1, CLRS, pp

Essential facts about NP-completeness:

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

Data Structures and Algorithms (CSCI 340)

1 Primals and Duals: Zero Sum Games

1.1 P, NP, and NP-complete

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

NP-problems continued

Problem Complexity Classes

ABHELSINKI UNIVERSITY OF TECHNOLOGY

Formal definition of P

COP 4531 Complexity & Analysis of Data Structures & Algorithms

CSE 135: Introduction to Theory of Computation NP-completeness

NP and Computational Intractability

Polynomial-time Reductions

CS154, Lecture 13: P vs NP

Polynomial-time reductions. We have seen several reductions:

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

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

On the Computational Hardness of Graph Coloring

Design and Analysis of Algorithms

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

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

NP-problems continued

CSCI3390-Lecture 14: The class NP

6 Euler Circuits and Hamiltonian Cycles

6-1 Computational Complexity

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

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

NP-Complete Problems and Approximation Algorithms

Tractability. Some problems are intractable: as they grow large, we are unable to solve them in reasonable time What constitutes reasonable time?

Data Structures in Java

In complexity theory, algorithms and problems are classified by the growth order of computation time as a function of instance size.

VIII. NP-completeness

Theory of Computer Science

Limitations of Algorithm Power

Searching (within) Data. Programming and Problem Solving Searching (within) Data, Advanced Complexity Theory. Searching (within) Data.

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

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

Unit 6 Chapter 17 TRACTABLE AND NON-TRACTABLE PROBLEMS

Intro to Theory of Computation

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

Introduction to Complexity Theory

CS154, Lecture 13: P vs NP

CSC 373: Algorithm Design and Analysis Lecture 15

ECS122A Handout on NP-Completeness March 12, 2018

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

M. Smith. 6 September 2016 / GSAC

3 Probabilistic Turing Machines

Summer School on Introduction to Algorithms and Optimization Techniques July 4-12, 2017 Organized by ACMU, ISI and IEEE CEDA.

Intro to Theory of Computation

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

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

/633 Introduction to Algorithms Lecturer: Michael Dinitz Topic: NP-Completeness I Date: 11/13/18

Section 9.2 Multiplication Properties of Radicals In Exercises 27-46, place each of the 27.

Today s Outline. CS 362, Lecture 23. Classes of Problems. NP-Hard. Review NP-Hardness and three more reductions. Jared Saia University of New Mexico

CSC 1700 Analysis of Algorithms: P and NP Problems

TAYLOR POLYNOMIALS DARYL DEFORD

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

NP Completeness and Approximation Algorithms

Geometric Steiner Trees

CS 583: Algorithms. NP Completeness Ch 34. Intractability

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

Chapter 2 : Time complexity

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

A Tale of Two Cultures: Phase Transitions in Physics and Computer Science. Cristopher Moore University of New Mexico and the Santa Fe Institute

Exercises NP-completeness

Complexity and NP-completeness

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

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

Intro to Contemporary Math

Introduction to Computational Complexity

Lecture 19: NP-Completeness 1

Some unsolved problems in mathematics and computation

P, NP, NP-Complete, and NPhard

P, NP, NP-Complete. Ruth Anderson

Nondeterministic Turing Machines

Transcription:

P versus NP Math 40210, Spring 2014 April 8, 2014 Math 40210 (Spring 2012) P versus NP April 8, 2014 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 connected having a closed Eulerian trail having a Hamiltonian 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 April 8, 2014 2 / 9

The decision problem for a property The decision problem for a particular property is to answer, for any possible input graph G, the YES/NO question Does G have the property? Examples of decision problems: Is G connected? Does G have a closed Eulerian trail? Does G have a Hamiltonian cycle? Math 40210 (Spring 2012) P versus NP April 8, 2014 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: Having a closed Eulerian trail: look at the vertex degrees; if they are all even, then G has a closed Eulerian trail; if one or more is odd, then it does not Being connected: exercise! (this will be on an upcoming homework) P stands for polynomial time Math 40210 (Spring 2012) P versus NP April 8, 2014 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 April 8, 2014 5 / 9

Examples of NP properties Being connected: Before talking to you I find, for each pair of distinct vertices u and v, a path from u to v, and I show them all to you. Or: while you watch, I run the algorithm that answers the decision problem Having a closed Eulerian trail: Before talking to you I find a closed Eulerian trail, 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 Hamiltonian cycle: Before talking to you, I find a Hamiltonian 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 Hamiltonian cycle Math 40210 (Spring 2012) P versus NP April 8, 2014 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 Hamiltonian cycle? Math 40210 (Spring 2012) P versus NP April 8, 2014 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 Hamiltonian cycle is known to be an NP-complete property. So: if you find a quick way to answer the question does G have a Hamiltonian cycle, you ve shown P = NP if you prove that no such quick way exists, you ve shown P NP Math 40210 (Spring 2012) P versus NP April 8, 2014 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 April 8, 2014 9 / 9