最佳前缀码
[Definition] Set 1 2 n 1 n is a symbol string which length is n, called the sub-string 1, 1 2, , 1 2 n 1 for the length of the symbol string to 1,2,...,n 1prefix respectively.
Set { 1, 2, , m}is a symbol string collection, for any i, j ,i j, i, j not the prefix mutually. Then A is a prefix code. If in the i(i 1,2...,m)there only appears two symbols 0, 1. Then A is a binary prefix code.
Example, {1,01,001,000}, {00,10,11,011,0100,0101} are prefix code, while {1,01,111,1100 of} is not a prefix code, because1 is the prefix of 111 and 1100.
How to generate binary prefix code? We can use binary tree get a binary prefix code.
Given a binary tree T having t leaves. Let v is a branch point of T, and then v has at least one child up to two children. If v has two children and v leads two edges, the left marked 0, the right of the standard 1. If v only has one child, the edge lead by v marked with 0, can also be marked on the 1.Setvito be any pieces in the tree, placed at vi that the symbol string consisting of 0, 1 from root tovi . The t symbol strings composed of a collection get a binary prefix code. Seen by the approach above, the prefix of the string of symbols atviare reached where passage except at the apex of the set of strings so that the resulting symbol is a binary prefix code. If T branch point with a child, the prefix code generated by T may not be unique, but if T is regular binary tree, generated binary prefix code by T is unique.
Shown in Figure 1 the Prefix code generated by the binary tree is {00, 10, 11, 010, 0110, and 0111}.We can use the frequency of each symbol appears (or 100 multiplied by frequency) as weights when Know the frequency of the symbols to be transferred, Huffman algorithm can seek the optimal binary tree T. Prefix code generated by T to be the best prefix code, the most efficient transmission of binary digit prefix code.
Figure 1
The following examples illustrate the process of optimal the prefix code generation.



前缀-prefix_英语考试_外语学习_教育专区。英语单词前缀英语词汇的奥秘——前缀 www.TopSage.com 大家网 单词的附件——词缀 (一)前缀 1. 2. 3. 4. 5. 6....
英语单词中常见前缀(prefix)和后缀(suffix)大总结。英语英语单词中常见前缀(prefix)和后缀(suffix)大总结 ★ 1.表示否定意义的前缀 1) 纯否定前缀 a-, an-,...
下面是普通的前缀列表的参数: ip prefix-list [name] [permit deny] [prefix]/[len] name 为任意的名字或者数字,prefix 是指定的路由前缀(网段),len 是...
为 我们必须使用前缀编码 前缀编码(Prefix Code) 我们必须使用前缀编码 Prefix Code前缀码 前缀码 任何一个字符的编码都不是同一字符集中 另一个字符的编码的前缀...
2010 数学研究 强前缀码的构造文 亦佳萍陈 ① (...Key Words :st ro ng p refix code ; st rong...ng Prefix Codes W EN Ping H EN Yijia C 3 ....
下面是普通的前缀列表的参数: 下面是普通的前缀列表的参数: prefixip prefix-list [name] [permit deny] [prefix]/[len] 为任意的名字或者数字, 是指定的...
由词根 (或单词) 附加前缀、后缀构 成新词的方法叫派生法。由派生法构成 的词叫派生词 大体上讲,派生法有两种:加前缀、 加后缀。本讲对前缀(prefix)进行概述...
prefix 前缀 July 2012 1 What is the meaning of these prefix? Could you give some examples? ? Anti, auto, bi, ex, mis, mono, multi, over, post...
prefix 前缀 July 2010 1 What is the meaning of these prefix? Could you give some examples? ? Anti, auto, bi, ex, mis, mono, multi, over, post...
? ? ? 读入当前字符后立即得到译码结果的编码称之 为即时码(Instantaneous Code)。即时码必须 是唯一可译码,反之则不然。 前缀码(Prefix Code) 后缀码(Suffix ...
热门文档