DSA Microproject Report
DSA Microproject Report
3.0 Rationale:
Backtracking algorithm is used for developed a sudoku solver.
Backtracking algorithm: backtracking is a technique to solve problems where multiple choices
are there and we don’t know the correct choice and hence we solve problem with trial and error
i.e. trying each option until the problem is not solve. We basically check that the same number is
not present in current row, current column and current 3*3 sub grid. After checking for safety, we
assign the number, and recursively check whether this assignment doesn’t lead to solution, then
we try next for current empty cell. And if none of number (1 to 9) lead to solution, we return
false.