Question
Part4 Task2. Blocks World with ASP We have a different shaped block (e.g., triangular block which one cannot place or stack other block on it).
Part4 Task2. Blocks World with ASP
We have a different shaped block (e.g., triangular block which one cannot place or stack other block on it).
Add this constraint to your program, and modify it to achieve the following goal from the initial situation to the goal situation.
Note that you need to update the ASP code to have three table locations of the table: table1, table2, table3, and table4.
(1) Find the first answer and copy your ASP answer here. List only initially, finally, and occurs for your solution (hide and show options).
Note 1. There are three locations on Table: table1, table2, and table3.
Note 2. A triangular block which can be placed over a square block or table but no block cannot be placed on it. That is, you need to provide the shape of each block whether it is square or triangular.
Note 3. Use "hide " to hide it from the answer set. For example, to hide not_goal(),
hide not_goal(T).
List only initially, finally, and occurs (for your solution use hide and show options).
Part4 Task2 Solution ASP Source code
copy and paste your ASP course code here |
Part4 Task2 Run Log (First Answer Set)
copy and paste your ASP program run (for first answer set) here. |
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started