资源列表
Huffman
- 霍夫曼编码以及其实现,便于对数据进行处理-Huffman code
Josephu
- 代码用于解决特殊的约瑟夫环的问题,运用了链表,占和队列。- Code is used to address the special problems of Josephus, the use of the list, accounting and queues.
Bird3
- 用c实现的判断一个图是否有环,数据结构中的经典算法,输入一个图,然后判断是否有环。-used to achieve a judgment whether there are plans in Central and data structure of classical algorithm, the importation of a map, and then determine whether there is any ring.
Maze
- 迷宫算法(maze) /* Maze * Starting point is m[0][0], need to find a path go to m[9][9]. 0 means OK, * 1 means cannot go there, boundary is 0 and 9, cannot go beyond boundary. * Each step can be made horizontally or vertically for one more gri
tensor.tar
- 用于张量计算的数据结构,一些简单的操作实现-Tensor calculated for the data structure, simple operation to achieve
diagonal-matrix
- 一个对角矩阵,有如下共享成员,输入、输出、加减乘、转置等函数。结果都是一个用一位数组表示的对角矩阵。重载运算符<<,>>,+,-和*。-A diagonal matrix, there are shared members, input, output, subtraction multiplication, transpose and other functions. The result is an array represented by a diagonal ma
code2
- 22. 切木头 成绩: 10 / 折扣: 0.9 背景 人们需要把一跟很长的木头切成几段,有一家名为 Analog Cutting Machinery (ACM) 的公司正在经营这一业务。他们根据切割前木头的长度来收费,木头越长、收费越高,并且每切割一次就收一次费。 显而易见,在这里切割木头时,不同的切割顺序就会产生不同的价钱。譬如一跟 10 米长的木头,需要在 2、4、7 米处切开。如果顺序在这三个位置切割,需要的费用是 10 8 6 = 24,因为木头原始长度为 10
060405113519
- 用set容器进行排序的示例函数,可以实现快速的正向,逆向排序,根据类的元素来作为排序依据。-Use the example set containers to sort function, can achieve rapid positive, reverse order, according to the type of element to order as the basis.
ZOJ2112A
- ACM算法,ZOJ2112(树状数组+*树)-ACM algorithm, ZOJ2112 (tree array+ Chairman tree)
double-linked-list
- 初始化双链表H; 依次采用尾插法插入a,b,c,d,e元素; 输出双链表H; 输出双链表H长度; 判断双链表H是否为空; 输出双链表H的第三个元素; 输出元素’a’的位置; 在第四元素位置上插入’f’元素; 输出双链表H; 删除双链表H的第三个元素; 输出双链表H; -Initialize the double linked list H Turn the tail interpolation into the A, B, C, D, e eleme
link
- 实现单链表的一些基本功能 插入 删除 排序 等-Some basic features of a singly linked list insertion and deletion sorting
sort_and_search
- 几个重要的排序算法(插入,冒泡,选择及快排等)和查找算法(普通查找,二分查找)-Several important sorting algorithms (insertion, bubble, selection and fast scheduling, etc.) and search algorithms (general search, binary search)
