liveBook · Manning

Hillclimbing

Hill climbing is an iterative local-search technique that moves from a candidate solution to a neighboring solution with a better objective value.

How 2 Manning books explain it

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

A local search algorithm that repeatedly moves from a candidate solution to an improving neighboring solution.

How it is used
Uses heuristic-guided local search for graph paths, puzzle states, and routing problems.
How deep it goes
Defines neighbor-based improvement, gives pseudocode and implementations, then stops short of guaranteed global optimality.
Examples
Demonstrates route finding, an eight-puzzle solver, misplaced-tile costs, randomized routes, and neighborhood-size tuning.
What you can do after
Apply hill climbing by defining states, neighbors, and a cost function, then tuning neighborhood size for routing.

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

Advanced Algorithms and Data Structures

Hill climbing is an iterative local-search technique that moves from a candidate solution to a neighboring solution with an improved objective value.

How it is used
Improves approximate solutions for optimization problems such as graph layouts, routing, schedules, and component designs.
How deep it goes
Defines neighborhood exploration and improvement-based updates, then explains failure on local minima and plateaus.
Examples
Uses vertex movements in graph embeddings and a marble moving across a cost landscape.
What you can do after
Apply it to improve a computable objective when differentiability is unavailable, while recognizing approximate results.

Read how Advanced Algorithms and Data Structures explains hillclimbing →

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.