liveBook · Manning

Near-optimal solution

A near-optimal solution is a feasible solution whose objective value is close to the best possible value without necessarily being optimal.

How 2 Manning books explain it

Classic Computer Science Problems in Swift: Essential techniques for practicing programmers

A near-optimal solution is a feasible solution whose objective value is close to the best possible value without necessarily being optimal.

How it is used
Frames approximation as a practical response to factorial search in large traveling-salesman problems.
How deep it goes
Defines bounded closeness and names techniques, but stops short of explaining their approximation procedures or guarantees.
Examples
Uses Vermont city distances, exhaustive tours, and a 318-mile shortest route to motivate approximation.
What you can do after
Evaluate approximation as a practical alternative when exhaustive traveling-salesman search becomes infeasible.

Read how Classic Computer Science Problems in Swift: Essential techniques for practicing programmers explains near-optimal solution →

Advanced Algorithms and Data Structures

A near-optimal solution is a feasible solution whose objective value is close to the best possible value without necessarily being optimal.

How it is used
Uses approximation to trade a small objective gap for reasonable runtime in optimization problems.
How deep it goes
Contrasts exact and approximate results, method suitability, convergence limits, and candidate-cost requirements without deriving algorithm internals.
Examples
Uses travelling-salesman routes, mileage differences, approximation guarantees, and safety-critical surgery simulations.
What you can do after
Evaluate whether heuristic optimization is appropriate when exact optimality is unnecessary and runtime matters.

Read how Advanced Algorithms and Data Structures explains near-optimal solution →

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.