资源列表
juzhenlianxiangcheng
- 此代码为实现矩阵链相乘算法的c++代码,希望能给大家带来帮助。-This code for the realization of the matrix chain multiplication algorithm c++ code, hoping to bring help.
zuiyouhebing
- 最优合并问题,当取最小值保证每次的2个加数为最小便可,最大值同理取当前最大的两个值便可。取最小值与取最大值实现的方式不同,最小值不需要排序。-Optimal merger, when the minimum value of each guaranteed two addends can be minimum, maximum empathy take the current maximum of two values can be. Take the minimum and maximum v
huffmantree
- 哈夫曼树的叶子结点个数的算法,运用了数据结构中哈夫曼树的建立等要素-Huffman tree algorithm the number of leaf nodes, using the data structure elements such as Huffman Tree Construction
BinaryTree
- 求解任意一个二叉树的中序先序后序遍历结果-Solving any one of the first order binary tree in postorder traversal sequence results
horse
- 使用C语言解决马走日问题,是一个简单的算法问题,对于算法初学者很有用!-Using the C language to solve horse to go to Japan, is a simple algorithm for the problem, for the algorithm is useful for beginners!
lianbiao
- 此算法实现单链表的逆置,程序简单,容易看懂-This algorithm is the inverse of a single linked list is set, the program is simple, easy to understand
bubble-sort
- 排序算法 冒泡排序法 此算法非常适合用于初学数据结构的人 是十大经典排序算法之一-Sorting algorithm bubble sort method for this algorithm is very suitable for the beginner data structure is one of the top ten classic sorting algorithms
1032Parliament
- 算法编程题,北京大学OnlineJudge 1032Parliament-1032Parliament
huffman_coding
- c++ 编写的哈夫曼编码程序,实现对数据的哈弗曼编码-c++ to prepare the Huffman coding process, the realization of the data encoding哈弗曼
01bag
- 0-1背包问题,采用了动态规划的算法,输入物品的重量和价值,以及背包的容量,计算出最优解-0-1 knapsack problem, using a dynamic programming algorithm ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~
Binary-tree
- 二叉树的遍历算法,包括先序遍历,中序和后序。数据结构课程要求。-Binary tree traversal algorithm
kmp_test
- 实现KMP算法,输入三组主串S和模式串P,输出模式串的Next(j)函数值,以及该P在S中的位置的定位函数值,即序号值。其中S的长度为15~25,P的长度为5~8。-KMP algorithm, enter the three main string S and pattern string P output mode string Next (j) The function value, as well as the P position in the S orientation funct