-
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
-
arithmetic
有关算术编码对文本压缩的程序在c++环境中实现(about arithmetic compressed)
- 2013-11-28 23:19:16下载
- 积分:1
-
SourceCode
赫夫曼编/译码器源码,已生成的每个字符的赫夫曼编码,对任意字符文本进行编码,再译码(Huffman encoder/decoder source code, Huffman coding, each character has been generated, the text of any character encoding, decoding)
- 2013-04-24 10:36:09下载
- 积分:1
-
12344556
说明: 用单片机来直接驱动步进电机很精确走小步子.(Using single-chip to directly drive stepper motor is very accurate take small steps.)
- 2008-09-04 10:47:40下载
- 积分:1
-
MyUnzip
解压ZIP格式的文件,VC++写的,完全可用的,希望你能喜欢。(Extracting ZIP format file write the VC++, completely available, hope you like it.)
- 2013-04-26 20:54:11下载
- 积分:1
-
yasuojieya
本代码为LZW算法的C语言实现程序,他在此基础上加入了霍夫曼算法的优点(the LZW algorithm code for the C language procedure, he joined the basis of the merits of the algorithm Hoffman)
- 2005-04-17 14:15:08下载
- 积分:1
-
lzari压缩算法
这是一个基于LZARI算法的数据压缩的类.Haruhiko Okumura 于1989年7月4日用C语言写实现了这个算法.但是上面用到了一些全局或静态的变量,在MFC下用起来很不方便.作者把它改写成了一个C++类,使它可以方便的压缩和解压缩。(LZARI algorithm based on the type of data compression. Haruhiko SAP in 1989, July 4 C language daily wrote realization of this algorithm. But above uses some static or global variables, using the MFC which are very convenient. Authors rewrite it became a category C, it can be to facilitate the compression.)
- 2005-03-06 13:01:17下载
- 积分:1
-
TestMQCoder
JPEG里MQ算术编码测试程序 编解码器 C(MQ arithmetic coding in JPEG test procedure codec C)
- 2020-12-06 09:19:22下载
- 积分:1
-
RLE
说明: c语言环境下的 RLE编码的串行程序(c language environment RLE encoded serial procedures)
- 2008-09-26 09:58:44下载
- 积分:1
-
CST_Cversion
基于类函数形函数的参数化建模方法,适用于气动设计和优化(Class/Shpae Transform method)
- 2020-12-09 16:59:19下载
- 积分:1