不等价紧致Huffman码的算法计数
Algorithmic counting of nonequivalent compact Huffman codes
AI总结:
本文证明了可通过一次幂级数除法计算所有 $n<N$ 的不等价紧致Huffman码序列 $f_t(n)$,仅需 $N^{2+\varepsilon}$ 次位运算,改进了先前 $O(N^4)$ 的界限。
摘要:
已知以下五个计数问题会导出相同的整数序列 $f_t(n)$:在 $t$ 个字母的字母表上长度为 $n$ 的不等价紧致Huffman码的数目,具有 $n$ 个叶子的“不等价”规范有根 $t$ 叉树(层贪婪树)的数目,“真”字的数目,有界度序列的数目,以及用整数 $0 \leq x_1 \leq x_2 \leq \dots \leq x_n$ 将 $1= \frac{1}{t^{x_1}}+ \dots + \frac{1}{t^{x_n}}$ 写出的方式数。在本工作中,我们证明了可以通过本质上一次幂级数除法来计算 \u0000textbf{所有\u0000 $n<N$ 的该序列。我们总共最多需要 $N^{1+\varepsilon}$ 次对 $cN$ 位($c<1$)整数的加法和乘法,或者 $N^{2+\varepsilon}$ 次位运算。这改进了 Even 和 Lempel 早先的界限,他们分别需要整数环中的 $O(N^3)$ 次运算或 $O(N^4)$ 次位运算。
英文摘要:
It is known that the following five counting problems lead to the same integer sequence~$f_t(n)$: the number of nonequivalent compact Huffman codes of length~$n$ over an alphabet of $t$ letters, the number of `nonequivalent' canonical rooted $t$-ary trees (level-greedy trees) with $n$~leaves, the number of `proper' words, the number of bounded degree sequences, and the number of ways of writing $1= \frac{1}{t^{x_1}}+ \dots + \frac{1}{t^{x_n}}$ with integers $0 \leq x_1 \leq x_2 \leq \dots \leq x_n$. In this work, we show that one can compute this sequence for \textbf{all} $n<N$ with essentially one power series division. In total we need at most $N^{1+\varepsilon}$ additions and multiplications of integers of $cN$ bits, $c<1$, or $N^{2+\varepsilon}$ bit operations, respectively. This improves an earlier bound by Even and Lempel who needed $O(N^3)$ operations in the integer ring or $O(N^4)$ bit operations, respectively.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。