Question: Constraint Satisfaction Problems 1 ( 5 points ) You are a customer and would like to exchange your $ 5 0 bill into smaller bills
Constraint Satisfaction Problems points
You are a customer and would like to exchange your $ bill into smaller bills of $$$
and $ denoted by the variables ONE, TWO, FIVE, and TEN, respectively. For the
exchange, you would like strictly more than two bills of $ Further, you want the number of
$ bills to be different from the number of $ bills. The number of $ bills is exactly four,
and the number of $ bills is less than three. The domain for each variable is
a What are the unary constraints? point
b What are the binary constraints? point
c What are the ary constraints? point
d Draw a hypergraph of the constraint satisfaction problem. Indicate variable nodes
with circles and constraint nodes with squared nodes. points
nd image
Program. Use Code Listing as a basis and complete the lines below ADD
DOMAINS and ADD CONSTRAINTS. First, define the domain for the variables
using the 'ins' operator. Then add the constraints using the operators # # #
# # # to define the inequalities and equalities. Write each constraint on a
separate line, ending in a comma except for the last constraint which ends in a
dot Finally, provide the solution of the CSP problem by running the query after
change labelingff in the box on the bottom right, and clicking "Run!".
Write the missing code and the solution for the variables below. points
DOMAINS
CONSTRAINT
CONSTRAINT
CONSTRAINT
CONSTRAINT
CONSTRAINT
Solution: ONE
TWO
FIVE
TEN
Code Listing : Money Exchange Problem
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
