Skip to content

Latest commit

 

History

History
16 lines (14 loc) · 1004 Bytes

Blocks-World.md

File metadata and controls

16 lines (14 loc) · 1004 Bytes

BLOCKS-WORLD

AIMA3e

Init(On(A, Table) ∧ On(B, Table) ∧ On(C, A)
  ∧ Block(A) ∧ Block(B) ∧ Block(C) ∧ Clear(B) ∧ Clear(C))
Goal(On(A, B) ∧ On(B, C))
Action(Move(b, x, y),
 PRECOND: On(b, x) ∧ Clear(b) ∧ Clear(y) ∧ Block(b) ∧ Block(y) ∧
     (bx) ∧ (by) ∧ (xy),
 EFFECT: On(b, y) ∧ Clear(x) ∧ ¬ On(b, x) ∧ ¬ Clear(y))
Action(MoveToTable(b, x),
 PRECOND: On(b, x) ∧ Clear(b) ∧ Block(b) ∧ (bx),
 EFFECT: On(b, Table) ∧ Clear(x) ∧ ¬ On(b, x))


Figure ?? A planning problem in the blocks world: building a three-block tower. One solution is the sequence [MoveToTable(C, A), Move(B, Table, C), Move(A, Table, B)].