-
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
-
UNZIP
解压缩软件UNZIP的C源程序代码
The decompression software UNZIP C source code(The decompression software UNZIP C source code)
- 2013-03-26 09:36:09下载
- 积分:1
-
haffman
对输入的字符进行哈弗曼编码,生成编码表,计算压缩比等(haffman tree)
- 2011-08-30 14:10:52下载
- 积分: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
-
12344556
说明: 用单片机来直接驱动步进电机很精确走小步子.(Using single-chip to directly drive stepper motor is very accurate take small steps.)
- 2008-09-04 10:47:40下载
- 积分:1
-
xinxi
哈夫曼编码,基于MFC开发。哈夫曼编码为熵编码中的最佳方法之一,广泛用于各种数据压缩技术中。-Huffman coding, based on the MFC. Huffman coding for entropy coding one of the best ways, for a wide variety of data compression technology.
- 2011-07-12 10:33:01下载
- 积分:1
-
Erika
upx解压,演示upx解压的程序源码,仅供参考。(upx unpack,show upx unpack program source code)
- 2016-03-25 11:07:12下载
- 积分:1
-
bmp2jpeg&jpegcoding
bmp转换为jpeg,jpeg压缩的源代码 程序用vc实现了bmp图片转换成jpeg图片(converted to jpeg bmp, jpeg compression source code procedures used vc realized bmp images converted into jpeg photos)
- 2020-11-28 10:29:30下载
- 积分:1
-
Renderer
this is renderer function
- 2009-11-15 21:17:44下载
- 积分:1
-
ya_shuo
一个可以简单的压缩小程序,是利用游程编码原理(One can simply compress small program is the use of run-length coding theory)
- 2014-12-18 14:06:52下载
- 积分:1