Algorithms / Visualization
Sudoku Visualisation
Algorithm Comparison: Backtracking vs MRV

About this project
Graphical Sudoku solver and visualizer built natively in C++ with SFML. Generates puzzles at three difficulty levels and runs a side-by-side timing comparison of Backtracking vs MRV-heuristic solving.
The problem
Sudoku solvers are usually taught as code on a page. It is hard to see why a smarter search beats brute-force backtracking without watching both work.
Approach
A native C++ desktop app built with SFML. It generates puzzles at Easy, Medium and Hard difficulty, lets you enter numbers by hand with conflict warnings, and animates the solver state as it runs. Two algorithms run on the same puzzle: plain backtracking, and backtracking guided by the MRV (minimum remaining values) heuristic, which always fills the cell with the fewest legal options first. A timing loop measures both. CMake FetchContent downloads SFML at build time, and font loading falls back across Windows and Linux paths so the app starts on either.
Results
A cross-platform visualiser that shows, step by step and with timings, how the MRV heuristic prunes the search compared with plain backtracking. It builds the same way on Linux and Windows.
- Category
- Algorithms / Visualization
- Built by
- Jeyadev R
- Source code
- github.com/jeyadev-jd/Sudoku-Visualisation