Title :
A dynamic programming algorithm for constructing optimal prefix-free codes with unequal letter costs
Author :
Golin, Mordecai J. ; Rote, Gunter
Author_Institution :
Dept. of Comput. Sci., Hong Kong Univ., Hong Kong
fDate :
9/1/1998 12:00:00 AM
Abstract :
We consider the problem of constructing prefix-free codes of minimum cost when the encoding alphabet contains letters of unequal length. The complexity of this problem has been unclear for thirty years with the only algorithm known for its solution involving a transformation to integer linear programming. We introduce a new dynamic programming solution to the problem. It optimally encodes n words in O(n C+2) time, if the costs of the letters are integers between 1 and C. While still leaving open the question of whether the general problem is solvable in polynomial time, our algorithm seems to be the first one that runs in polynomial time for fixed letter costs
Keywords :
Huffman codes; computational complexity; dynamic programming; polynomials; trees (mathematics); Huffman encoding algorithm; dynamic programming algorithm; encoding alphabet contains; fixed letter costs; graphs; integer linear programming; minimum cost; optimal prefix-free codes; polynomial time solution; trees; unequal length letters; unequal letter costs; Automata; Automatic programming; Computer science; Cost function; Dynamic programming; Frequency; Heuristic algorithms; Integer linear programming; Polynomials; Radio access networks;
Journal_Title :
Information Theory, IEEE Transactions on