-
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
-
SHANNON.ZIP
香农编码的C++实现。原理说明以及源代码。(The Shannon coding C++. Principle of instructions and source code.)
- 2012-12-21 10:53:28下载
- 积分:1
-
ZLibNetWrapper
Deflate压缩算法源码,使用C++编写(Deflate compression algorithm source code, the use of C++ to prepare)
- 2009-03-22 14:42:52下载
- 积分:1
-
arithmetic
有关算术编码对文本压缩的程序在c++环境中实现(about arithmetic compressed)
- 2013-11-28 23:19:16下载
- 积分:1
-
7zipDll
完善后的LZMA(7ZIP)压缩DLL文件,且带有示范使用源码。(Perfect after LZMA (7ZIP) compressed DLL files, and a demonstration on the use of source code.)
- 2007-09-24 12:25:04下载
- 积分: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
-
Erika
upx解压,演示upx解压的程序源码,仅供参考。(upx unpack,show upx unpack program source code)
- 2016-03-25 11:07:12下载
- 积分:1
-
HAFUMANSHU
哈夫曼编码(Huffman Coding),又称霍夫曼编码,是一种编码方式,哈夫曼编码是可变字长编码(VLC)的一种。Huffman于1952年提出一种编码方法,该方法完全依据字符出现概率来构造异字头的平均长度最短的码字,有时称之为最佳编码,一般就叫做Huffman编码(有时也称为霍夫曼编码)。(Huffman encoding (Huffman Coding), also called Huffman Coding, is a way of Coding, Huffman Coding is variable word length Coding (VLC). Huffman in 1952 put forward a kind of coding method, this method is completely based on the characters of the occurrence probability to construct the average length of the shortest code word, sometimes called the best coding, generally is called Huffman coding (sometimes referred to as the Huffman coding).)
- 2016-12-13 00:02:52下载
- 积分:1
-
huffman
huffman 编码
完陈对指定的文本文件内容进行huffman编码
实现输出(END CHAN huffman encoding text file on the specified content encoding huffman implementation output)
- 2009-04-03 13:04:43下载
- 积分:1
-
mmmm
动态规划中图形算法中的最短路径算法 用类做的,分几个函数(The short road of dymta i don t know what is this program means,it is a c++
program !numeric recipes in C++ )
- 2010-01-03 20:34:11下载
- 积分:1