Description:

  • Order by the sum of cost in path (as in UCS) and the heuristic (as in Greedy Algorithm)
  • Expand the node with the least
    • cost so far + its heuristics
  • A* is complete and optimal, provided that is admissible for tree search and consistent for graph search

Admissible heuristics:

  • Inadmissible heuristic are pessimistic heuristics and break the optimality by trapping good nodes on the Fringe
  • A good heuristic should be where is the true cost
  • However, a admissible heuristic are solutions to related problem
    • where illegal actions are available
    • say the heuristics of going from A to B can be thru a wall

Consistent heuristics:

    • heuristic of a node is less than cost of that node to any of its neighbor and the neighbor’s heuristics
    • think of it as a triangle inequality
      • A*

        ⚠ Switch to EXCALIDRAW VIEW in the MORE OPTIONS menu of this document. ⚠

        G

        n

        S

        c(s n)

        h(n)

        h(s)

        Link to original
  • Ensures that the first time exploring any node, it is guaranteed that that node is reached with the shortest path