Answered step by step
Verified Expert Solution
Question
1 Approved Answer
It is Imperative a Class is used. You need to implement a computer program in C++ to solve the well-known Sudoku problem. The Sudoku grid
It is Imperative a Class is used.
You need to implement a computer program in C++ to solve the well-known Sudoku problem. The Sudoku grid will be a 9 times 9 grid consisting of nine rows, nine columns, and nine 3 times 3 smaller grids as shown in Figure 1(a). In the nine 3 times 3 smaller grids are separated by darker horizontal and vertical lines. The first 3 times 3 smaller grid is in rows 1 to 3 and columns 1 to 3, the second 3 times 3 smaller grid is in rows 1 to 3 and columns 4 to 6, and so on. The objective is to fill the entire grid with numbers from 1 to 9 such that each number appears exactly once in each row, each column, and each 3 times 3smaller grid. For example, the solution to the Sudoku problem in Figure 1(a) is shown in c(c). Use the class Sudoku (that was discussed in the class session) to implement the Sudoku problem in ADT. Write the of al methods. White a program to test your implementation. You will need to submit a report that includes the following sections: Discussion of the used data structures. Discussion of the used algorithm. Testing results with screenshots. Screenshots of the results for the three problems set shown on page 2. Discussion of the performance of the algorithm based on the results. Discussion of weaknesses of the used algorithm and any possible enhancements. A sample input and output of the program will be as shown below (an empty grid is represented by 0)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