-
K路归并算法,用贪心算法构造霍夫曼树,采用加入虚节点的思想求出最优的归并模式...
K路归并算法,用贪心算法构造霍夫曼树,采用加入虚节点的思想求出最优的归并模式-K Road, merge algorithm, greedy algorithm using Huffman tree constructed using the idea of adding virtual nodes to derive the optimal merging pattern
- 2022-04-21 22:46:18下载
- 积分:1
-
a binary tree using the trigeminal Chain example, the leaves are obtained and th...
一个二叉树的三叉链表运用实例,求出叶子的结点并输出从根结点到该叶子结点的路径!-a binary tree using the trigeminal Chain example, the leaves are obtained and the output node from the Root of leaf nodes in the path!
- 2022-02-21 08:16:56下载
- 积分:1
-
从数组中 任取一个元素 p (可随机取,现在以取第一个为例).以P作为主元,对数组 进行划分 ,前一部分小于 P,后一部分 大于p.最后划分处存储p,然后分别对...
从数组中 任取一个元素 p (可随机取,现在以取第一个为例).以P作为主元,对数组 进行划分 ,前一部分小于 P,后一部分 大于p.最后划分处存储p,然后分别对划分后的前一部分和后一部分递归调用.
算法平均时间复杂度: O(nlogn)
-Any check from the array element p (can be random access, and now to take the first example). To P as the main element of the array to be divided, the first part is less than P, the latter part of the final division is greater than p. Department store p , and then were divided into the first part and the latter part of recursive calls. algorithm the average time complexity: O (nlogn)
- 2022-03-12 12:50:19下载
- 积分:1
-
编程求两个一元多项式的乘积。
输入
输入数据为两行,分别表示两个一元多项式。每个一元多项式以指数递增的顺序输入多项式各项的系数(整数)、指数(...
编程求两个一元多项式的乘积。
输入
输入数据为两行,分别表示两个一元多项式。每个一元多项式以指数递增的顺序输入多项式各项的系数(整数)、指数(整数)。
例如:1+2x+x2表示为:,,,
输出
以指数递增的顺序输出乘积: ,,,
零多项式的输出格式为:,-Programming seeking the product of two one-polynomial. Enter the input data for the two lines represent two unary polynomial. One dollar for each polynomial order of the exponential increase of the input polynomial coefficients (integer), index (integer). For example: 1+2 x+ x2 expressed as: " 1,0" , " 2,1" , " 1,2" , the output of the order of the exponential increase output of the product: " coefficient, index" , " coefficient, index" , " coefficient, the index " , zero polynomial output format is:" 0,0 " ,
- 2023-04-13 09:30:03下载
- 积分:1
-
查表法公历农历转换,此法可以转换西历农历转换程式,可以转换100年...
查表法公历农历转换,此法可以转换西历农历转换程式,可以转换100年-look-up table method Lunar calendar change, this method can be converted into the Western calendar, the Lunar conversion programs, can be converted into 100 years
- 2022-01-22 14:22:57下载
- 积分:1
-
实验中我们使用了四种方法进行串匹配,通过对相同的文本和相同的模式串进行四种不同算法的串匹配操作,比较四种算法的优劣。...
实验中我们使用了四种方法进行串匹配,通过对相同的文本和相同的模式串进行四种不同算法的串匹配操作,比较四种算法的优劣。-Experiment we used four methods for string matching, through the same text and the same pattern for four different algorithms string matching operation to compare the merits of the four algorithms.
- 2022-09-09 08:20:03下载
- 积分:1
-
程序,很好的程序
程序,很好的程序-procedures are good procedures
- 2022-12-21 05:00:03下载
- 积分:1
-
is a loaded Control category.
是一个已加载的控件类。-is a loaded Control category.
- 2022-02-21 13:24:50下载
- 积分:1
-
一个自己写的com+数据模块的源码,对于写数据库的人很有用的...
一个自己写的com+数据模块的源码,对于写数据库的人很有用的-one wrote it myself com data module source code, the database was made for the very useful
- 2022-10-06 14:20:02下载
- 积分:1
-
自己写的堆栈算法,C语言+Visual C++6.0环境下
自己写的堆栈算法,C语言+Visual C++6.0环境下-Write their own stack algorithm, C language Visual C++ 6.0 environment
- 2022-01-27 23:29:18下载
- 积分:1