The generic Huffman-encoding problem of finding a minimum cost prefix free code is almost completely understood. There still exist many variants of this problem which are not as well understood, though. One such variant, requiring that each of the codewords ends with "1", has previously been introduced in the literature with the best algorithms known for finding such codes running in exponential time. We develop a simple O(n/sup 3/) time algorithm for solving the problem.
['Szelok Chan', 'Mordecai J. Golin']
A dynamic programming algorithm for constructing optimal "1"-ended binary prefix-free codes