I was trying out the backtracking algorithm with an easy example (sudoku). I first tried another approach where you cancel out more possibilites, but after I got the same er