文件名称:EightQueues
- 所属分类:
- 其他游戏
- 资源属性:
- [Windows] [Visual C] [源码]
- 上传时间:
- 2012-11-26
- 文件大小:
- 59kb
- 下载次数:
- 0次
- 提 供 者:
- duya*****
- 相关连接:
- 无
- 下载说明:
- 别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容均来自于网络,请自行研究使用
八皇后VC图形演
算法思想:回溯法,先在第1行放上一个皇后,然后在第2行合适的位置放上一个皇后,依次类推,如果8行都放满了,说明找到了一个解,如果第好第i行的皇后后,第i+1行找不到合适的位置,这时就回到第i行,把第i行的皇后放到下一个位置,继续尝试下一行。如此反复,知道找到所有的解。注意,这种算法找的解可能有等价的,某些解可由别的解经过旋转棋盘得到。-eight Queen's VC graphics algorithm thinking : A Retrospective, the first one placed on a Queen's OK, Then the two firms placed on the appropriate location of an empress, followed by analogy, if eight Out filled with that found a solution. If good first section of the Queen's trip i, i-a trip to find a suitable location, this time on the trip back to the i, i section of the Queen's trip into a position and will continue to the next line. So many, find all know the solutions. Note that the algorithm to find the solution may be equivalent to the solution may be some other solution is through rotating chessboard.
算法思想:回溯法,先在第1行放上一个皇后,然后在第2行合适的位置放上一个皇后,依次类推,如果8行都放满了,说明找到了一个解,如果第好第i行的皇后后,第i+1行找不到合适的位置,这时就回到第i行,把第i行的皇后放到下一个位置,继续尝试下一行。如此反复,知道找到所有的解。注意,这种算法找的解可能有等价的,某些解可由别的解经过旋转棋盘得到。-eight Queen's VC graphics algorithm thinking : A Retrospective, the first one placed on a Queen's OK, Then the two firms placed on the appropriate location of an empress, followed by analogy, if eight Out filled with that found a solution. If good first section of the Queen's trip i, i-a trip to find a suitable location, this time on the trip back to the i, i section of the Queen's trip into a position and will continue to the next line. So many, find all know the solutions. Note that the algorithm to find the solution may be equivalent to the solution may be some other solution is through rotating chessboard.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
八皇后VC图形演示
................\...........\EightQueen.aps
................\...........\EightQueen.clw
................\...........\EightQueen.cpp
................\...........\EightQueen.dsp
................\...........\EightQueen.dsw
................\...........\EightQueen.h
................\...........\EightQueen.ncb
................\...........\EightQueen.opt
................\...........\EightQueen.plg
................\...........\EightQueen.rc
................\...........\EightQueenDlg.cpp
................\...........\EightQueenDlg.h
................\...........\QueenPanel.cpp
................\...........\QueenPanel.h
................\...........\ReadMe.txt
................\...........\res
................\...........\...\EightQueen.rc2
................\...........\Resource.h
................\...........\StdAfx.cpp
................\...........\StdAfx.h
................\...........\相关说明.txt
................\...........\EightQueen.aps
................\...........\EightQueen.clw
................\...........\EightQueen.cpp
................\...........\EightQueen.dsp
................\...........\EightQueen.dsw
................\...........\EightQueen.h
................\...........\EightQueen.ncb
................\...........\EightQueen.opt
................\...........\EightQueen.plg
................\...........\EightQueen.rc
................\...........\EightQueenDlg.cpp
................\...........\EightQueenDlg.h
................\...........\QueenPanel.cpp
................\...........\QueenPanel.h
................\...........\ReadMe.txt
................\...........\res
................\...........\...\EightQueen.rc2
................\...........\Resource.h
................\...........\StdAfx.cpp
................\...........\StdAfx.h
................\...........\相关说明.txt