Algorithmic counting of nonequivalent compact Huffman codes
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.
Cite
@article{arxiv.1901.11343,
title = {Algorithmic counting of nonequivalent compact Huffman codes},
author = {Christian Elsholtz and Clemens Heuberger and Daniel Krenn},
journal= {arXiv preprint arXiv:1901.11343},
year = {2024}
}