It is an iterative algorithm that starts with an arbitrary solution to a problem and attempts to find a better solution by changing a single element of the solution incrementally. If the change produces a better solution, an incremental change is taken as a new solution. This process is repeated until there are no further improvements.
function Hill-Climbing (problem), returns a state that is a local maximum.
inputs: problem, a problem
local variables: current, a node
neighbor, a node
do neighbor ← a highest_valued successor of current
if Value[neighbor] ≤ Value[current] then
current ← neighbor
Disadvantage: This algorithm is neither complete, nor optimal.
- 12 Hacks to Help You Prepare for Futuristic UI / UX Designs - November 26, 2020
- Things to learn about bootstrapping by Eric J Dalius - November 20, 2020
- How Important is Software Developers’ Creativity for Companies - November 13, 2020