-
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
-
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
-
Dezender4.3
说明: 黑刀Dezender4.3简体中文版
黑刀Dezender4.3简体中文版
黑刀Dezender4.3简体中文版(Black knife Black knife Dezender4.3 Simplified Chinese Simplified Chinese version of Dezender4.3 Simplified Chinese version of the black knife Dezender4.3)
- 2010-03-21 07:30:14下载
- 积分: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
-
HuffmanCompress
基于哈弗曼树的压缩软件,可压缩文字和位图。(Huffman tree based compression software, compressible text and bitmaps.)
- 2014-04-23 20:09:34下载
- 积分:1
-
ZIP
zip压缩源代码,附有整个工程,保证能用,可应用于文件压缩,内存压缩(zip compressed source code, with the whole project, and ensure that use, can be applied to file compression, memory compression)
- 2008-12-15 21:33:12下载
- 积分:1
-
gczh
工程之间的转换 主要针对 05 和08
希望对大家有帮助(Projects aimed at the conversion between 05 and 08
We want to help)
- 2010-02-24 10:51:27下载
- 积分:1
-
EZW2
利用零树小波的概念,完成了对静态图像的编码与解码,经过调试的。(The use of the concept of zerotree wavelet completed on the static image encoding and decoding, after debugging.)
- 2008-06-26 09:03:38下载
- 积分:1
-
CArcExt_demo
加密、压缩(The Examples of Encrypt and Compression)
- 2021-03-03 08:29:33下载
- 积分:1
-
les-2
采用LBM+LES方法编制 了计算程序.首先计算了湍流平板附面层解,用来校对程序的正确性,结果表明计算值和理论值符合得很好.然后计算了亚音可压缩的湍流后台阶流以及超音湍流的 后台阶流.(LBM+LES simulation of flow)
- 2015-12-06 12:28:11下载
- 积分:1