0
6.0kviews
Explain Hill-climbing algorithm with an example
1 Answer
written 8.0 years ago by |
A* is an algorithm that:
– Uses heuristic to guide search
– While ensuring that it will compute a path with minimum cost
f(n) = g(n) + h(n)
– g(n) = “cost from the starting node to reach n”
– h(n) = “estimate of the cost of the cheapest path from n to the goal node”