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?
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.
All the problems (excluding Knapsack) that we've seen so far are in P.
Here comes the millon dollar question:
Does P equal NP?
A problem A reduces to B (A≤B) if there is a polytime algorithm converting A inputs to equivalent B inputs.
A problem X is NP-hard if every NP problem reduces to X
A problem X is NP-complete if it's NP and NP-hard.
Given a boolean formula such as
(x1∨x3∨x6)∧(x2∨x3∨x7)∧…can you find values of x1,…,xk⊂{true,false} for which the expression is true.
The 3SAT problem is NP-hard.
Given a Super Mario Brothers level, is it solvable?
The Super Mario Brothers problem is NP-hard.
An independent set of an undirected graph G=(V,E) is a subset S⊂V with no edges between the vertices of S
Given an undirected graph, is there an independent set of size ≥m?
The IS problem is NP-hard.