100 likes | 204 Views
The Maze. Representing a graph as a tree. 6D. Medium State Space. 6C. 6E. 6B. 5B. 5E. 4B. 5C. 4E. 4C. Goal. 4D. 6D. Medium Tree Non meaningful Branches pruned. 6C. 6E. 6B. 6D. 6D. 5E. 5B. 6C. 6E. 4E. 4B. 6B. 5C. 4C. 5B. 5B. Goal. 4D. 4B. Medium Depth-First
E N D
6D Medium State Space 6C 6E 6B 5B 5E 4B 5C 4E 4C Goal 4D
6D Medium Tree Non meaningful Branches pruned 6C 6E 6B 6D 6D 5E 5B 6C 6E 4E 4B 6B 5C 4C 5B 5B Goal 4D 4B
Medium Depth-First Using 2 operators F & R Note 2*R = B & 3*R = L Cost = 7 backtrack cost = 16 ==================== Using 2 operators F & L Note 2*L = B & 3*L = R Cost = 10 backtrack cost = 15 ==================== Using 2 operators F, R,& L Note 2*L = B Cost = 5 backtrack cost = 14 ==================== Using 2 operators F, R, L, & B Cost = 5 backtrack cost = 11 F 6D L R R & L 6C B 6E F F & L 6B B F & R B L R & L R 5E 5B R & L B F R F & R B B F 4B 5C F, R & L B 4E L R & L F R & L 4C F, R & L B Goal F 4D B