Algorithm visualizer
Pick an algorithm, enter your own numbers or use a preset, then step through the run. The pseudocode and the explanation follow each step.
Place one queen per row. When a row has no safe column, undo the last choice and try the next. The search tries every board and keeps the valid ones.
Predict how many solutions there are for n = 3 before running it. Then check the result.
Step 1 of 80
cell being filled cells it depends on
Solve row 0 of a 4 by 4 board.