-
DS4
设电文字符集D及各字符出现的概率F如下:
D={a,b,c,d,e,f,g,h}(字符数n=8)
F={5,29,7,8,14,23,3,11}( )
编写完成下列功能的程序:
①构造关于F的Huffman树;
②求出并打印D总各字符的Huffman编码。
程序结构: 类型说明;
构造Huffman树的函数:Huffman_tree(H[m+1]);
求Huffman编码的函数:Huffman_code(code[n+1]);
main()
{ 变量说明;
输入字符集D及频率F;
调用Huffman_tree(H);
调用Huffman_code(code);
打印编码;
Y 继续?
N
停止
}
- 2015-06-06 16:41:33下载
- 积分:1
-
AES
AES压缩技术编程源代码,包含压缩和解压全套源代码的完整工程(AES compression technology programming source code, including compression and decompression full source code of complete project
)
- 2015-12-24 11:09:07下载
- 积分:1
-
01
说明: vc 典型模块 是一个图像压缩显示的程序(vc typical module is shown in an image compression program)
- 2009-11-24 21:08:29下载
- 积分:1
-
e
说明: 一个上课很好用的课件,是您编程的很好帮手(why)
- 2009-03-27 08:41:54下载
- 积分:1
-
shunxubiao
顺序表插入删除,典型的教科书式的程序。老师给的。。。。。。(The order of the table insert removed, a typical textbook-style programs.)
- 2010-01-10 11:23:19下载
- 积分:1
-
cccc
输入两个正整数m和n,求其最大公约数和最小公倍数(Enter two positive integers m and n, can seek the common denominator and least common multiple)
- 2010-05-11 21:19:20下载
- 积分:1
-
cangkuguanli
利用C++实现的插入,删除,增加接点等功能(The use of C++ Realized insert, delete, increase the contact and other functions)
- 2008-12-29 21:36:59下载
- 积分:1
-
gwbssrari
这里给出的源代码huffman.zip用8种不同的方式实现了Huffman编码算法。这些代码意在演示不同Huffman算法的实现原理,比较算法执行效率的差别,但并没有针对实际应用环境的需求,做更多的空空空间或效率优化。全部代码以C++语言开发,为了更容易地实现各种数据结构,代码中大量应用了标准C++库与模板技术。——总之,这些代码的作用在于示例与演示;如果大家想把这些代码应用在实际应用中,可能还需要
(The given here source code huffman.zip eight different ways to achieve the Huffman coding algorithm. These codes are intended to demonstrate different Huffman algorithm implementation principle, the difference of the algorithm execution efficiency, but does not demand for practical application environment, do more empty space or efficiency optimization. The entire code C++ language development code in order to make it easier to achieve a variety of data structures, a large number of applications the standard C++ library template.- In short, these code examples and demonstration If we want the code used in practical applications may also need)
- 2012-08-23 20:05:50下载
- 积分:1
-
lzw_soft
lzw压缩解压算法源码(The soruce of LZW compression algorithm)
- 2020-06-26 13:00:01下载
- 积分:1
-
GZIP解压例子
说明: 利用gzip.dll解压http请求返回的内容。内附gzip.dll。参考网上资料自己写的VB6工程源码。自己编译EXE的时候注意把gzip.dll释放到exe所在目录。(Use gzip.dll to decompress the content returned by HTTP request. Gzip.dll is attached. Refer to the VB6 project source code written by myself.)
- 2020-06-22 07:00:02下载
- 积分:1