Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Q 2 . ( 2 0 Points, 3 points a to e , 5 points for f ) Futoshiki is a Sudoku - like Japanese

Q2.(20 Points, 3 points a to e,5 points for f)
Futoshiki is a Sudoku-like Japanese logic puzzle that is very simple, but can be quite challenging. You are given an nn grid, and must place the numbers 1,dots.,n in the grid such that every row and column has exactly one of each. Additionally, the assignment must satisfy the inequalities placed between some adjacent squares. The inequalities apply only to the two adjacent squares, and do not directly constrain other squares in the row or column.
Below is an instance of this problem, for size n=4. Some of the squares have known values.
Let's formulate this puzzle as CSP. We will use 42 variables, one for each cell, with xij as the variable for the cell in the i th row and j th column. The only unary constraints will be those assigning the known initial values to their respective squares (e.g.x34=3).
a. Complete the formulation of the CSP. Describe the domains of the variables, the two unary constraints, and all binary constraints you think are necessary. You can describe the constraints using concise mathematical notation. Do not use general n-ary constraints (such as alldiff).
b. After enforcing unary constraints, consider the binary constraints relating x14 and x24. Enforce arc consistency on just these constraints and state the resulting domains for the two variables.
c. Suppose we enforced unary constraints and ran arc consistency on this CSP, pruning the domains of all variables as much as possible. After this, what is the maximum possible domain size for any variable? Hint: consider the least constrained variable(s); you should not have to run every step of arc consistency to answer this.
d. Suppose we enforced unary constraints and ran arc consistency on the initial CSP in the figure above. What is the maximum possible domain size for a variable adjacent to an inequality?
e. By inspection of column 2, we find it is necessary that x32=1, despite not having found an assignment to any of the other cells in that column. Would running arc consistency find this requirement? Explain why or why not.
f. Provide a solution to this puzzle by assigning values to the variables.
Answer:
(Need Particular help with c-f)
image text in transcribed

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

Students also viewed these Databases questions