Question
Part 4. Answer Set Programming (1) Place the solutions of Task1, Task2, Task3 here in this document and upload to elearning. (2) Also attach (in
Part 4. Answer Set Programming
(1) Place the solutions of Task1, Task2, Task3 here in this document and upload to elearning.
(2) Also attach (in your upload/submission) a zip file (containing all the programs and runs).
Blocks World with Answer Set Programming
Part 4. Task1. Blocks World ASP
The example code has the following initial situation and goal situation to be achieved with three blocks.
Note that you need to update the ASP code to have three table locations of the table: table1, table2, and table3.
Run ASP with the sample code provided to get the sequence of actions to reach the goal situation from the initial situation. Submit the actions to achieve the goal (copy and paste here).
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.
Note 3. Use "hide " to hide it from the answer set. For example, to hide not_goal(),
hide not_goal(T).
Note 4. You may need to increase the time limit if it takes longer than what it is set currently.
List only initially, finally, and occurs (for your solution use hide and show options).
Part4 Task1 Solution ASP Source code
copy and paste your ASP course code here ` |
Part4 Task1 Run Log (Run for First Answer Set)
copy and paste your ASP program run (answer sets) 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