Recursively Solving Sudoku using MATLAB

by raulbehl
File type not supported

I have used the traditional Brute Force method to get to the right solution of the Sudoku puzzle. The program consists of two functions i.e. check_sudoku and run_sudoku to solve the puzzle. The first function checks whether the given Sudoku puzzle has a solution or not (it basically checks that none of the digits in rows, columns and 3×3 square matrix are repeated) and the other one looks for a blank and start filling it with numbers from 1 to 9 checking the puzzle every time a number is filled. This is done recursively till there are no blank spaces left.

image of username raulbehl Flag of India Bangalore, India

About Me

I am currently working as a Design and Verification engineer. My skills set include: i) Matlab/LabView/Logisim ii) Engineering Mathematics iii) Assembly (ARM, MIPS, PLP, x86, MARIE and pep/8) / Computer Architecture iv) Verilog/System Verilog/UVM v) Raspberry Pi/Arduino/TMS320C5535 eZdsp/TM4C123 vi) PSpice vii) C/C++, Qt, Python viii) Perl Happy to help! :-)

$25 USD/hr

149 reviews
6.5

Tags