0
6.0kviews
Explain Hill-climbing algorithm with an example
1 Answer
0
60views
  • Difficulty: we want to still be able to generate the path with minimum cost
  • A* is an algorithm that:

    – Uses heuristic to guide search

    – While ensuring that it will compute a path with minimum cost

  • A* computes the function

enter image description here

  • 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”

  • Example: minimize f(n) = g(n) + h(n)

enter image description here

Please log in to add an answer.