文件名称:Nqueen
介绍说明--下载内容来自于网络,使用问题请自行百度
在8*8的国际象棋棋盘上,安放8个皇后,要求没有一个皇后能够“吃掉”任何其它一个皇后,即任意两个皇后不能处于同一行,同一列或者同一条对角线上,求解有多少种摆法。
本实验拓展了N皇后问题,即皇后个数由用户输入(On the chess board of 8*8, 8 queens are placed, requiring that no queen can eat any other queen, that is, any two Queens can not be in the same row, the same column or the same diagonal line, and how many kinds of pendulum are solved.
This experiment extends the N queen problem, that is, the number of the queen is input from the user.)
本实验拓展了N皇后问题,即皇后个数由用户输入(On the chess board of 8*8, 8 queens are placed, requiring that no queen can eat any other queen, that is, any two Queens can not be in the same row, the same column or the same diagonal line, and how many kinds of pendulum are solved.
This experiment extends the N queen problem, that is, the number of the queen is input from the user.)
相关搜索: N皇后
(系统自动生成,下载前可以参看下载内容)
下载文件列表
文件名 | 大小 | 更新时间 |
---|---|---|
新建文件夹 | 0 | 2018-01-06 |
新建文件夹\Nqueen.cpp | 1326 | 2018-01-01 |
新建文件夹\Nqueen.exe | 50688 | 2018-01-01 |
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.