Is there a condition that guarantees that hill climbing will find the optimal solution?

76 Views Asked by At

I am studying intro to AI with shortest-path algorithms like A* and hill climbing. I learned that A* is guaranteed to find the optimal solution if the heuristic function h(n) has the property : $$h(n) \leq \text{ actual distance n-t}$$ . Is there a (mathematical) condition that tells us when we can trust hill climbing that will the optimal solution ? With some searches I could not find something clear.

1

There are 1 best solutions below

1
On

A quick wiki search (here) says that hill climbing converges to a global optima under convexity, but it's not guaranteed to find global optima under an arbitrary function.

The idea is similar to why gradient descent doesn't necesarilly find global optima, close to a local optimum which is not a saddle point, no displacement will improve the value of the objective function.