Programming > STUDY GUIDE > CSE 579 Module 5 Graded Assignment Template for clingo Work | Download for quality grades | (All)

CSE 579 Module 5 Graded Assignment Template for clingo Work | Download for quality grades |

Document Content and Description Below

Problem 1 Input Program Hint: you only need one program with a new term, whose value will be assigned to 3 or 4 in the command line. %%%%%%%%%%%%%%%%%%% % File: scenarioprob1.txt %%%%%%%%%%%%%%... %%%%% block(1..6). % initial state :- not on(1,2,0; 2,table,0; 3,4,0; 4,table,0; 5,6,0; 6,table,0). % goal :- not on(3,2,m; 2,1,m; 1,table,m; 6,5,m; 5,4,m; 4,table,m). %Table Size constraint :- not {on(BB,table,T)} tableSize, T=0..m-1. (Only the scenario file has been modified to add the constraint for the number of blocks allowed on table. blocks.lp has been left unmodified and used as it is in problem1.txt) Comma nd Lines You should write multiple command lines below. clingo problem1.txt scenarioprob1.txt -c tableSize=3 -c grippers=2 -c m=4 0 clingo problem1.txt scenarioprob1.txt -c tableSize=3 -c grippers=2 -c m=5 0 clingo problem1.txt scenarioprob1.txt -c tableSize=4 -c grippers=2 -c m=3 0 clingo problem1.txt scenarioprob1.txt -c tableSize=4 -c grippers=2 -c m=4 0 Outputs of clingo You should write multiple outputs, one for each command. These outputs serve as the evidences of your answer to the following question. Hint 1: Let n be the maximal number of blocks that can be placed directly on the table. There should be 2 command lines and outputs for n=3, where  the 1st command line and output show k steps are not enough and  the 2nd command line and output show k+1 steps are enough. Similarly, there should be another 2 command lines and outputs for n=4. Hint 2: We do not give any limitation on the number of grippers. tableSize=3, m=4, grippers=2 [Show More]

Last updated: 1 year ago

Preview 1 out of 8 pages

Add to cart

Instant download

Reviews( 0 )

$6.00

Add to cart

Instant download

Can't find what you want? Try our AI powered Search

OR

REQUEST DOCUMENT
55
0

Document information


Connected school, study & course


About the document


Uploaded On

Mar 18, 2023

Number of pages

8

Written in

Seller


seller-icon
Wanjiku

Member since 1 year

0 Documents Sold


Additional information

This document has been written for:

Uploaded

Mar 18, 2023

Downloads

 0

Views

 55

Document Keyword Tags

Recommended For You

Get more on STUDY GUIDE »
What is Browsegrades

In Browsegrades, a student can earn by offering help to other student. Students can help other students with materials by upploading their notes and earn money.

We are here to help

We're available through e-mail, Twitter, Facebook, and live chat.
 FAQ
 Questions? Leave a message!

Follow us on
 Twitter

Copyright © Browsegrades · High quality services·