liveBook · Manning

Np-complete problem

An NP-complete problem is a decision problem in NP to which every problem in NP can be reduced in polynomial time.

How 2 Manning books explain it

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

The class of decision problems that are in NP and are at least as hard as every problem in NP.

How it is used
Classifies decision problems by whether solutions are efficiently solvable, verifiable, or computationally hard.
How deep it goes
Defines NP-completeness through NP-hardness and polynomial-time verification, without developing formal proofs or exact algorithms.
Examples
Uses a 13-city traveling-salesperson route and combinatorial clustering as practical illustrations of large search spaces.
What you can do after
Evaluate whether exact search is practical and consider approximation or heuristic solvers for difficult optimization problems.

Read how Optimization Algorithms: AI techniques for design, planning, and control problems explains np-complete problem →

Advanced Algorithms and Data Structures

A decision problem that belongs to NP and is at least as hard as every problem in NP under polynomial-time reductions.

How it is used
Frames explosive search as a signal to seek constraints, dynamic programming, or a reformulated problem.
How deep it goes
Defines verification and search difficulty, then applies them to knapsack without proving reductions or complexity-class theory.
Examples
Uses launch-cargo packing with 62 items, 1,000-kilogram capacity, exhaustive subsets, dynamic programming, and fractional greedy packing.
What you can do after
Evaluate/understand when exhaustive search is infeasible and select dynamic programming or greedy reformulation for knapsack variants.

Read how Advanced Algorithms and Data Structures explains np-complete problem →

Related concepts

These guides are generated from the text of Manning books by Manning's knowledge graph and link to the sections they draw on. The full books are available on liveBook and at manning.com.