Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Q 2 . ( 2 0 Points, 3 points a to e , 5 points for f ) Futoshiki is a Sudoku - like Japanese
Q Points, points a to e points for
Futoshiki is a Sudokulike Japanese logic puzzle that is very simple, but can be quite challenging. You are given an grid, and must place the numbers dots., 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 Some of the squares have known values.
Let's formulate this puzzle as CSP We will use variables, one for each cell, with as the variable for the cell in the th row and th column. The only unary constraints will be those assigning the known initial values to their respective squares eg
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 ary constraints such as alldiff
b After enforcing unary constraints, consider the binary constraints relating and 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 variables; 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 we find it is necessary that 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 cf
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started