资源列表
mokey-king
- n只猴子围坐成一个圈,按顺时针方向从1到n编号。然后从1号猴子开始沿顺时针方向从1开始报数,报到m的猴子出局,再从刚出局猴子的下一个位置重新开始报数,如此重复,直至剩下一个猴子,它就是大王。设计并编写程序,实现如下功能: (1) 要求由用户输入开始时的猴子数n、报数的最后一个数m。 (2) 给出当选猴王的初始编号。-the monkey king
backbag
- 设有一个能装入总体积为T的背包和n件体积分别为W1,W2,…,Wn的物品,能否从n件物品中挑选若干件恰好装满背包,即使Wi1+Wi2+…+Wm=T,要求找出所有满足上述条件的解。例如:当T=10,各件物品的体积{1,8,4,3,5,2}时,可找到4组解:(1,4,3,2)、(1,4,5)、(8,2)和(3,5,2)。-the backbag problem
2
- 计算二叉树的叶子结点树,实现代码的编译和运行-Calculated binary tree leaf node, the code compiles and runs to achieve
huffman
- huffman的编程,应用到密码传输的部分,-huffman programming
BiTree
- 实现的功能包括创建二叉树,按层遍历、递归遍历,统计度为0、1、2的节点数,求深度,判断是否是完全二叉树,求节点的父节点,交换左右子树,文件读写-create BiTree,traverse bitree,node s ancestor, exchange left and right childtree
c
- 数据结构,程序设计, 括号匹配检验算法。利用栈的方式来实现-Matching brackets
shujujieguo
- vc++数据结构任务书的报告,希望对大家有用-vc++ data structure of the mission statement of the report, want to be useful
MyGene
- 使用遗传算法求最短回路。用户输入信息在1.txt中。目前有6个城市,如果权值为-1,表示两个城市之间不可达。遗传算法会被执行5次。-Using genetic algorithm for the shortest loop. The user to enter information in the 1.txt. There are six cities, if the weight is-1, indicating that up between the two cities. Genetic
sort
- 内排序算法中所有的排序程序,学习C语言必备的。-All within a sorting algorithm sorting program, learning the C language necessary.
USACO1-2
- usaco上第一第二部分的题解 一些简单算法题-usaco solution
sparsematrix
- 数据结构,实现稀疏矩阵输入和“一次定位快速转置”。-Data structure, to achieve sparse matrix input and " a rapid positioning transpose."
ch2
- 严蔚敏编写的数据结构c语言版第二章部分 习题答案,这个代码写的不错,拿来这里和各位分享下 -Yan Wei-min data structures written in c language version of the second part of chapter exercise answers, this code is written in good, used here and to share the next
