Algorithmic counting of nonequivalent compact Huffman codes

Abstract

It is known that the following five counting problems lead to the same integer sequence~ft(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= 1tx1+ … + 1txn with integers 0 ≤ x1 ≤ x2 ≤ … ≤ xn. In this work, we show that one can compute this sequence for all n<N with essentially one power series division. In total we need at most N1+ additions and multiplications of integers of cN bits, c<1, or N2+ 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.

0

Turn this paper into a lesson

ArcXiv compiles a structured reading guide from this paper's metadata: plain-English importance, contributions, prerequisite concepts, which sections to read first, flashcards, and a quiz. Grounded in the abstract, never invented.

Discussion (0)

Sign in to join the discussion.

Loading comments…