Backtracking

San Skulrattanakulchai

May 1, 2020

Topics

Backtracking algorithms

Maze solving

ASCII representation of mazes

Maze solving, continued

A worked example

Maze solving by recursive backtracking

Maze example solution

The n-queens puzzle

n-queens recursive backtracking

n-queens pseudocode