N-Queens
Place n queens on an n by n board so none attack each other. Why one queen per row and three small sets let the search drop a bad board the moment it appears.
Spotted a mistake in this lesson?Report an issue →
Place n queens on an n by n board so none attack each other. Why one queen per row and three small sets let the search drop a bad board the moment it appears.