搜索资源列表
14230829
- 解决如何用vc实现八皇后问题,但不能实现n皇后的问题。-address how to achieve eight vc Queen's, but can not be achieved n Queen's problem.
nQueen
- n皇后算法的实现-n Queen's algorithm implementation
bahuanghouwtdejavashixian
- n皇后问题算法。 * 把棋盘看成一个坐标系,以左下角为原点(0,0)。坐标系的每个点为一个Point类。 * 每个皇后为一个皇后对象Queen。 * 判断一个点的坐标是否在,一个皇后控制的范围的函数为Queen.isUnderControl(point)。 -n Queen's Algorithm. * Chessboard as a coordinate system to lower left-hand corner of the origin (0,0). T
09104038
- 解决N后问题,能够实现在一个N*N的棋盘上放置N个皇后,然后使其满足条件
QueenLV
- 这个代码是利用拉斯维加斯算法解决n皇后得问题-this code is the use of the Las Vegas algorithm to solve the problem in the Queen's n
Javasource
- 数据结构与算法分析设计的实验作业,归并排序、二分查找法、N皇后的算法源代码
huanghouwenti
- 在国际象棋盘上放八个皇后,互相不能攻击,有多少种摆法? 这个是经典的8皇后问题,解决此问题的方法是回溯法。 回溯法是一种思路简单而且有效的解决问题的基础算法。 解决一个问题的时候分成n个步骤,每向后进展一个步骤,就检查一下当前的状态,如果发生了冲突,就放弃,如果到达了目标状态就记录下答案,回溯,求解下一个解。 对于8皇后问题,每个步骤就是在棋盘上放一个棋子,每放一个棋子,就检查当前的状态,有否产生攻击,如果没有攻击,就继续放下一个,如果攻击了,就回溯,如果放够八
Algorithm
- c++经典小程序。包括河内塔 费式数列 巴斯卡三角形 三色棋 老鼠走迷官(一) 老鼠走迷官(二) 骑士走棋盘 八个皇后 八枚银币 生命游戏 字串核对 双色、三色河内塔 背包问题(Knapsack Problem) 数、运算 蒙地卡罗法求 PI Eratosthenes筛选求质数 超长整数运算(大数运算) 长 PI 最大公因数、最小公倍数、因式分解 完美数 阿姆斯壮数 最大
N2
- n皇后问题(c++编写)-n Queen (c preparation)
N皇后问题的回溯法,非递归实现
- 这是N皇后问题的回溯法,非递归实现.此算法对初学者有难度,最好去参考书.这个问题也是回溯法的经典例题,推荐自己去实践.还有,我贴的程序在TC3.0下调试通过.-This the Queen's retroactive law, non - recursive. This algorithm is difficult for beginners, to the best reference books. This issue is also back classic example of
并行N皇后问题
- 利用OPENMP的方法解决N皇后问题!
n后问题
- n皇后问题
jump_omp.c.tar
- 基于C的OPENMP并行计算的N皇后问题-C-based parallel computing OPENMP the N-Queen problem
mpiqueen
- 基于MPI的N皇后问题,且剔除镜像解和旋转解-Of MPI-based N-queens problem and the solution removed the mirror solution and the rotation
1098Nqueens
- C语言算法设计 经典问题 N皇后问题 回溯算法-C language algorithm designed N queens problem backtracking algorithm
The-queen
- 实现N个皇后问题,输出所有的排列情况,利用TXT实现输入输出-Realization of N-queens problem, the output of all of the arrangement, the use of input and output TXT achieve
suanfa
- 算法设计课程全部代码,包括0-1背包问题,回溯方法解n皇后问题,最大字段和,归并排序等算法,并全部包含人机交互过程-Algorithm design courses all the code, including the 0-1 knapsack problem, backtracking method to solve n-queens problem, the maximum field and, merge sort algorithms, and all include human-co
Nhuanghou
- N皇后问题,输入N就可以展示出每一种情况以及情况总数-N queens problem, enter N can demonstrate in each case as well as the total number of cases
N皇后
- 八皇后问题,是一个古老而著名的问题,是回溯算法的典型案例。该问题是国际西洋棋棋手马克斯·贝瑟尔于1848年提出:在8×8格的国际象棋上摆放八个皇后,使其不能互相攻击,即任意两个皇后都不能处于同一行、同一列或同一斜线上,问有多少种摆法。(The eight queen problem, an old and famous problem, is a typical case of backtracking algorithms. It is put forward the internationa