Simple Hill Climbing
Simple Hill Climbing
Simple Hill Climbing
CLIMBING
Hill Climbing Algorithm in Artificial Intelligence
o Hill Climbing is a heuristic search used for mathematical optimization problems in the field of Artificial
Intelligence.
o Hill climbing algorithm is a local search algorithm which continuously moves in the direction of increasing
elevation/value to find the peak of the mountain or best solution to the problem. It terminates when it
reaches a peak value where no neighbor has a higher value.
o A node of hill climbing algorithm has two components which are state and value.
o Greedy approach: Hill-climbing algorithm search moves in the direction which optimizes the cost.
o No backtracking: It does not backtrack the search space, as it does not remember the previous states.
State-space Diagram for Hill Climbing:
The state-space landscape is a graphical representation of the hill-climbing algorithm which is showing a graph
between various states(input) of algorithm and Objective function/Cost(function we intend to maximize/minimize).
1. The X-axis denotes the state space i.e. states or configuration our algorithm may reach.
Global Maximum: Global maximum is the best possible state of state space landscape. It has the highest value of objective
function.
Flat local maximum: It is a flat space in the landscape where all the neighbor states of current states have the same value.