资源列表
p126_2
- 邮箱问题:150个邮箱,从邮箱2开始,打开所有偶数编号邮箱的门,接着从编号3开始,每隔3个邮箱,若门关着则打开,开着则关闭,随后每隔4个重复此过程,再每隔5个重复此过程,如此下去。判断最后哪些邮箱关着-E-mail questions: 150 mailboxes from the mailbox 2 starts, open the door all the even-numbered mailbox, and then start from number three, every three
kruskalPunionFind
- krustral和并查集的c++实现,参考算法4-c++ krustral and disjoint-set implementation, reference algorithm 4
Bipartite-graph-to-determine
- 本压缩文件完整地实现了二分图判定的判定算法,代码很完整 -This compressed file a complete bipartite graph realized the judge determine the algorithm, the code is very complete
paixu
- 冒泡排序,折半查找,Bubble sort, binary search-Bubble sort, binary search
test
- 编写地鬼算法计算二叉树中叶子节点的数目,并求出位于先序序列中第K个位置的节点-Binary tree algorithm to ghost write in the number of leaf nodes, and find the sequence of the first order in the first position of the node K
BubbleSort
- 一个很经典的排序算法,此算法步骤非常简单,可以快速的进行对数组的排序。-A very classic sort algorithm, this algorithm is very simple steps, can quickly to an array of the list.
picture
- 由于题目要求是要求最小值,如果能有一种工具能够自动将我们输入的值进行排序就好了。由此,很容易就会想到使用容器multiset,它能够将我们输入的数值自动进行从小到大的顺序进行排列。这样,当我们输入完数值后,直接调用函数begin(),取容器中的第一个值即为容器中的最小值了。-The subject requirement is to require the minimum, if there is a tool that can automatically input value like so
list
- 单向链表,2nd插入节点,尾部插入节点,顺序插入节点,删除节点,遍历节点-list,insert list,delete list
fase_transpose
- 在数据结构课程中,稀疏矩阵的转置,用C语言编写实现这一功能-Course in data structures, sparse matrix transpose, to achieve this using C language functions
yunshu
- 算法小程序,自己的想法,建议看看,让你受益匪浅-Algorithm is a small program, their own ideas, suggestions see
test_code
- 算法设计与分析 _4-19 多元Huffman编码问题-Algorithm design and analysis of algorithm design and analysis of _4-more than 19 yuan Huffman coding problem
N-queens
- N皇后问题的所有解输出,代码简单易懂,且短小快速-N-queens problem all solutions of output, the code is easy to understand, and the short and fast