搜索资源列表
nqueenproblem
- 图形后n后问题,逐个显示皇后的位置,并得到所有途径。-graphics N Queen problem
queenbranch
- 皇后问题的回溯算法实现。利用递归回溯算法框架实现N皇后安排算法。-Queens backtracking algorithm. Algorithm framework using recursive backtracking algorithm to achieve N Queen arrangements.
eight-queens
- 八皇后问题,是一个古老而著名的问题,是回溯算法的典型例题。该问题是十九世纪著名的数学家高斯1850年提出:在8X8格的国际象棋上摆放八个皇后,使其不能互相攻击,即任意两个皇后都不能处于同一行、同一列或同一斜线上,问有多少种摆法。 高斯认为有76种方案。1854年在柏林的象棋杂志上不同的作者发表了40种不同的解,后来有人用图论的方法解出92种结果。计算机发明后,有多种方法可以解决此问题。 可以通过更改程序中define 的n 的值将其改为任意个数的皇后问题 -Eight queens pr
n
- 解决放置n个皇后的问题,相互之间不能攻击-Solve the problem of placing n queens, can not attack each other
Ai
- 包括人工智能n皇后遗传法、回溯法、爬山法;罗马尼亚度假问题宽度优先、深度优先、贪婪算法、A*算法的实习报告。-N queen genetic methods, including artificial intelligence, backtracking, hill-climbing Romania vacation problem breadth-first, depth-first, greedy algorithm, A* algorithm internship report.
nQueen
- 实现解决N皇后的问题,由用户指定N,程序给出所有摆法的情况及摆法数目-Achieve a solution N-Queens problem, the user-specified N, the program gives all the pendulum method the number of conditions and the pendulum method
queue
- 皇后问题,N*N的棋盘中在每行放入一枚皇后,保证皇后之间不能再直线和对角线上。-Queens problem, N* N board in each line into a Queen, to ensure the Queen s between can no longer straight and diagonal.
Queen
- 回溯算法解决皇后问题 回溯算法解决皇后问题-the solution of n queen
NQueen
- N皇后的经典问题解决方案.用一维数组解决.-The classic N-Queens problem solution to solve one-dimensional array
Nqueen
- 这是处理“皇后问题”问题的代码,所谓的皇后问题就是一个棋盘可以放多少个皇后棋子却不会冲突。-N queen
nqueen
- 在n×n格的棋盘上放置彼此不受攻击的n个皇后。按照国际象棋的规则,皇后可以攻 击与之处在同一行或同一列或同一斜线上的棋子。n后问题等价于在n×n格的棋盘上放置n 个皇后,任何2 个皇后不放在同一行或同一列或同一斜线上。 解n后问题的一个拉斯维加斯算法如下。-this is a project
8_queen
- 8皇后问题的解决算法,VC++实现,输入N皇后,输出算法迭代次数-8 queens problem solution algorithm, the VC++ to achieve N Queen, the output of algorithm iterations
queue
- 八皇后问题,可以推广到N皇后,在学校的实验课上做的,用回溯法-The eight queens problem can be generalized to the N-Queens in the experimental class of the school, with backtracking
Lecture5_Queens
- 可以解决N皇后的问题 输入矩阵大小就可以打印各个大小的八皇后问题结果-N-Queens problem can be solved to enter the matrix size can print various size eight queens problem results
Nqueen
- 回溯法算法解决8皇后问题,可推广到N皇后-Backtracking algorithm to solve N queen problem
exam6-5
- 采用递归算法求解皇后问题:在n*n的方格棋盘上,放置n个皇后,要求每个皇后不同行,不同列,不同左右对角线。-Using recursive algorithm queens problem: Place n queens on n* n checkerboard, each Queen different rows, different columns, different left and right diagonal.
Nqueens
- 求解N皇后的问题,希望提出宝贵的意见,共同进步-Solving the N-Queens problem, I hope for their valuable comments
N_Queen
- 关于C语言典型例题八皇后问题的实现,用到了栈的知识,将代码稍微改动可以变成N皇后的解。-Achieve on C language s typical example-eight queens problem, use the knowledge of the stack, a slight modification of the code can be turned into a solution of the N-Queens.
queen
- 输出8皇后问题所有结果。每个结果第一行是No n:的形式,n表示输出的是第几个结果;下面8行,每行8个字符,‘A’表示皇后,‘.’表示空格。不同的结果中,先输出第一个皇后位置靠前的结果;第一个皇后位置相同,先输出第二个皇后位置靠前的结果;依次类推。 -Output all the results of the 8-queens problem. The first line of each result in the form of a No n: n output is several r
Nhuanghou
- 这是一个经典8皇后问题的拓展,将其推广到N皇后,病输出所有结果。-This is a classic 8 queens problem expansion will be extended to the N-Queens disease output results.