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

Application of Huffman Algorithm in Data Compression

在线阅读下载全文

作  者:程佳佳[1] 熊志斌[1] 

机构地区:[1]琼州学院电子信息工程学院,海南三亚572022

出  处:《电脑编程技巧与维护》2013年第2期35-37,共3页Computer Programming Skills & Maintenance

摘  要:研究数据压缩方法,用哈夫曼算法实现一个文件压缩器。把文件中字节码的频数作为权重,用优先队列构建哈夫曼树,构造字节码和哈夫曼码的转换表,利用转换表对文件字节码实施变换实现压缩,用对象序列化的方法保存转换表和压缩数据。解压过程中用转换表对压缩数据作逆变换得到字节码,实现文件解压。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.

关 键 词:数据压缩 哈夫曼算法 优先队列 对象序列化 

分 类 号:TP311.13[自动化与计算机技术—计算机软件与理论] TP301.6[自动化与计算机技术—计算机科学与技术]

 

参考文献:

正在载入数据...

 

二级参考文献:

正在载入数据...

 

耦合文献:

正在载入数据...

 

引证文献:

正在载入数据...

 

二级引证文献:

正在载入数据...

 

同被引文献:

正在载入数据...

 

相关期刊文献:

正在载入数据...

相关的主题
相关的作者对象
相关的机构对象