problem
problem
GBFS expands the node that appears to be closest to the goal, based only on the heuristic function
(h(n)). It does not consider the cost from the start node.
o A (h=2)
o B (h=3)
o D (h=5)
o C (h=10)
o B (h=3)
Characteristics of GBFS
• Closed list: {}
2. Expand S:
• Neighbors:
3. Expand A:
• Neighbors:
4. Expand B:
• Neighbors:
5. Expand D:
• Neighbors:
Final A* Path:
• Closed list: {}
2. Expand S:
• Neighbors:
o A: g(A) = 0 + 3 = 3
o B: g(B) = 0 + 3 = 3
3. Expand A:
• Neighbors:
o D: g(D) = 3 + 3 = 6
• Neighbors:
o E: g(E) = 3 + 8 = 11
5. Expand D:
• Neighbors:
o C: g(C) = 4 + 4 = 8
o G: g(G) = 4 + 12 = 16
6. Expand C:
• Neighbors:
• Choose E.
7. Expand E:
• Neighbors: