Chapter 6: P vs NP

Introduction: the Travelling Salesman Problem
18:35

Problem

Given a list of cities and the distances between each pair of cities, what is the shortest possible route that visits each city exactly once and returns to the origin city?

Remark

No polynomial algorithm exists to solve this problem. If someone could find one, it would solve one of the most important open problems in Computer Science. The consequences would be huge.

Loading

P vs NP
18:35

Definition (P)

All the problems (excluding Knapsack) that we've seen so far are in .

Definition (NP)

Here comes the millon dollar question:

Question

Does P equal NP?

Millenium Prize Problems
18:35

NP-hard
18:35

Definition (Reduction)

A problem reduces to () if there is a polytime algorithm converting inputs to equivalent inputs.

Definition (NP-hard)

A problem is NP-hard if every NP problem reduces to

Definition (NP-complete)

A problem is NP-complete if it's NP and NP-hard.

Classification
18:35

3SAT
18:35

Problem

Given a boolean formula such as

can you find values of for which the expression is true.

Theorem

The 3SAT problem is NP-hard.

Super Mario Brothers
18:35

Problem (Super Mario Brothers)

Given a Super Mario Brothers level, is it solvable?

Theorem (Demaine et al)

The Super Mario Brothers problem is NP-hard.

Independent set
18:35

An independent set of an undirected graph is a subset with no edges between the vertices of

Problem (Independent set problem)

Given an undirected graph, is there an independent set of size ?

Proposition

The IS problem is NP-hard.