Examine problems at least as hard as NP-complete problems, focusing on their role in computational theory and the difficulty of finding exact solutions.
A problem is NP-hard if it is at least as hard as the hardest problems in NP: every problem in NP can be reduced to it in polynomial time. Unlike NP-complete problems, an NP-hard problem does not have to be in NP and may not even be decidable [1].
$\text{NP-complete} = \text{NP-hard} \cap \text{NP}$. Therefore, NP-complete problems are NP-hard problems that have solutions verifiable in polynomial time. NP-hard problems also include optimization problems, whose answer is a value rather than a yes or no, and problems harder than NP (see the line on NP-complete problems) [1][2].
- Traveling salesman problem, optimization version: finding the shortest tour. The version "is there a tour of length at most $L$?" is NP-complete.
- Knapsack, minimum graph coloring, and integer linear programming.
- Halting problem: it is not in NP because it is undecidable, but every problem in NP reduces to it.
In the symmetric traveling salesman problem with $n$ cities, the distinct tours are $(n - 1)!/2$. For $n = 10$ they are $181\,440$; for $n = 20$ they are about $6.08 \cdot 10^{16}$ (calculation). Trying them all quickly becomes impossible, which is why approximations and pruning methods are used.
One chooses a problem already known to be NP-hard (usually NP-complete, like 3-SAT) and constructs a polynomial-time reduction from it to the problem under consideration. If the new problem were solvable in polynomial time, so would be the known problem.
Approximation algorithms (for the metric traveling salesman problem there is a factor $1.5$ with Christofides’ algorithm), heuristics, dynamic programming for small instances, and fixed-parameter algorithms (general observation). For simple strategies like greedy algorithms see the dedicated line.
Logistics, network design, scheduling, portfolio optimization, and computational biology (general observation).
Being NP-hard indicates that a fast algorithm is not expected in the worst case, but it says nothing about typical instances. Proving that a problem has no fast algorithms would require solving $\mathrm{P}$ versus $\mathrm{NP}$.
[1] Wikipedia (it): NP-completo
[2] Wikipedia (en): NP-hardness
Generating summary…