文件名称:Huffman-encoding
-
所属分类:
- 标签属性:
- 上传时间:2013-12-17
-
文件大小:48.48kb
-
已下载:0次
-
提 供 者:
-
相关连接:无下载说明:别用迅雷下载,失败请重下,重下不扣分!
介绍说明--下载内容来自于网络,使用问题请自行百度
哈夫曼树可用于构造使电文的编码总长最短的编码方案。具体做法如下:设需要编码的字符集合为{d1,d2,…,dn},它们在电文中出现的次数或频率集合为{w1,w2,…,wn},以d1,d2,…,dn作为叶结点,w1,w2,…,wn作为它们的权值,构造一棵哈夫曼树,规定哈夫曼树中的左分支代表0,右分支代表1,则从根结点到每个叶结点所经过的路径分支组成的0和1的序列便为该结点对应字符的编码,我们称之为哈夫曼编码。-Huffman encoding can be used to construct the shortest length of the message' s encoding scheme. Specifically, the following: Let coded character set needed for the {d1, d2, ..., dn}, number or frequency in which they appear in the message set is {w1, w2, ..., wn}, with d1, d2, ..., dn a leaf node, w1, w2, ..., wn as their weights, a Huffman tree structure, the predetermined Huffman tree represents 0 left branch and right branch represents 1, from the root to every sequence of a leaf node path through a branch consisting of 0 and 1, then the corresponding node encoded characters that we call Huffman coding.
(系统自动生成,下载前可以参看下载内容)
下载文件列表
Huffman encoding.doc
本网站为编程资源及源代码搜集、介绍的搜索网站,版权归原作者所有! 粤ICP备11031372号
1999-2046 搜珍网 All Rights Reserved.