Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the time complexity of the Hill Climbing Algorithm? [closed]

Specifically, the Steepest-Ascent Hill Climbing, Stochastic Hill Climbing and Simulated Annealing. The generalized time complexity would be fine too. Thanks.

like image 681
Jopet Copiaco Avatar asked Oct 25 '25 00:10

Jopet Copiaco


1 Answers

The methods you list can be interrupted at any time, and return “the best result so far”. Therefore, it only makes sense to talk about the time they take to return the absolute best result (the global maximum).

All the methods you list may fail to reach the global maximum. Therefore, their complexity is O(∞).

Traditional time complexity notions do not make sense for heuristics, only for proper algorithms. Here is a writeup about the difference between the two.

like image 169
Pascal Cuoq Avatar answered Oct 28 '25 03:10

Pascal Cuoq