文件名称:eight
-
所属分类:
- 标签属性:
- 上传时间:2012-11-16
-
文件大小:195.88kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
该问题是 19 世纪著名的数学家高斯 1850 年提出的。八皇后问题要求在一个8 × 8 的 棋盘上放上8个皇后,使得每一个皇后既攻击不到另外 7 个皇后,也不被另外 7 个皇后所攻击。 按照国际象棋的规则, 一个皇后可以攻击与之处在同一行或同一列或同一斜线上的其他任何棋子。 因此, 八皇后问题等于要求 8 个皇后中的任意两个不能被放在同一行或同一列或同一斜线上。 该代码为解决此问题的代码-The problem is that the famous 19th century mathematician Gauss 1850 s. Eight queens problem requires a 8 × 8 chessboard
Put 8 on the Queen, so that each queen attacks both less than seven other queen, nor queen was attacked by the other seven. Press
According to the rules of chess, a queen can attack with them in the same row or column or any other on the same diagonal pieces.
Therefore, the eight queens problem is tantamount to asking eight in any two of the Queen can not be on the same row or same column or the same diagonal.
The code for the code to solve this problem
Put 8 on the Queen, so that each queen attacks both less than seven other queen, nor queen was attacked by the other seven. Press
According to the rules of chess, a queen can attack with them in the same row or column or any other on the same diagonal pieces.
Therefore, the eight queens problem is tantamount to asking eight in any two of the Queen can not be on the same row or same column or the same diagonal.
The code for the code to solve this problem
(系统自动生成,下载前可以参看下载内容)
下载文件列表
八皇后/
八皇后/888.cpp
八皇后/Debug/
八皇后/Debug/888.obj
八皇后/Debug/vc60.idb
八皇后/Debug/vc60.pdb
八皇后/Debug/八皇后.exe
八皇后/Debug/八皇后.ilk
八皇后/Debug/八皇后.pch
八皇后/Debug/八皇后.pdb
八皇后/八皇后.dsp
八皇后/八皇后.dsw
八皇后/八皇后.ncb
八皇后/八皇后.opt
八皇后/八皇后.plg
八皇后/888.cpp
八皇后/Debug/
八皇后/Debug/888.obj
八皇后/Debug/vc60.idb
八皇后/Debug/vc60.pdb
八皇后/Debug/八皇后.exe
八皇后/Debug/八皇后.ilk
八皇后/Debug/八皇后.pch
八皇后/Debug/八皇后.pdb
八皇后/八皇后.dsp
八皇后/八皇后.dsw
八皇后/八皇后.ncb
八皇后/八皇后.opt
八皇后/八皇后.plg
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.