文件名称:eight-queens
- 所属分类:
- 数据结构常用算法
- 资源属性:
- [Windows] [Visual.Net] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 235kb
- 下载次数:
- 0次
- 提 供 者:
- k***
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
八皇后问题,是一个古老而著名的问题,是回溯算法的典型例题。该问题是十九世纪著名的数学家高斯1850年提出:在8X8格的国际象棋上摆放八个皇后,使其不能互相攻击,即任意两个皇后都不能处于同一行、同一列或同一斜线上,问有多少种摆法。 高斯认为有76种方案。1854年在柏林的象棋杂志上不同的作者发表了40种不同的解,后来有人用图论的方法解出92种结果。计算机发明后,有多种方法可以解决此问题。
可以通过更改程序中define 的n 的值将其改为任意个数的皇后问题
-Eight queens problem is an ancient and well-known problem is a typical example backtracking algorithm. The problem is that the nineteenth century the famous mathematician Gauss 1850: Under the 8X8 grid placed on the eight chess queens, so that it can not attack each other, that any two of the Queen can not in the same row, same column or the same slash and asked how many kinds of pendulum method. That there are 76 kinds of the Gaussian program. 1854 in Berlin of the chess magazine published in 40 different kinds of solutions, and later was used graph theory methods for solving the 92 kinds of results. After the invention of the computer, there are several ways to solve this problem. Can define the program by changing the value of n changed it to an arbitrary number of queens
可以通过更改程序中define 的n 的值将其改为任意个数的皇后问题
-Eight queens problem is an ancient and well-known problem is a typical example backtracking algorithm. The problem is that the nineteenth century the famous mathematician Gauss 1850: Under the 8X8 grid placed on the eight chess queens, so that it can not attack each other, that any two of the Queen can not in the same row, same column or the same slash and asked how many kinds of pendulum method. That there are 76 kinds of the Gaussian program. 1854 in Berlin of the chess magazine published in 40 different kinds of solutions, and later was used graph theory methods for solving the 92 kinds of results. After the invention of the computer, there are several ways to solve this problem. Can define the program by changing the value of n changed it to an arbitrary number of queens
(系统自动生成,下载前可以参看下载内容)
下载文件列表
八皇后问题\Debug\八皇后问题.ilk
..........\.....\八皇后问题.pdb
..........\八皇后问题\Debug\CL.read.1.tlog
..........\..........\.....\CL.write.1.tlog
..........\..........\.....\link.2248-cvtres.read.1.tlog
..........\..........\.....\link.2248-cvtres.write.1.tlog
..........\..........\.....\link.2248.read.1.tlog
..........\..........\.....\link.2248.write.1.tlog
..........\..........\.....\link.read.1.tlog
..........\..........\.....\link.write.1.tlog
..........\..........\.....\rc.read.1.tlog
..........\..........\.....\rc.write.1.tlog
..........\..........\.....\vc100.pdb
..........\..........\.....\八皇后问题.exe.embed.manifest
..........\..........\.....\八皇后问题.exe.embed.manifest.res
..........\..........\.....\八皇后问题.exe.intermediate.manifest
..........\..........\.....\八皇后问题.lastbuildstate
..........\..........\.....\八皇后问题.log
..........\..........\.....\八皇后问题.obj
..........\..........\.....\八皇后问题.unsuccessfulbuild
..........\..........\.....\八皇后问题.write.1.tlog
..........\..........\.....\八皇后问题_manifest.rc
..........\..........\八皇后问题.cpp
..........\..........\八皇后问题.h
..........\..........\八皇后问题.vcxproj
..........\..........\八皇后问题.vcxproj.filters
..........\..........\八皇后问题.vcxproj.user
..........\八皇后问题.sdf
..........\八皇后问题.sln
..........\八皇后问题.suo
..........\..........\Debug
..........\Debug
..........\八皇后问题
八皇后问题
..........\.....\八皇后问题.pdb
..........\八皇后问题\Debug\CL.read.1.tlog
..........\..........\.....\CL.write.1.tlog
..........\..........\.....\link.2248-cvtres.read.1.tlog
..........\..........\.....\link.2248-cvtres.write.1.tlog
..........\..........\.....\link.2248.read.1.tlog
..........\..........\.....\link.2248.write.1.tlog
..........\..........\.....\link.read.1.tlog
..........\..........\.....\link.write.1.tlog
..........\..........\.....\rc.read.1.tlog
..........\..........\.....\rc.write.1.tlog
..........\..........\.....\vc100.pdb
..........\..........\.....\八皇后问题.exe.embed.manifest
..........\..........\.....\八皇后问题.exe.embed.manifest.res
..........\..........\.....\八皇后问题.exe.intermediate.manifest
..........\..........\.....\八皇后问题.lastbuildstate
..........\..........\.....\八皇后问题.log
..........\..........\.....\八皇后问题.obj
..........\..........\.....\八皇后问题.unsuccessfulbuild
..........\..........\.....\八皇后问题.write.1.tlog
..........\..........\.....\八皇后问题_manifest.rc
..........\..........\八皇后问题.cpp
..........\..........\八皇后问题.h
..........\..........\八皇后问题.vcxproj
..........\..........\八皇后问题.vcxproj.filters
..........\..........\八皇后问题.vcxproj.user
..........\八皇后问题.sdf
..........\八皇后问题.sln
..........\八皇后问题.suo
..........\..........\Debug
..........\Debug
..........\八皇后问题
八皇后问题