Question: 1. Sudoku Validation. The input to this component is a 4x4 matrix representing a completed 4x4 Sudoku. The input is provided in the variable matrix'.

1. Sudoku Validation. The input to this component is a 4x4 matrix representing a completed 4x4 Sudoku. The input is provided in the variable matrix'. The programmer needs to verify the validity of the configuration and store the logical answer in the 'valid' variable. For example, If the board configuration is valid (i.e. satisfies the rules of Sudoku) then logical value of 1 is stored in the valid variable. The rules for a given matrix to be a valid solution are: a. Every row of the matrix must consist of numbers from 1 to 4. (The given input will consist of 4 rows) Every column of the matrix must consist of numbers from 1 to 4. (The given input will consist of 4 columns) Every sub-matrix of size 2x2 must consist of numbers from 1 to 4. (The given input will consist of 4 2x2 sub-matrices). b. c
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
