Question: 6. The bplan predicate presented in figure 9.8 can run forever, looking for longer and longer plans, if it happens that there is no way
6. The bplan predicate presented in figure 9.8 can run forever, looking for longer and longer plans, if it happens that there is no way to achieve the goal. Modify the predicate so that it takes an extra argument n and will eventually stop with failure if there is no plan of length n or less.
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
