question 1
How many squares does the method check on a 4 by 4 board?
the answer, and why
the answer is A
a1 leads nowhere, so the method goes back four times before b1, d2, a3 and c4 fill the board. Section 5 counts all 26.
if you chose another
- That is every square once. After going back, the method checks some squares again.
- That is one square a row. Rows meet attacked squares first, as row 2 does under a1 with a2 and b2, and going back checks some again.
- That is , 4 times 3 times 2 times 1, the boards with one queen a row and a column.