Category Archives: MATLAB

The N-Queens problem

I’ve been thinking about depth first backtracking algorithms recently (more on what those are in a moment).  So when I couldn’t sleep on a recent over night train trip I decided to dust off a classic programming problem to pass the time. How many ways can you place 8 queens on a chessboard so that […]