
Solve Sudoku Puzzles Using Python and Recursive Programming!
One of the most important concepts in algorithmic learning and data processing in python code is recursion and writing programs that utilize backtracking to process all possible answers!
Code available here: https://github.com/plemaster01/sudokuRecursion
This video shows start to finish how to take a matrix of the values given at the start of a sudoku, and process that data through two functions checking every space for validity against every possible number!
In the sub function 'valid' we check every row, column and 3x3 grid of blocks against the numbers 1-9 to see whether or not a certain number works in that space, and then in the 'iterate' function utilizes recursion by checking each space only until a valid number is found then goes to the next space and until it finds a space where no valid solution can be found then it begins backtracking until no additional solution is possible.
If you have any questions on what you saw in this video or want to see something specific in the future just let me know about it in the comments below!
Be sure to like and subscribe and check out the rest of the channel for over a hundred more great tutorials!
Thanks for watching and Good luck with your code!
