Overview
Hill Climbing is a simple local search method that accepts improving moves until no neighbor improves the current solution.
Improves a solution by repeatedly moving to a better neighboring solution.
Compact metadata for implementation and discovery.
Hill Climbing is a simple local search method that accepts improving moves until no neighbor improves the current solution.
Quick facts
Runtime and memory behavior at a glance.
Best
O(1) per neighbor
Average
Problem dependent
Worst
Problem dependent
Space
O(1) plus candidate storage
accept neighbor if score(neighbor) > score(current)Keeps only moves that improve the objective in the chosen direction.
Show a point climbing uphill on a landscape until it reaches a local peak.
Random restarts are often used because plain hill climbing can get stuck.
What each reference supports for this entry.
Reference text for search, local search, beam search, and constraint-satisfaction backtracking.
Open sourceGood next jumps from the relationship graph, ranked for useful discovery.
Hill climbing is a simpler local search without temperature-based escape moves.
Both move through neighboring solutions using local search.