快速紧凑的前缀码
Fast and Compact Prefix Codes
摘要:
众所周知,给定$n$字符上的概率分布,在最坏的情况下,需要(Θ(n \log n))个比特来存储具有最小预期码字长度的前缀码。然而,在本文中,我们首先表明,对于任何$0<ε<1/2$与(1 / ε= \Oh{\polylog{n}}),它需要$\Oh{n \log \log (1 / ε)}$位存储一个前缀码与预期的码字长度内的最小值$ε$。然后,我们表明,对于任何常数(c > 1),它需要$\Oh{n^{1 / c} \log n}$位存储的前缀码与预期的码字长度最多$c$倍的最小值。在这两种情况下,我们的数据结构允许我们在$\Oh{1}$时间内对任何字符进行编码和解码。
英文摘要:
It is well-known that, given a probability distribution over $n$ characters, in the worst case it takes (Θ(n \log n)) bits to store a prefix code with minimum expected codeword length. However, in this paper we first show that, for any $0<ε<1/2$ with (1 / ε= \Oh{\polylog{n}}), it takes $\Oh{n \log \log (1 / ε)}$ bits to store a prefix code with expected codeword length within $ε$ of the minimum. We then show that, for any constant (c > 1), it takes $\Oh{n^{1 / c} \log n}$ bits to store a prefix code with expected codeword length at most $c$ times the minimum. In both cases, our data structures allow us to encode and decode any character in $\Oh{1}$ time.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。