Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

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.

image text in transcribed

(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.

tablel table2 table3 ble4 table table2 table3 Table Table tablel table2 table3 ble4 table table2 table3 Table Table

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_2

Step: 3

blur-text-image_3

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

Database Design Using Entity Relationship Diagrams

Authors: Sikha Saha Bagui, Richard Walsh Earp

3rd Edition

103201718X, 978-1032017181

More Books

Students also viewed these Databases questions