检索规则说明:AND代表“并且”;OR代表“或者”;NOT代表“不包含”;(注意必须大写,运算符两边需空一格)
检 索 范 例 :范例一: (K=图书馆学 OR K=情报学) AND A=范并思 范例二:J=计算机应用与软件 AND (U=C++ OR U=Basic) NOT M=Visual
机构地区:[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[自动化与计算机技术—计算机科学与技术]
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在载入数据...
正在链接到云南高校图书馆文献保障联盟下载...
云南高校图书馆联盟文献共享服务平台 版权所有©
您的IP:216.73.216.171