搜索资源列表
n-Queen
- 算法设计:著名的n后问题:在nXn的棋盘上放彼此不受攻击的n个皇后,按国际象棋的规则,任何2个皇后不在同一行或同一列或同一斜线上. 本算法才用回朔法来解决.-algorithm design : n after the famous question : In nXn put on the chessboard of each other against attack n empress, according to the international rules of chess, any
N阶螺旋幻方程序
- 用visual c++编缉的一个N阶螺旋幻方程序,实现幻方功能。-with visual c editing of a spiral bands N magic square procedures, functions magic square.
N!
- 将1到N的N个自然数排成一列,共有1*2*3……*N种不同的排列方法,如N=3时,有6种排列方案,分别为123,132,213,231,312,321.试编程序输出1到N的全部排列,假设N<10. 为了设计出由计算机输出1到N的全部排列程序,就必须寻找不同排列之间的规律.通过观察N=5(参见本例的运行结果)的排列情况,可以发现,如果把每个排列看作一个自然数, 则所有排列对应的数是按从小到大的顺序排列
N-Queens
- 此N皇后问题更具通用性,虽然在N=16时运行时间过长,但是还是有意义的。
回溯法N皇后问题
- 这是计算机算法中的回溯法中的一个经典的问题--N皇后问题!希望对学计算机算法的同学有用!-This is a computer algorithm, the retroactive law on the issue of a classic -- N Queen! Want to learn how to use computer algorithms useful to the students!
求取2的n次幂
- 求取2的n次幂,常用于FFT变换中
AN EXPERIMENTAL TABU SEARCH CODE FOR THE N-QUEENS PROBLEM
- * TSQUEEN.C : <n> number of queens * * <tabu_size> size of the tabu list * * <max_iter> maximum number of iterations * *
求任意n个数的平均值的程序
- 这是本人写的求任意n个数的平均值的程序,编程环境是Viasual C++ 6.0,可以直接运行,This is, I write for arbitrary n the average number of procedures, programming environment is Viasual C++ 6.0, can be directly run
nqueens(localSearch)
- n皇后问题,采用局部搜索算法,普通搜索效率,内含代码。-n queens problem, using a local search algorithm, general search efficiency, containing the code.
n-queens-mm
- c实现n皇后m棋盘, c实现n皇后m棋盘, -c realization of n
Nqueen
- N皇后问题的回溯算法,非常简单,容易看懂-N Queen s problem back algorithm, is very simple, easy to understand
sched
- 一台精密仪器的工作时间为n 个时间单位。与仪器工作时间同步进行若干仪器维修程序。一旦启动维修程序,仪器必须进入维修程序。如果只有一个维修程序启动,则必须进入该维修程序。如果在同一时刻有多个维修程序,可任选进入其中的一个维修程序。维修程序必须从头开始,不能从中间插入。一个维修程序从第s个时间单位开始,持续t个时间单位,则该维修程序在第s+t-1 个时间单位结束。为了提高仪器使用率,希望安排尽可能少的维修时间。对于给定的维修程序时间表,该算法计算最优时间表。-Units 1 precision in
N-queen_linear_time
- N-皇后问题线性时间算法 O(n)复杂度,非O(n^2)的,使用的是构造法。-N-Queen problem of linear time algorithm
nqueenproblem
- This program finds the locations of placing n queens in a n*n chessboard so that none attack any other
n
- 这是n皇后回溯法,可能有点不是很优的,大家拿去多改进-nqueque
n-queen
- n皇后问题,迷宫问题,递归实现皇后寻找迷宫出路,经典算法之一-n queen problem, the maze problem, the recursive realization of the maze to find a way out of Queen' s, one of the classic algorithm
queen
- N皇后问题 输入N 可以得到问题的解-N QUEEN
NQueenProblem
- n皇后问题,关于如何计算n皇后问题,里面的代码容易看懂,核心的是在针对试探-回溯算法所用的数据结构的设计上。 程序采用了递归,也就是借用了编译系统提供的自动回溯功能。-N Queen Problem
Fastn-Queens
- 快速 n—皇后 问题解决算法,是本人见过的代码中最快的,利用位操作-Fast n-Queens problem-solving algorithm
n皇后问题
- n皇后问题 课程设计上的一个小作业 水平有限(n-queen problem A small assignment in the curriculum design is limited)
