liveBook · Manning

Np

NP is the complexity class of decision problems whose proposed solutions can be verified in polynomial time by a deterministic algorithm.

How 2 Manning books explain it

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

The complexity class of decision problems whose proposed solutions can be verified in polynomial time.

How it is used
Frames routing and optimization tasks as yes-or-no questions for reasoning about algorithmic complexity.
How deep it goes
Defines polynomial verification and decision reformulation, then situates NP among broader complexity classes.
Examples
Uses TSP route bounds, CVRP delivery planning, and a Greater Toronto Area city-tour illustration.
What you can do after
Evaluate optimization tasks by converting them into polynomial-verification decision questions.

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

How Large Language Models Work

NP is the complexity class associated with problems whose solutions can be verified in polynomial time by a nondeterministic computation.

How it is used
Frames realistic limits on what LLMs and algorithms can compute exactly.
How deep it goes
Explains input-size growth, Big-O notation, and approximate solutions, but does not derive NP formally.
Examples
Uses prime factorization, traveling salesperson routing, and resource-allocation problems to illustrate rapidly growing runtimes.
What you can do after
Evaluate whether exact computation is practical and recognize when approximation may be useful.

Read how How Large Language Models Work explains np →

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.