arXivDaily arXiv每日学术速递 周一至周五更新
感恩节,周五至周末无更新,大家顺遂。周一再来吧
arXiv 2311.07009cs.ITmath.IT
收藏

Huffman 码与 Shannon-Fano 码的竞争优势

Competitive Advantage of Huffman and Shannon-Fano Codes

Spencer Congero, Kenneth Zeger

AI总结:

本文研究前缀码的竞争最优性,证明随机非二元信源的 Huffman 码竞争最优概率趋于零,并给出其相对 Shannon-Fano 码及其他前缀码竞争优势的界与可达性。

摘要:

对于任意有限离散信源,前缀码 $C_1$ 相对于前缀码 $C_2$ 的竞争优势定义为:$C_1$ 产生比 $C_2$ 更短码字的概率,减去 $C_2$ 产生比 $C_1$ 更短码字的概率。对于任意信源,如果一个前缀码相对于所有其他前缀码都具有非负的竞争优势,则称其为竞争最优的。1991 年,Cover 证明了 Huffman 码对所有二元信源(即符号概率为 2 的负整数次幂的信源)都是竞争最优的。我们证明了如下渐近逆命题:随着信源规模增大,随机选取的非二元信源的 Huffman 码为竞争最优的概率趋于零。我们还证明:(i) 对于任意非二元信源,Huffman 码相对于 Shannon-Fano 码具有正的竞争优势;(ii) 对于任意信源,任意前缀码相对于 Huffman 码的竞争优势严格小于 $\frac{1}{3}$;(iii) 对于每个整数 $n>3$,存在一个规模为 $n$ 的信源和某个前缀码,其相对于 Huffman 码的竞争优势可任意接近 $\frac{1}{3}$;(iv) 对于每个正整数 $n$,存在一个规模为 $n$ 的信源和某个前缀码,其相对于 Shannon-Fano 码的竞争优势在 $n\to\infty$ 时可任意接近 $1$。

英文摘要:

For any finite discrete source, the competitive advantage of prefix code $C_1$ over prefix code $C_2$ is the probability $C_1$ produces a shorter codeword than $C_2$, minus the probability $C_2$ produces a shorter codeword than $C_1$. For any source, a prefix code is competitively optimal if it has a nonnegative competitive advantage over all other prefix codes. In 1991, Cover proved that Huffman codes are competitively optimal for all dyadic sources, namely sources whose symbol probabilities are negative integer powers of $2$. We prove the following asymptotic converse: As the source size grows, the probability a Huffman code for a randomly chosen non-dyadic source is competitively optimal converges to zero. We also prove: (i) For any non-dyadic source, a Huffman code has a positive competitive advantage over a Shannon-Fano code; (ii) For any source, the competitive advantage of any prefix code over a Huffman code is strictly less than $\frac{1}{3}$; (iii) For each integer $n>3$, there exists a source of size $n$ and some prefix code whose competitive advantage over a Huffman code is arbitrarily close to $\frac{1}{3}$; and (iv) For each positive integer $n$, there exists a source of size $n$ and some prefix code whose competitive advantage over a Shannon-Fano code becomes arbitrarily close to $1$ as $n\to\infty$.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑