搜索资源列表
QUEEN.rar
- N皇后游戏。
shangchuan.rar
- n皇后算法,多边形裁减,正方体旋转,三角形的绘制与填充,画虚的直线和曲线
N-queens-problem
- 利用c语言实现的高效N皇后问题,并输出计算时间。-Use c language to achieve efficient N queens problem, and outputs the computation time
N--java-
- 利用递归机制,可以很容易的求解n皇后问题。针对八皇后,总共有92种解。下面将给出N-皇后问题的一般求解代码,在这里代码是使用java编码的。-Recursive mechanism that can easily solve the n-queens problem. For eight queens, a total of 92 kinds of solutions. The following will give a general N-queens problem solving code
N-Queen-
- 算法的问题,解决N皇后在棋盘上互不攻击,并且使用了回溯的方法解答此问题-the solution to slove the N Queen
N-QWEENS
- 经典的N皇后问题,运用递归方法求解,具有一定参考价值-Classic N queens problem, using a recursive method for solving a certain reference value
n
- n皇后问题源代码,对N皇后的问题进行了详细的代码-n queen
n-Queen
- 在n*n格的棋盘上放置彼此不受攻击的n皇后。按照国际想起的规则,皇后可以攻击与之处在同一行或同一列或同一斜线上的棋子。n后问题等价于在n*n格的棋盘上放置n个皇后,任何2个皇后不放在同一行或同一列或同一斜线了。-Place each n is not an attack on the queen n* n chessboard grid. Think of in accordance with international rules, the Queen can attack at a pawn
N-huanghou
- N皇后回溯算法 课上使用小例子 仅供参考 -N Queens backtracking algorithm using a small example of the class
N-QUEEN
- 在一个N×N的国际象棋棋盘中摆N个皇后,使这N个皇后不能互相被对方吃掉。N皇后算法源码-N × N in a chess board in N months before Queen s, so that the N-Queen s was the other side can not eat each other. N Queen s algorithm source code
n-queen
- n皇后问题的最简单解法,弄够帮助到大家。-n queens problem the easiest solution, get enough help to you.
N-queens-problem
- 八皇后问题是一个古老而著名的问题,是回溯算法的经典问题。该问题是十九世纪著名的数学家高斯在1850年提出的:在8*8的国际象棋棋盘上,安放8个皇后,要求没有一个皇后能够“吃掉”任何其它一个皇后,即任意两个皇后不能处于同一行,同一列或者同一条对角线上,求解有多少种摆法。 高斯认为有76种方案。1854年在柏林的象棋杂志上不同的作者发表了40种不同的解,后来有人用图论的方法得到结论,有92中摆法。 本实验拓展了N皇后问题,即皇后个数由用户输入。 -Eight queens problem
N-Queue_DFS
- BFS法求解N皇后问题,输出全部解决方案。-BFS method for solving N queens problem and output all solutions.
N-queens-problem
- N皇后问题,可以输入N的值,并输出每一种N的情况和步骤。-N queens problem, you can enter the value of N, and N outputs each situation and steps.
N-Queens
- 优化的N皇后算法,输入皇后的个数N,输出三个解,算法的时间复杂度为O(nlgn)-Optimized N queens algorithm, enter the number of the Queen N, output three solutions, the time complexity of the algorithm is O (nlgn)
N-Queens
- 使用回溯法求N皇后问题,是又经典的8皇后问题延伸而来-Seeking N Queens backtracking law, it is another classic 8-queens problem extends from
N-QUEEN
- 在一个N×N的国际象棋棋盘中摆N个皇后,使这N个皇后不能互相被对方吃掉。N皇后算法源码-N × N in a chess board in N months before Queen s, so that the N-Queen s was the other side can not eat each other. N Queen s algorithm source code
N-queens-algorithm
- n皇后问题的BFS算法,算法简洁,作为初学者一看就懂,不过先看会BFS算法很重要,这比普通的动态规划速度要快很多-N queens problem BFS algorithm, the algorithm is simple, as a beginner to understand, but first look at the BFS algorithm is very important, which is much faster than the general dynamic planni
Desktop
- 实现N皇后问题,采用了回溯法。分为三个模块(to solve the queue problem)
N huanghou
- 国际象棋中皇后可以在横、竖、斜线上不限步数地吃掉其他棋子。如何将N个皇后放在一个国际象棋的棋盘上(有8 * 8个方格),使它们谁也不能被吃掉!这就是著名的八皇后问题。我们现在扩展一下,对于某个满足要求的N皇后的摆放方法,定义一个皇后序列与之对应,即{(x1,y1),(x2,y2)…(xN,yN)},其中(xi∈[1,N],yi∈[1,N],N∈[4,16]),其中(xi,yi)为相应摆法中第i个皇后所处的坐标(行数和列数)。那么需要针对这个序列进行检测,检测序列给定的皇后们是否存在可以相互吃掉的