期刊文献+

哈夫曼算法在数据压缩中的应用 被引量:4

Application of Huffman Algorithm in Data Compression
下载PDF
导出
摘要 研究数据压缩方法,用哈夫曼算法实现一个文件压缩器。把文件中字节码的频数作为权重,用优先队列构建哈夫曼树,构造字节码和哈夫曼码的转换表,利用转换表对文件字节码实施变换实现压缩,用对象序列化的方法保存转换表和压缩数据。解压过程中用转换表对压缩数据作逆变换得到字节码,实现文件解压。 The method of data compression is studied in this paper, and a file compression software was implemented by using Huffman algorithm. A priority queue was used to build a Huffman tree with character frequency used as weight. A mapping table was constructed in which a byte-code was mapped into a Huffman-code, and then byte-codes in a file were transformed Huffman-eodes to compress a file by using the mapping table. The mapping table and the compressed data were saved in object serialization. The compressed data was transformed inversely from Huffman-codes to byte-codes to achieve decompression of file by using the mapping table in the process of decompression.
出处 《电脑编程技巧与维护》 2013年第2期35-37,共3页 Computer Programming Skills & Maintenance
关键词 数据压缩 哈夫曼算法 优先队列 对象序列化 data compression Huffman algorithm priority queue object serialization
  • 相关文献

参考文献4

  • 1Huffman David A. A Method for the Construction of minimum-redundancy Codes[J].Proceeding of the Institute of Radio Engineers,1952.930-932.
  • 2Cormack Gordorn V,Horspool R.Nigel. Algorithms for Adaptive Huffman Codes[J].Information Procession Letters,1984.159-163.
  • 3严蔚敏;吴伟民.数据结构[M]北京:清华大学出版社,1997.
  • 4Adam Drozdek. Data Structures and Algorithms in Java[M].Singapore:Cengage Learning Asia Pte Ltd,2008.

同被引文献28

引证文献4

二级引证文献18

相关作者

内容加载中请稍等...

相关机构

内容加载中请稍等...

相关主题

内容加载中请稍等...

浏览历史

内容加载中请稍等...
;
使用帮助 返回顶部