Table of Contents
Fetching ...

Algorithmic counting of nonequivalent compact Huffman codes

Christian Elsholtz, Clemens Heuberger, Daniel Krenn

TL;DR

In this work, it is shown that one can compute this sequence for all n<N n < N with essentially one power series division.

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 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.

Algorithmic counting of nonequivalent compact Huffman codes

TL;DR

In this work, it is shown that one can compute this sequence for all n<N n < N with essentially one power series division.

Abstract

It is known that the following five counting problems lead to the same integer sequence~: the number of nonequivalent compact Huffman codes of length~ over an alphabet of letters, the number of `nonequivalent' canonical rooted -ary trees (level-greedy trees) with ~leaves, the number of `proper' words, the number of bounded degree sequences, and the number of ways of writing with integers . In this work, we show that one can compute this sequence for \textbf{all} with essentially one power series division. In total we need at most additions and multiplications of integers of bits, , or bit operations, respectively. This improves an earlier bound by Even and Lempel who needed operations in the integer ring or bit operations, respectively.

Paper Structure

This paper contains 8 sections, 3 theorems, 34 equations, 1 table, 2 algorithms.

Key Result

Theorem 1

Calculating the first $N$ terms of $\f{g_t}{n}$ can be done with power series operations, operations in the ring of integers, and with bit operations.

Theorems & Definitions (8)

  • Theorem 1
  • Lemma 4.1
  • proof
  • Lemma 4.2
  • proof
  • proof : Proof of Theorem \ref{['thm:extract-coeff']}
  • Remark 6.1
  • Remark 6.2