Send
Close Add comments:
(status displays here)
Got it! This site uses cookies. You consent to this by clicking on "Got it!" or by continuing to use this website.nbsp; Note: This appears on each machine/browser from which this site is accessed.
A7: Asmt#7: Prolog constraint satisfaction
You are not logged in. Go to
Login page.
You need to login before you can view more content.(content omitted that requires login)
4. A7: Constraint satisfaction
175: Asmt#7: Prolog constraint satisfaction , Name: ___________________________
CS 340, Fall 2019, York College of Pennsylvania
178, 40 points, 2019-11-15 (due by midnight)
5. Group work
For this assignment, some group work is allowed as follows.
A maximum of 3 students in a group.
Everyone in the group must submit the full requirement. So if the group does not provide you with the work requirements, you will not be able to submit them and will not get credit for them.
Groups are not to work do another group's problem but can discuss how to do a specific constraint.
6. Problem to solve
Each group will receive a copy of a constraint satisfaction puzzle.
That puzzle is to be solved using the techniques covered in class and using Prolog as the constraint satisfaction software.
There is no document required for this assignment.
7. Program comments
Comments at the top should explain the puzzle being solved but need not repeat the content of other comments in the program.
Comments should be interspersed above each domain group and each constrain group explaining what is being done or what constraint is being specified.
8. Result comment
Include a multi-line comment at the end of the program indicating the output you got when the program was run.
Note: You need to run the program, then copy-paste the output to the program before submission.
9. Unique results
Note: Depending on your puzzle, you may discover that there is more than one answer to the puzzle.
This is seldom the case but is always a possibility.
10. Multi-line comments
In Prolog, a multi-line comment starts with a "
/*" and ends with a "
*/" as in the following.
% This is a single line comment
/*
This is a
multi-line
comment.
*/
11. Comment guidelines
The begin comment "/*" and end comment "*/" should be on separate lines and not combined with other text.
The single line comment starts with a "%" and continues until the end of the line. Such comments should be on a line by themselves and not combined with other parts of a Prolog program.
12. Prolog code
Create a Prolog program using TuProlog to solve the constraint satisfaction puzzle.
The
prints predicate should appear at the top and be used for printing as in the examples in the notes.
Your program should include the following line at the bottom.
:- solve(go).
13. Required file attachment
Attach the Prolog file, extension
pro, (and only one Prolog file) to your email message.
Submit by sending an email to
rsnyder9@ycp.edu from your YCP email address/account that has the above file as an attachment.
The subject line should be the following (and only the following).
201
14. Scoring rubric
CS 340 - A7 : Asmt#7: Prolog constraint satisfaction
Your grade: _ / 40
[LATE] Late or redo penalty: _ / -40
puzzle rules as comments: _ / 8
Prolog rules enforcing comments: _ / 8
puzzle solution output: _ / 8
puzzle solved: _ / 8
Prolog style - facts, rules, queries: _ / 8
[CREDIT] Extra credit: _ / +8
Comments:
15. End of page