首页 | 本学科首页   官方微博 | 高级检索  
     

基于二叉排序树的哈夫曼编码
引用本文:王防修,周康.基于二叉排序树的哈夫曼编码[J].武汉工业学院学报,2011,30(4):45-48.
作者姓名:王防修  周康
作者单位:武汉工业学院数学与计算机学院,湖北武汉,430023
摘    要:传统的哈夫曼编码的实现方式是在构造哈夫曼的基础上,从叶子节点到根节点逆向进行的。为了提高编码的效率,给出了一种新的哈夫曼编码实现方式,该方式通过利用二叉排序树的数据结构,从哈夫曼的根节点出发,向叶子节点进行编码,在编码过程中仅将哈夫曼树的每个叶子节点进行一次扫描便可以得到各个叶子节点的哈夫曼编码。该方法不仅符合编码的思维方式,而且解决了原先编码过程中大量指针移动的问题。

关 键 词:哈夫曼树  二叉排序树  哈夫曼编码  算法

Huffman coding based on a binary sort tree
WANG Fang-xiu,ZHOU Kang.Huffman coding based on a binary sort tree[J].Journal of Wuhan Polytechnic University,2011,30(4):45-48.
Authors:WANG Fang-xiu  ZHOU Kang
Affiliation:WANG Fang-xiu,ZHOU Kang(School of Mathematics and Computer Science,Wuhan Polytechnic University,Wuhan 430023,China)
Abstract:The traditional way to achieve huffman coding is from leaf nodes to the root node on the basis of the huffman tree.In order to improve coding efficiency,It prsents a new implementation approach of the huffman coding,in which codes go from the root node to leaf nodes of the huffman tree by using the binary sort tree.In the coding process,every leaf node is only scanned once before getting the huffman coding.This method not only coincides with the thinking of encoding mode,and solves the problem of a large nu...
Keywords:Huffman tree  binary sort tree  Huffman coding  algorithm  
本文献已被 CNKI 万方数据 等数据库收录!
设为首页 | 免责声明 | 关于勤云 | 加入收藏

Copyright©北京勤云科技发展有限公司  京ICP备09084417号