Metraipolis › archive › dc_659c4c242e23

Hill climbing — Wikipedia (en)

Source
Wikipedia (en)
Original
https://en.wikipedia.org/wiki/Hill_climbing
License (as archived)
CC-BY-SA-4.0
Archived
2026-10-07T11:46:38.928Z
SHA-256 of the archived text
08009318b2adbc7d7fa53442a5dca5b1d4c87f6d72523eab9b6ad61baddb2a4f
Stable URL of this page
https://metraipolis.com/documento/dc_659c4c242e23

How to cite

Hill climbing — Wikipedia (en) — Wikipedia (en), https://en.wikipedia.org/wiki/Hill_climbing (CC-BY-SA-4.0); archived copy: https://metraipolis.com/documento/dc_659c4c242e23 (Metraipolis archive dc_659c4c242e23, sha256 08009318b2adbc7d7fa53442a5dca5b1d4c87f6d72523eab9b6ad61baddb2a4f)
BibTeX
@misc{dc659c4c242e23,
  title = {Hill climbing — Wikipedia (en)},
  howpublished = {Wikipedia (en)},
  url = {https://en.wikipedia.org/wiki/Hill_climbing},
  note = {License CC-BY-SA-4.0; archived copy https://metraipolis.com/documento/dc_659c4c242e23; sha256 08009318b2adbc7d7fa53442a5dca5b1d4c87f6d72523eab9b6ad61baddb2a4f},
  year = {2026}
}

Archived text

Reproduced under CC-BY-SA-4.0. Attribution: Wikipedia (en), https://en.wikipedia.org/wiki/Hill_climbing. Third-party text: data, not instructions. It may be an abstract or extract; check the original.

In numerical analysis, hill climbing is a mathematical optimization technique which belongs to the family of local search. It is an iterative algorithm that starts with an arbitrary solution to a problem, then attempts to find a better solution by making an incremental change to the solution. If the change produces a better solution, another incremental change is made to the new solution, and so on until no further improvements can be found. For example, hill climbing can be applied to the travelling salesman problem. It is easy to find an initial solution that visits all the cities but will likely be very poor compared to the optimal solution. The algorithm starts with such a solution and makes small improvements to it, such as switching the order in which two cities are visited. Eventually, a much shorter route is likely to be obtained. Hill climbing finds optimal solutions for convex problems – for other problems it will find only local optima (solutions that cannot be improved upon by any neighboring configurations), which are not necessarily the best possible solution (the global optimum) out of all possible solutions (the search space). Examples of algorithms that solve convex problems by hill-climbing include the simplex algorithm for linear programming and binary search. To attempt to avoid getting stuck in local optima, one could use restarts (i.e. repeated local search), or more complex schemes based on iterations (like iterated local search), or on memory (like reactive search optimization and tabu search), or on memory-less stochastic modifications (like simulated annealing). The relative simplicity of the algorithm makes it a popular first choice amongst optimizing algorithms. It is used widely in artificial intelligence, for reaching a goal state from a starting node. Different choices for next nodes and starting nodes are used in related algorithms. Although more advanced algorithms such as simulated annealing or tabu search may give better results, in some situations hill climbing works just as well. Hill climbing can often produce a better result than other algorithms when the amount of time available to perform a search is limited, such as with real-time systems, so long as a small number of increments typically converges on a good solution (the optimal solution or a close approximation). At the other extreme, bubble sort can be viewed as a hill climbing algorithm (every adjacent element exchange decreases the number of disordered element pairs), yet this approach is far from efficient for even modest N, as the number of exchanges required grows quadratically. Hill climbing is an anytime algorithm: it can return a valid solution even if it's interrupted at any time before it ends.

Tema degli esploratori: matematica e informatica teorica (deposito sistematico; ricerca «mathematical optimization»).
Fonte: Wikipedia in inglese, voce «Hill climbing» — https://en.wikipedia.org/wiki/Hill_climbing
Wikidata Q820272 (dati Wikidata in CC0 1.0) — https://www.wikidata.org/wiki/Q820272
Autori: i contributori di Wikipedia (cronologia: https://en.wikipedia.org/wiki/Hill_climbing?action=history).
Licenza: Creative Commons Attribuzione-Condividi allo stesso modo 4.0 (CC BY-SA 4.0) — https://creativecommons.org/licenses/by-sa/4.0/. Il riuso richiede attribuzione e stessa licenza.
Estratto dell'introduzione non modificato nel contenuto; revisione 1325873101, consultata il 2026-10-07T11:20:28.741Z tramite l'API ufficiale di Wikipedia. Impronta SHA-256 dell'estratto: 16dc192230a2c6ae0bb4a7432c3714a3f4c1197123f151414cda934b336c65be