Question
A Sudoku of rank n is an n 2 n 2 square grid, subdivided into n 2 blocks, each of these blocks has the size
A Sudoku of rank n is an n2 n2 square grid, subdivided into n2 blocks, each of these blocks has the size of (n n). The problem is that given distinct integer numbers 1, 2, 3, ..., n2 , fill the grid in with these numbers such that every integer should appear only once in each raw, in each column, and in each block. The Sudoku problem is known to be an NP-complete.
a) Suppose that you are given an instance (n2n2 ) grid filled in with distinct integer numbers 1, 2, 3, ..., n2 . What is the formula that can be applied to check if the desired conditions are met by the given instance?
b) Design an algorithm to check if the given grid is a solution for the Sudoku problem.
c) Analyze your algorithm in (b).
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