文件名称:5_queen
- 所属分类:
- 数据结构常用算法
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 10kb
- 下载次数:
- 0次
- 提 供 者:
- 卡***
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
设在初始状态下在国际象棋棋盘上没有任何棋子(皇后)。然后顺序在第1行,第2行,…。第8行上布放棋子。在每一行中有8个可选择位置,但在任一时刻,棋盘的合法布局都必须满足3个限制条件,即任何两个棋子不得放在棋盘上的同一行、或者同一列、或者同一斜线上。试用递归与非递归的方法编写算法,求解并输出此问题的所有合法布局-In the initial state in the international chess board does not have any pieces (Queen' s). And then the order in line 1, line 2, .... Article 8 pieces laying line. Each line in the choice of eight locations, but at any one time, the legitimate board layout would have to meet the three conditions, that is, any two pieces on the chessboard may not be the same line, or the same column, or the same diagonal on. Try recursive method and the preparation of non-recursive algorithm to solve this problem and the output of all the legitimate distribution. .
(系统自动生成,下载前可以参看下载内容)
下载文件列表
5_八皇
......\bahuang.txt
......\chess.cpp
......\chess.dsp
......\chess.dsw
......\chess.ncb
......\chess.opt
......\chess.plg
......\Debug
......\silu.txt
......\黄昆.txt
......\bahuang.txt
......\chess.cpp
......\chess.dsp
......\chess.dsw
......\chess.ncb
......\chess.opt
......\chess.plg
......\Debug
......\silu.txt
......\黄昆.txt