
Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!

Constraint Programming Problems on arc consistency
An order n sudoku problem instance is an n^2 Ć n^2 grid with some of the cells preset with values from 1... n^2. The cells without a preset are said to be empty. A sudoku problem instance has 3n^2 groups of n^2 cells. There is one group for each of the n^2 rows, one for each of the n^2 columns and one for each of the n^2 sub-grids. A solution to a problem instance places a value from 1... n^2 in each empty cell so that each group of cells contains exactly one occurrence of each value in 1... n^2. This question considers four constraint models of the order n sudoku problem. The models all use the same variables and domains, but they have different constraints. In all models there is a distinct variable Xc for each cell c in the grid. The domain of every variable is 1... n^2. Each model contains one constraint for each preset. If cell c is preset to value v then the model has the constraint Xc = v. In the four models the remainder of the constraints are as follows.
Alldiff Model: For each group g there is one constraint: alldif f erent(g).
Disequality Model: For each group for any two distinct cells, c and cā², in the group there is one constraint: Xc 6 = Xā² c.
Member Model: For each group g, for every i in 1... n^2 there is one constraint: member(i, g).
Subset Model: For each group g there is one constraint: subset([1, 2 ,... , n^2 ], g). This con- straint is true of the set { 1 , ..., n^2 } is a subset of the values assigned to g.
For each of the four models, show the result of achieving generalised arc consistency on the model of the following sudoku instance of order two.
4 3 3 4