文件名称:8queenc
介绍说明--下载内容来自于网络,使用问题请自行百度
1) 【八皇后问题】设在初始状态下在国际象棋棋盘上没有任何棋子(皇后)。然后顺序在第1行,第2行,…。第8行上布放棋子。在每一行中有8个可选择位置,但在任一时刻,棋盘的合法布局都必须满足3个限制条件,即任何两个棋子不得放在棋盘上的同一行、或者同一列、或者同一斜线上。试编写一个递归算法,求解并输出此问题的所有合法布局。-1) [8 Queen's problems -- in the initial state in the international chess pieces on no pawn (Queen's). Then the order in a line, line 2, .... Line 8-sheets on the pawn. Each line can have eight locations, but in the one moment, the legal chessboard layout must meet three conditions imposed that is not any two pawn on the chessboard of the same line, or the same series, or a slash on the same. Test preparation of a recursive algorithm to solve this problem and the output of all the legitimate distribution.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
8q-graphic.c
8q1.c
8q.c
www.dssz.com.txt
8q1.c
8q.c
www.dssz.com.txt
1999-2046 搜珍网 All Rights Reserved.
本站作为网络服务提供者,仅为网络服务对象提供信息存储空间,仅对用户上载内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。
