Advertisement
Guest User

Untitled

a guest
Dec 8th, 2016
70
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.65 KB | None | 0 0
  1. STRIPS(stateListstart, stateListgoals)
  2. 1.Set state = start
  3. 2.Set plan = []
  4. 3.Set stack = goals
  5. 4.while stack is not empty do
  6. 1.STRIPS-Step()
  7. 5.Return plan
  8.  
  9. STRIPS-Step()
  10. switch top of stack t:
  11. 1.case this a goal that matches state:
  12. 1.pop stack
  13. 2.case this an unsatisfied conjunctive-goal:
  14. 1.select an ordering for the sub-goals
  15. 2.push the sub-goals into stack
  16. 3.case this a simple unsatisfied goal
  17. 1.choose an operator op whose add-list matches t
  18. 2.replace the twith op
  19. 3.push preconditions of op to stack
  20. 4.case this an operator
  21. 1.pop stack
  22. 2.state = state + t.add-list -t.delete-list
  23. 3.plan = [plan | t]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement