资源列表
BinaryTree
- BinaryTree算法,这个代码很通用,使用了模版,值得学习-BinaryTree algorithm, this code is very generic, using templates, it is worth learning
huffman
- 在C环境下实现huffman编码,在编码的过程中运用到根和子树。-zai c huanjing xia shixian huffman bianma
SimpleCalcMFC
- MFC计算器。用堆栈实现,可以进行含括号的四则运算。-MFC calculator. Implementate With the stack. Can be carried out with the four fundamental operations in parentheses.
temlatelist
- 用模板定义的单链表类 单链表应用,数据结构和算法学习必备程序学习。-The template is defined in a single linked list class of single applications, data structures and algorithms necessary procedures for learning to learn.
stack
- 用单链表实现存储栈 “链式栈”类模板的定义,数据结构和算法学习必备学习程序。-Single-linked list for storage stack " Chain stack" class template definition, data structures and algorithms necessary to study the learning process.
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
bracketmatch
- 检查算数表达式中括号是否匹配 使用“链式栈”模板定义作为数据结构来实现括号匹配。-Check the arithmetic expression in parentheses match use " chain stack" template definition as a data structure to achieve the matching parenthesis.
4
- 使用简单数组实现下面各种排序算法,并进行比较。 排序算法: 1、插入排序 2、希尔排序 3、冒泡排序 4、快速排序 5、简单选择排序 6、堆排序(选作) 7、归并排序(选作) 8、基数排序(选作) -Using a simple array to achieve the following variety of sorting algorithms and compare them. Sorting algorithm: a, 2 insert
hanoi
- 实现汉诺塔的操作步骤输出,可以设置1,2,3三个塔柱,输出结果为用1,2,3表示的操作-Tower of Hanoi the steps to achieve the output, you can set 1,2,3 3 Pylon, the output result of the operation that used 1,2,3
3261
- zoj3261 Connections in Galaxy War 的源码,主要考察并查集,并要从后往前建图-source code of zoj3261 :Connections in Galaxy War ,mainly about union-find,and need to build graph from end to the beginning
3204
- zoj 3204 Connect them的源码,主要考察最小生成树的Kruskal算法,要注意输出的顺序-the source code of zoj 3204 Connect them , the main study Kruskal minimum spanning tree algorithm, should pay attention to the order of the output
3230
- 带堆优化的贪心,从题意中我们可以得到的最暴力解法就是,每天都搜索整个数组,找出符合条件的题目并且它的经验是最大的,这样找M天就好了。接下来就是如何优化,在每次找的时候我们只要找经验最大的,因为可以用大顶堆组织可以做的题目,每次升级之后加入新的可以做的题目就OK了。-Optimized with a greedy heap, from the meaning of the questions, we can get the most violent solution is that every d
