Question
Niklaus Wirth introduced the software engineering concept of stepwise refinement through developing an ALGOL program for this problem. Donald Knuth’s paper on “Algorithm X” uses the dancing links technique to quickly solve various tiling problems as well as this problem, which is a case of a generalized exact cover problem. Dijkstra’s “Notes on Structured Programming” ends by deriving a backtracking algorithm to solve this problem. This problem has solutions for all positive integers n except 2 and 3, and when n is (*) 8, there are 92 solutions including rotations and reflections. The standard algorithm for this problem runs a depth-first search to place the namesake objects one row at a time while avoiding reusing any diagonal. For 10 points, name this problem of placing certain pieces on a chessboard so they don’t attack each other. ■END■
ANSWER: N queens problem [accept 8 queens problem or puzzle]
<AW>
= Average correct buzz position
Conv. % | Power % | Average Buzz |
---|
80% | 20% | 111.25 |
Back to tossups