Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.

image text in transcribed

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.

`

tablel table2 table3 Table Table2 Table3 tablel table2 table3 Table Table2 Table3

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Murach's SQL Server 2012 For Developers

Authors: Bryan Syverson, Joel Murach, Mike Murach

1st Edition

1890774693, 9781890774691

More Books

Students also viewed these Databases questions

Question

7. Explain the role of popular culture in stereotyping.

Answered: 1 week ago

Question

What does stickiest refer to in regard to social media

Answered: 1 week ago

Question

What is Change Control and how does it operate?

Answered: 1 week ago

Question

How do Data Requirements relate to Functional Requirements?

Answered: 1 week ago