Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

In the sudoku problem, a partially filled 9 9 grid is to be completed with numbers in the range [1,2, meeting the following constraints:1 ,

image text in transcribed

image text in transcribed

In the sudoku problem, a partially filled 9 9 grid is to be completed with numbers in the range [1,2, meeting the following constraints:1 , 9, while each row should have exactly one occurrence of each number e each column should have exactly one occurrence of each number A particular instance of the sudoku problem, i.e. a specific, partially completed grid, shall be called a sudoku puzzle, or a sudoku. For example, this sudoku puzzle | 1171 614| I 11618 3141 1716I |15 II | 1812|5I | 151317819 accepts, among many others, the following solution 15 614191112171813 811172 39 61415 16131514121718191 17191618 41 3 5 |2 | 1314181 11915121716| 41713 5 6928 | 129 561841317 191812161713151114 215137814|169 This exercise does not ask you to solve the sudoku above, since the solution is given! Instead you are to restate the sudoku problem as an exact cover problem: 1. (10 pts Describe the structure of the matrix of Os and 1s that is suitable for solving any sudoku puzzle: what esent in the rows? Do do you represent in the columns? How many of them do you need? What do you repr all sudoku puzzles ask for the same number of rows? Why? Be specific and precise in your wording; draw a diagram if it adds clarity to your answer In the sudoku problem, a partially filled 9 9 grid is to be completed with numbers in the range [1,2, meeting the following constraints:1 , 9, while each row should have exactly one occurrence of each number e each column should have exactly one occurrence of each number A particular instance of the sudoku problem, i.e. a specific, partially completed grid, shall be called a sudoku puzzle, or a sudoku. For example, this sudoku puzzle | 1171 614| I 11618 3141 1716I |15 II | 1812|5I | 151317819 accepts, among many others, the following solution 15 614191112171813 811172 39 61415 16131514121718191 17191618 41 3 5 |2 | 1314181 11915121716| 41713 5 6928 | 129 561841317 191812161713151114 215137814|169 This exercise does not ask you to solve the sudoku above, since the solution is given! Instead you are to restate the sudoku problem as an exact cover problem: 1. (10 pts Describe the structure of the matrix of Os and 1s that is suitable for solving any sudoku puzzle: what esent in the rows? Do do you represent in the columns? How many of them do you need? What do you repr all sudoku puzzles ask for the same number of rows? Why? Be specific and precise in your wording; draw a diagram if it adds clarity to your

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

Recommended Textbook for

The Accidental Data Scientist

Authors: Amy Affelt

1st Edition

1573877077, 9781573877077

More Books

Students also viewed these Databases questions