Hill Climbing is a local search optimization algorithm that iteratively moves from a current candidate solution to a neighboring state with a higher value (or lower cost), analogous to ascending a hill to find a peak. It is a greedy, single-state algorithm that makes decisions based only on immediate, local improvements, making it computationally efficient but susceptible to becoming trapped at local optima—points superior to their immediate neighbors but not the global best solution. This characteristic makes it a core, though often basic, component in the heuristic search toolkit for agentic cognitive architectures where rapid, approximate solutions are needed.
