Click here to Skip to main content
15,888,011 members
Articles / Programming Languages / Python

Recursion and Backtracking

Rate me:
Please Sign up or sign in to vote.
5.00/5 (2 votes)
18 Mar 2020CPOL3 min read 14.2K   5  
Using Python recursion and backtracking for resolving Sudoku
Recursion is a powerful tool, but combined with backtracking, it's even better. I have written this article to force myself to understand this subject better, and be able to use this in a more efficient way. This is a Python sample in how awesome recursion is.

Views

Daily Counts

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
Denmark Denmark
I’m a passionate coder.
I like to challenge myself to use technology that I’m unfamiliar with, and teach my self how to use it, by following peoples experience, and tutorials, or just by poking around, doing a lot of trial and error.
I think there is two ways to learn something to an extent where you can honestly say that you know something about a subject.
One is to use it in a real live project. I done a lot of those in my time.
Another is to teach others. You cannot teach a subject unless you feel confident in the subject.
The last reason is why I started writing articles. If a subject is studied for teaching, you cannot skip the parts you don’t understand in the first runover.
Each article I write is to educate myself. If others benefit from this, that is be great as well.
I have 20 years of coding experience in a number of different languages, and I’m learning something new everyday.

Comments and Discussions