liveBook · Manning

NP-hard problem

As explained in Optimization Algorithms: AI techniques for design, planning, and control problems

The class of problems at least as hard as the hardest problems in NP, whether or not they are decision problems in NP.

An NP-hard problem is at least as hard as the hardest problems in NP-complete, whether or not it is itself a decision problem. Exact efficient algorithms are generally difficult to find, so practical solutions often use approximation or heuristic solvers. section 2.1.1

The surrounding complexity classes clarify what NP-hard means:

  • P contains decision problems solvable in polynomial time by deterministic algorithms. section 2.1.1
  • NP problems may be difficult to solve but have solutions that can be verified in polynomial time. section 2.1.1
  • NP-complete problems are both NP-hard and verifiable in polynomial time. section 2.1.1

Route selection and clustering

A traveling-salesman route through 13 cities requires selecting the best path according to distance, time, or another criterion. Similar combinatorial growth appears when grouping objects into clusters or organizing smart-cart collection points. section 2.1.1

Problem classes based on hardness and completeness. Problems can be categorized into NP-hard, NP-complete, NP, or P.

Use the problem-class diagram to compare P, NP, NP-complete, and NP-hard categories. section 2.1.1

How Optimization Algorithms: AI techniques for design, planning, and control problems covers it

How deep it goes
Defines NP-hardness, distinguishes neighboring complexity classes, and stops short of presenting formal reductions or proofs.
Examples
Uses traveling-salesman routing, object clustering, smart-cart collection, permutations, combinations, and Stirling numbers.
What you can do after
Evaluate whether an optimization task calls for exact, approximate, or heuristic solving.
How it connects
Connects NP-hardness with P, NP, NP-complete, approximation, heuristic solvers, combinatorial problems, clustering, and the traveling-salesman problem.

Also explained in

Compare how 2 books explain NP-hard problem →

Related concepts

This explainer was generated by Manning's knowledge graph from the text of Optimization Algorithms: AI techniques for design, planning, and control problems. The section links point to the parts of the book it draws on.