Steepest-Ascent Hill Climbing Heuristic Search Technique

dpthegrey
2 min readJul 2, 2020

--

Photo by Mike Kotsch on Unsplash

This is a variation of Simple Hill Climbing which considers all the moves from the current state and selects the best one as the next state.

At each current state we select a transition, evaluate the resulting state, and if the resulting state is an improvement we move there, otherwise we try a new transition from where we were.

We repeat this until we reach a goal state, or have no more transitions to try.

The transitions explored can be selected at random, or according to some problem specific heuristics.

Algorithm:

Hill climbing has three well-known drawbacks:

  1. Local Maxima: A local maximum is a state that is better than all its neighbours but is not better than some other states further away.
  2. Plateau: A plateau is a flat area of the search space in which, a whole set of neighbouring states have the same values.
  3. Ridge: Ridge is a special kind of local maximum. It is an area of the search space that is higher than surrounding areas and that itself has slop.

In each of the previous cases (local maxima, plateau & ridge), the algorithm reaches a point at which no progress is being made.

A solution is,

  1. Backtrack to some earlier node and try going in a different direction.
  2. Make a big jump to try to get in a new situation.
  3. Moving in several directions at once.

--

--

dpthegrey

Computer Engineer passionate about DevOps Engineering. AI Researcher. Builder. Creator. Developer. Influencer. Innovator. Learner. Motivator. Writer. Human.