What is the time complexity of the Hill Climbing Algorithm?

8.4k views Asked by At

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

1

There are 1 answers

1
Pascal Cuoq On BEST ANSWER

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.