# Task 2 Sudoku (10 Marks) Sudoku is a logic-based combinatorial numbe.docx

• No School
• AA 1
• 4

This preview shows page 1 - 3 out of 4 pages.

Subscribe to view the full document.

Task 2: Sudoku (10 Marks) Sudoku is a logic-based combinatorial number-placement puzzle. The objective is to fill a x2 * x2 grid with digits so that each column, each row, and each of the c xx subgrids that compose the grid contain all of the digits from 1 to 22. (For instance, a 9 * 9 grid would contain nine 3 * 3 subgrids.) The puzzle setter provides a partially completed grid, which for a well-posed puzzle has a single solution. 5 3 1 95 100 UN 5 3 4 6 7 8 9 1 2 6 7 2 1 9 53 48 1983 4 2 5 6 7 8 5 9 7 6 1423 4 2 6 8 5 3179 1 71 392 48 5 6 9 6 1 5 3 71284 2 8 7 4 1 9 6 3 5 3 4 528 617 9 79 (a) An exemplary Sudoku puzzle ... (b) ... and its solution Create a Python module called sudoku.py. Within this module implement the following five tasks. You are encouraged to decompose the given tasks into additional functions. You may import deepcopy from copy. You may not import any other libraries or modules. To assist with your implementation of the following tasks, you may use the following function subgrid values. This function takes a nxn

### What students are saying

• As a current student on this bumpy collegiate pathway, I stumbled upon Course Hero, where I can find study resources for nearly all my courses, get online help from tutors 24/7, and even share my old projects, papers, and lecture notes with other students.

Kiran Temple University Fox School of Business ‘17, Course Hero Intern

• I cannot even describe how much Course Hero helped me this summer. It’s truly become something I can always rely on and help me. In the end, I was not only able to survive summer classes, but I was able to thrive thanks to Course Hero.

Dana University of Pennsylvania ‘17, Course Hero Intern

• The ability to access any university’s resources through Course Hero proved invaluable in my case. I was behind on Tulane coursework and actually used UCLA’s materials to help me move forward and get everything together on time.

Jill Tulane University ‘16, Course Hero Intern

Ask Expert Tutors You can ask 0 bonus questions You can ask 0 questions (0 expire soon) You can ask 0 questions (will expire )
Answers in as fast as 15 minutes