Papers
Topics
Authors
Recent
Gemini 2.5 Flash
Gemini 2.5 Flash
167 tokens/sec
GPT-4o
7 tokens/sec
Gemini 2.5 Pro Pro
42 tokens/sec
o3 Pro
4 tokens/sec
GPT-4.1 Pro
38 tokens/sec
DeepSeek R1 via Azure Pro
28 tokens/sec
2000 character limit reached

Algorithmic counting of nonequivalent compact Huffman codes (1901.11343v4)

Published 31 Jan 2019 in math.CO, cs.CC, cs.DM, and cs.SC

Abstract: 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 ofproper' 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(N3)$ operations in the integer ring or $O(N4)$ bit operations, respectively.

Summary

We haven't generated a summary for this paper yet.