搜索资源列表
magic_1
- 魔方的算法,即每行每列和对角线上的数值和相等,算法值得研究研究-Magic Square algorithm, which means that every line and every out on the diagonal and the same numerical algorithm worth studies
span_forest
- Computes estimates for the number of forests of a graph, input as a 0-1 incidence matrix. Notes: Compile in C++, \"g++ -o span_forest span_forest.c\". The program does not demand that the matrix is symmetric with 0 diagonal, but uses only the upper t
CMatrixClass
- 1.内存管理一律根据实际需要的大小在堆中动态分配内存。 2.边界检查。如果数组下标超越了数组大小界限,会给出警告信息,可以防止非法内存访问以及方便程序的调试。 3.重载了+,-,*,+=,-=,数乘等常见运算符; 4.可以保存数组为二进制数据文件和文本文件两种形式,也可以从二进制数据文件和文本文件读取数据到数组。 5.实现了和矩阵相关的线性代数方程组求解算法。一是高斯选主元消去法二是针对三对角矩阵的追赶法。 6.静态函数Bspline3():3次
SuShu
- 求得一个4*4的方阵,各行各列及主负对角线上的元素均为可逆素数。-achieve a 4 * 4 phalanx, the trip out and the main negative on the diagonal elements are reversible primes.
TCtoqicailianzhu.rar
- 根据数据结构的思想,利用C语言设计游戏七彩连珠。在9X9的棋盘方格内,将五个及五个以上的同颜色的彩球连成直线(横、竖、对角均可),则彩球消失并得分;游戏开始在棋盘内随机出现五个颜色随机的彩球,在玩家每次移动一个球后,随机的出现3个颜色随机的球,至少存在一条可通路径,彩球方可被移动,直到棋盘被球填满,游戏结束。,Data structure in accordance with the idea of game design using C language Lianzhu colorful. 9
Queen
- 利用回溯法和栈来实现八皇后问题:在n×n的国际象棋棋盘上,安放n个皇后,要求没有一个皇后能够“吃掉”任何其他一个皇后,即没有两个或两个以上的皇后占据棋盘上的同一行、同一列或同一对角线-Use of backtracking and stack to achieve the eight queens problem: the n × n chess board, place n queens, a queen is not required to " eat" any other
queen
- 拉斯维加斯(Las Vegas)算法来解皇后控制问题的解题报告和源代码。问题描述:在一个n×n个方格组成的棋盘上的任一方格中放置一个皇后,该皇后可以控制他所在的行,列以及对角线上的所有方格。对于给定的自然数n,在n×n个方格组成的棋盘上最少要放置多少个皇后才能控制棋盘上的所有方格,且放置的皇后互不攻击? 设计一个拉斯维加斯算法, 对于给定的自然数n (1≤n≤100)计算在n×n个方格组成的棋盘上最少要放置多少个皇后才能控制棋盘上的所有方格,且放置的皇后互不攻击。 -Las Vegas
QueensProblem
- 求解皇后问题,在n*n的方格棋盘上,放置n个皇后,要求每个皇后不同列,不同行,不同左右对角线-Queen Solving problems in the square n* n chessboard, n-placed Queen s, Queen s required for each different column, different trip, different about the diagonal
queen
- 在一个8×8国际象棋盘上,有8个皇后,每个皇后占一格;要求皇后间不会出现相互“攻击”的现象,即不能有两个皇后处在同一行、同一列或同一对角线上。问共有多少种不同的方法。-In an 8 × 8 chess set, there' s eight, each accounting for one' s cell request will not be mutual between Queen' s " attack" phenomenon, that shoul
Eight_Queen
- Visual C++解决八皇后问题,在一个8×8国际象棋盘上,有8个皇后,每个皇后占一格;要求皇后间不会出现相互“攻击”的现象,即不能有两个皇后处在同一行、同一列或同一对角线上。问共有多少种不同的方法。-Visual C++ to solve questions Queen' s eight, in a 8 × 8 chess set, there' s eight, each accounting for one' s cell request will not be mu
eightqueen
- 八皇后游戏的说明: 问题的提出:八皇后是个古老而有趣的游戏,是由高斯于1850年首先提出的。 要求在国际象棋的棋盘上放置八个皇后,使其不能相互攻击,即任意两个皇后不能处于 棋盘的同一行、同一列和同一条对角线上。试问有多少种放法? 基本思想是:先把皇后放在(0,0)位置,然后把1号皇后放在(1,j)位置, 使其满足要求。接着放2号皇后,依此类推。遇到某个皇后如把她无论放在该行的任意 位置均不满足要求,则前一个皇后放置不当,须重新放置前一皇后,如8个皇后均按要 求放置
search_word
- 从字母表2中搜索字母表1中的单词,可以按行,列,斜线进行直线搜索-2 from the alphabet of the english alphabet in one word, can be row, column, diagonal linear search
Maze
- 迷宫算法(maze) /* Maze * Starting point is m[0][0], need to find a path go to m[9][9]. 0 means OK, * 1 means cannot go there, boundary is 0 and 9, cannot go beyond boundary. * Each step can be made horizontally or vertically for one more gri
juzhen
- 先输入矩阵的维数,再输入该矩阵,然后通过该算法从大到小输出该矩阵的各行各列和主辅对角线的和-First dimension of input matrix, and then enter the matrix, and then through the smallest of the algorithm output lines of the matrix columns and the main diagonal and Des
5_queen
- 设在初始状态下在国际象棋棋盘上没有任何棋子(皇后)。然后顺序在第1行,第2行,…。第8行上布放棋子。在每一行中有8个可选择位置,但在任一时刻,棋盘的合法布局都必须满足3个限制条件,即任何两个棋子不得放在棋盘上的同一行、或者同一列、或者同一斜线上。试用递归与非递归的方法编写算法,求解并输出此问题的所有合法布局-In the initial state in the international chess board does not have any pieces (Queen' s).
4
- ACM经典算法源码:三对角线追赶法,雅克比迭代-ACM classical algorithm source: to catch up with the three diagonal method, iterative Jacobian
eightqueens
- 回溯法解决八皇后问题,使四个皇后不在同一行,不在同一列,且不在同一对角线上-Backtracking to solve the eight queens problem,Make four Queen s not in the same row, not in the same column, and not in the same diagonal
queen
- n个皇后问题 在 n 行 n 列的国际象棋棋盘上,最多可布n个皇后。若两个皇后位于同一行、同一列、同一对角线上,则称为它们为互相攻击。 n皇后问题是指找到这 n 个皇后的互不攻击的布局。-n-Queens problem in n rows n columns of the chess board, up to n-Queens cloth. If the two Queens in the same row, same column, the same diagonal, then c
diagonal-matrix
- 一个对角矩阵,有如下共享成员,输入、输出、加减乘、转置等函数。结果都是一个用一位数组表示的对角矩阵。重载运算符<<,>>,+,-和*。-A diagonal matrix, there are shared members, input, output, subtraction multiplication, transpose and other functions. The result is an array represented by a diagonal ma
Diagonal-Matrix
- Make a diagonal matrix