|
CSE Home | 326 Home | About Us | Search | Contact Info |
A* Search combines the best features of Breadth-first search (always finds
optimal paths) and Best-First search (visits fewer nodes). A* is like
Best-First search, except that the priority for a node is the sum of the actual
distance from the start to the node and the estimated distance to the
goal:
You will need to keep track of the true distance from the start in each node. Then, when find the neighbors of a node, their distance is the distance of the current node plus one. There are also some other minor but important modifications you need to make to the Best-First algorithm:
|
Computer Science & Engineering University of Washington Box 352350 Seattle, WA 98195-2350 (206) 543-1695 voice, (206) 543-2969 FAX [comments to gyngve] |