Docsity

Planning Algorithm in Block World: Solving Multiple Goals - Prof. Thad Starner, Assignments of Computer Science

Toggle sidebar
bg1
Consider the block world with the initial state (note that “Clear(Table)” is always true)
On(B,Table) ^ On(C,A) ^ On(A,T able) ^ Clear(B) ^ Clear(C)
And the possible actions:
Move(b,x,y): (Move block b from on top of block x to block y if b and y are clear)
Preconditions: On(b,x) ^ Clear(b) ^ Clear(y)
Effect: On(b,y) ^ Clear(x) ^ ~On(b,x) ^ ~Clear(y)
MoveToTable(b,x): (Move the block b off of x and onto the table)
Preconditions: On(b,x) ^ Clear(b)
Effect: On(b, Table) ^ Clear(x) ^ ~On(b, x)
Consider the two-goal state On(A,B) ^ On(B,C) and a planning algorithm that solves
multiple goals by concatenating the solution for one goal onto the solution for the other.
Demonstrate that this algorithm can solve this planning problem by using it to solve this
problem by hand OR explain why such an algorithm cannot solve the problem and solve
it instead with an appropriate planning algorithm of your choice.

Partial preview of the text

Download Planning Algorithm in Block World: Solving Multiple Goals - Prof. Thad Starner and more Assignments Computer Science in PDF only on Docsity!

Consider the block world with the initial state (note that “Clear(Table)” is always true)

On(B,Table) ^ On(C,A) ^ On(A,T able) ^ Clear(B) ^ Clear(C)

And the possible actions:

Move(b,x,y): (Move block b from on top of block x to block y if b and y are clear) Preconditions: On(b,x) ^ Clear(b) ^ Clear(y) Effect: On(b,y) ^ Clear(x) ^ ~On(b,x) ^ ~Clear(y) MoveToTable(b,x): (Move the block b off of x and onto the table) Preconditions: On(b,x) ^ Clear(b) Effect: On(b, Table) ^ Clear(x) ^ ~On(b, x)

Consider the two-goal state On(A,B) ^ On(B,C) and a planning algorithm that solves multiple goals by concatenating the solution for one goal onto the solution for the other. Demonstrate that this algorithm can solve this planning problem by using it to solve this problem by hand OR explain why such an algorithm cannot solve the problem and solve it instead with an appropriate planning algorithm of your choice.