资源列表
nqueenproblem
- This program finds the locations of placing n queens in a n*n chessboard so that none attack any other
1
- 数据结构中如何将十进制转换为六禁止,此程序就是解决此问题。-Data structure how to convert decimal six banned, this procedure is to solve this problem.
Joseph
- 约瑟夫环 约瑟夫问题的一种描述是:编号为1,2,3……的n个人按顺时针方向围坐成一圈,每人持有一个密码。一开始任选一个正整数作为报数上限m,从第一个人开始按顺时针方向自1开始报数,报到m停止报数。报m的人出列,将他的密码作为新的m值,从他顺时针方向的下一个人开始重新从1开始报数,如此下去,直到所有人全部出列。-Joseph Ring Joseph, a descr iption of the problem is: numbered 1,2,3 ... ... n-individual
show
- 对于全方位的识别和优化做了很详细的分析程序处理和样本对照-For the full identification and optimization of doing a very detailed analysis of the samples were processed and
BTree
- haskell code for binary trees
Create-a-one-way-linked-list
- 创建一个单向链表,在头创建。有主函数可以直接编译运行。-Create a one-way linked list, in the first created. Are the main functions can be directly compiled and run.
huffman_matlab
- 本程序以函数形式实现huffman编码,能有效地对字符串进行huffman编码并输出-This matlab program achieves huffman coding by using function m-file.It can effectively coding string type.
randfile
- 产生互一定范围内的不重复的随机数,随机算法适用于较大范围,分布较为均匀.-Produce each other within a certain range of non-repeating random numbers, random algorithm is applicable to a wider range and more evenly distributed.
CountLeaf
- 采用先序方式建立二叉链表结构,使用递归实现统计二叉树叶子结点个数的算法-count leaf node number of bitree
Sicily1021
- 中大Sicily1021:将圆圈中配对的两个数字(由用户给出)取出,看最后是否能全部取完-N couples are standing in a circle, numbered consecutively clockwise from 1 to 2N. Husband and wife do not always stand together. We remove the couples who stand together until the circle is empty or we ca
ZigZag-Conversion
- Zigzag:即循环对角线结构( 0 8 16 1 7 9 15 17 2 6 10 14 18 3 5 11 13 19 4 12 20 ) 向下循环:nRows 斜角线循环:nRows-2(减去首尾两个端点) 重复-The string PAYPALISHIRIN
yuesefuhuan
- 已知n个人(以编号1,2,3...n分别表示)围坐在一张圆桌周围。从编号为k的人开始报数,数到m的那个人出列;他的下一个人又从1开始报数,数到m的那个人又出列;依此规律重复下去,直到圆桌周围的人全部出列。通常解决这类问题时我们把编号从0~n-1,最后[1] 结果+1即为原问题的解。-Known n individuals (identified by serial number 1,2,3 ... n, respectively) were sitting around a round tabl
