































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!
































Let’s review quickly how A* works.
Openlist.Clear(); ClosedList.Clear(); currentNode = nil; startNode.g(x) = 0; Openlist.Push(startNode); While currentNode != goalNode currentNode = OpenList.Pop(); for each s in currentNode.Children[] s.g(x) = currentNode.g(x) + c(currentNode, s); OpenList.Push(s); end for each ClosedList.Push(currentNode); End while