

Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Information about a programming assignment for the computer organization and systems programming course (cse 30) at the university of california, san diego. Students are required to write a sudoku solver for 'easy' puzzles using mips language. A sample puzzle, output format, and hints for completing the assignment.
Typology: Assignments
1 / 2
This page cannot be seen from the preview
Don't miss anything!


University of California, San Diego Dept. of Computer Science and Engineering CSE 30 – Computer Organization and Systems Programming Programming Assignment #3 – Sudoku Solver Due 2pm Tuesday November 3 Sudoku is a logic-based number-placement puzzle. The objective is to fill a 9×9 grid so that each column, each row, and each of the nine 3×3 boxes (also called blocks or regions) contain the digits from 1 to 9 only one time each. The puzzle setter provides a partially completed grid. Consider the puzzle below and its solution: The initial board is represented in row major order as an 81 byte array as shown below. The entries ‘0’ denote empty spaces. board: .byte 7, 9, 0, 0, 0, 0, 3, 0, 0 .byte 0, 0, 0, 0, 0, 6, 9, 0, 0 .byte 8, 0, 0, 0, 3, 0, 0, 7, 6 .byte 0, 0, 0, 0, 0, 5, 0, 0, 2 .byte 0, 0, 5, 4, 1, 8, 7, 0, 0 .byte 4, 0, 0, 7, 0, 0, 0, 0, 0 .byte 6, 1, 0, 0, 9, 0, 0, 0, 8 .byte 0, 0, 2, 3, 0, 0, 0, 0, 0 .byte 0, 0, 9, 0, 0, 0, 0, 5, 4 Your assignment is to create a solver for “easy” Sudoku puzzles, i.e., ones that you do not have to “guess” then backtrack to solve.
Your program should output the final results as follows: 7, 9, 6, 8, 5, 4, 3, 2, 1 2, 4, 3, 1, 7, 6, 9, 8, 5 8, 5, 1, 2, 3, 9, 4 , 7, 6 1, 3, 7, 9, 6, 5, 8, 4, 2 9, 2, 5, 4, 1, 8, 7, 6, 3 4, 6, 8, 7, 2, 3, 5, 1, 9 6, 1, 4, 5, 9, 7, 2, 3, 8 5, 8, 2, 3, 4, 1, 6, 9, 7 3, 7, 9, 6, 8, 2, 1 , 5, 4 You can find skeleton code for the project at: http://www.cse.ucsd.edu/~kastner/cse30/sudoku.s Hints and General Comments: