Question: 4 . 5 The AND - OR - GRAPH - SEARCH algorithm in Figure 4 . 1 1 checks for repeated states only on the
The ANDORGRAPHSEARCH algorithm in Figure checks for repeated states only on the path from the root to the current state. Suppose that, in addition, the algorithm were to store every visited state and check against that list. See BREADTHFIRSTSEARCH in Figure for an example. Determine the information that should be stored and how the algorithm should use that information when a repeated state is found. Hint: You will need to distinguish at least between states for which a successful subplan was constructed previously and states for which no subplan could be found. Explain how to use labels, as defined in Section to avoid having multiple copies of subplans.
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
