File size: 1,117 Bytes
45f037d
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
<Analysis> Now the current block configuration is:
- Stack with purple block, green block, from bottom to top
- Stack with red block, yellow block, blue block, from bottom to top
The action "move(blue,table)" is valid. We execute this action.
Now the current block configuration is:
- Stack with purple block, green block, from bottom to top
- Stack with red block, yellow block, from bottom to top
- Stack with blue block
The action "move(green,blue)" is valid. We execute this action.
Now the current block configuration is:
- Stack with purple block
- Stack with red block, yellow block, from bottom to top
- Stack with blue block, green block, from bottom to top
The action "move(yellow,table)" is valid. We execute this action.
Now the current block configuration is:
- Stack with purple block
- Stack with red block
- Stack with blue block, green block, from bottom to top
- Stack with yellow block
The action "move(blue,red)" is invalid and cannot be executed, because the blue block is below the green block and cannot be moved. The action sequence is therefore invalid, so we stop analyzing here.
<Output> No