Location:
Search - huffman main-e
Search list
Description: 哈夫曼(Huffman)编码压缩和解压缩程序
huffman.c 主要的功能模块
bitio.c/bitio.h 一些支撑函数,支持以比特(bit)为单位的文件I/O
用法:
压缩 huffman E <in-file> <out-file>
解压缩 huffman D <in-file> <out-file>
压缩时,读入<in-file>中内容,建立Huffman编码,将结果存入<out-file>中,得到压缩文件。
解压缩时,读入<in-file>中内容,恢复Huffman编码,将结果存入<out-file>中,得到原文件。
本代码在linux+gcc/windows+vc下经过测试,为了使读者容易理解算法本身,
算法实现中仅采用了简单的错误处理机制和优化。-Huffman (Huffman) encoding compression and decompression procedures huffman.c main functions module bitio.c / bitio.h some support function, support for bits (bit) for the File I / O usage : Huffman compression E
Platform: |
Size: 1739 |
Author: 冯灿科 |
Hits:
Description: Huffman于1952年提出了这种方法,开始主要用于电报报文的编码,常用的英文字母E,T应该如何编码,不常用的应该如何编码,-Huffman in 1952 of this method, the beginning of the main text for the Telegraph reported coding, commonly used in the English alphabetical E, T coding How should not be how common coding,
Platform: |
Size: 1698 |
Author: crusader |
Hits:
Description: 哈夫曼(Huffman)编码压缩和解压缩程序
huffman.c 主要的功能模块
bitio.c/bitio.h 一些支撑函数,支持以比特(bit)为单位的文件I/O
用法:
压缩 huffman E <in-file> <out-file>
解压缩 huffman D <in-file> <out-file>
压缩时,读入<in-file>中内容,建立Huffman编码,将结果存入<out-file>中,得到压缩文件。
解压缩时,读入<in-file>中内容,恢复Huffman编码,将结果存入<out-file>中,得到原文件。
本代码在linux+gcc/windows+vc下经过测试,为了使读者容易理解算法本身,
算法实现中仅采用了简单的错误处理机制和优化。-Huffman (Huffman) encoding compression and decompression procedures huffman.c main functions module bitio.c/bitio.h some support function, support for bits (bit) for the File I/O usage : Huffman compression E
Platform: |
Size: 1024 |
Author: 冯灿科 |
Hits:
Description: 基于c的huffman的编码实现
该程序实现了经典的huffman算法
同时能够给出编码效率-C Based on the huffman coding to achieve the program to achieve the classic algorithm huffman coding efficiency at the same time be able to give
Platform: |
Size: 1051648 |
Author: 路敬 |
Hits:
Description: huffman coding and decoding
adaptive huffman coding and decoding
it is a assignment from my course
and code is main-c
decode is main-e
hope it is useful for everybody
Platform: |
Size: 2509824 |
Author: yuyu |
Hits:
Description: 设电文字符集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
停止
}
-设电文字符集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
停止
}
Platform: |
Size: 103424 |
Author: Kai |
Hits: