-
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
-
haffman
对输入的字符进行哈弗曼编码,生成编码表,计算压缩比等(haffman tree)
- 2011-08-30 14:10:52下载
- 积分:1
-
sdf2samples
用于开发Windows Mobile的参考源程序(Windows Mobile for the development of a reference source)
- 2008-06-30 10:24:17下载
- 积分:1
-
zip
压缩与解压缩类;压缩文件至.zip包内,增加文件至.zip包内,及解压缩相关操作。(zip and unzip。)
- 2013-10-14 10:16:38下载
- 积分:1
-
Huffmancoding111123123121
霍夫曼编码的C++实现,含word详细叙述文档,详细注释。(Huffman coding C++ to achieve, including the word detailed description of the documents, detailed notes.)
- 2012-08-13 16:48:36下载
- 积分: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
-
UNZIP
解压缩软件UNZIP的C源程序代码
The decompression software UNZIP C source code(The decompression software UNZIP C source code)
- 2013-03-26 09:36:09下载
- 积分:1
-
Huffman_code
实现Huffman算法,对数据进行最优编码压缩。(huffman code)
- 2016-01-22 09:27:03下载
- 积分:1
-
arithmetic
有关算术编码对文本压缩的程序在c++环境中实现(about arithmetic compressed)
- 2013-11-28 23:19:16下载
- 积分:1
-
CST_Cversion
基于类函数形函数的参数化建模方法,适用于气动设计和优化(Class/Shpae Transform method)
- 2020-12-09 16:59:19下载
- 积分:1