![]() | ![]() |
| Figure 1. An example puzzle, with the clues shown in blue. This example has especially pleasing symmetry. | Figure 2. The completed puzzle. The other digits have been inserted so that each row, column, and major 3-by-3 block contains the digits 1 through 9. |
![]() | ![]() |
| Figure 3. Shidoku is Sudoku on a 4-by-4 grid. | Figure 4. The candidates. The red candidates are the singletons. |
| ![]() |
| Figure 5. Inserting the singleton “3” and recomputing the candidates. | Figure 6. Insert the remaining singletons to complete the puzzle. |
|
| Figure 7. shidoku(diag(1:4)) |
, and try the candidates in numerical order. So we insert a “3” in cell (2,1), creating a new puzzle (Figure 9). We then call the program recursively. ![]() | ![]() |
| Figure 8. The candidates. There are no singletons. | Figure 9. Tentatively insert a “3” to create a new puzzle. Then backtrack. |
![]() |
| Figure 10. The resulting solution. This solution is not unique; its transpose is another solution. |
cc_fig11_wl.gif (79.2 KB, 下载次数: 51)
cc_fig12_wl.gif (78.1 KB, 下载次数: 38)
| 欢迎光临 数学建模社区-数学中国 (http://www.madio.net/) | Powered by Discuz! X2.5 |