再论空间有效的Huffman码
Space-Efficient Huffman Codes Revisited
摘要:
规范哈夫曼码是一种最佳的无前缀压缩码,其码字按字典顺序排列,形成一个长度不减的二进制字列表。Gagie等人(2015)给出了这种编码的表示,能够在恒定的最差情况时间内对符号进行编码或解码。它使用空间的$σ\lg \ell_{\text{max}} + o(σ) + O(\ell_{\text{max}}^2)$位,其中$σ$和$\ell_{\text{max}}$分别是字母表大小和最大码字长度。我们改进他们的表示,以减少空间复杂度为$σ\lg \ell_{\text{max}} (1 + o(1))$位,同时保持恒定的编码和解码时间。我们的算法思想可以应用于任何规范代码。
英文摘要:
Canonical Huffman code is an optimal prefix-free compression code whose codewords enumerated in the lexicographical order form a list of binary words in non-decreasing lengths. Gagie et al. (2015) gave a representation of this coding capable to encode or decode a symbol in constant worst case time. It uses $σ\lg \ell_{\text{max}} + o(σ) + O(\ell_{\text{max}}^2)$ bits of space, where $σ$ and $\ell_{\text{max}}$ are the alphabet size and maximum codeword length, respectively. We refine their representation to reduce the space complexity to $σ\lg \ell_{\text{max}} (1 + o(1))$ bits while preserving the constant encode and decode times. Our algorithmic idea can be applied to any canonical code.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。