A DYNAMIC-PROGRAMMING ALGORITHM FOR CONSTRUCTING OPTIMAL PREFIX-FREE CODES WITH UNEQUAL LETTER COSTS

Authors
Citation
Mj. Golin et G. Rote, A DYNAMIC-PROGRAMMING ALGORITHM FOR CONSTRUCTING OPTIMAL PREFIX-FREE CODES WITH UNEQUAL LETTER COSTS, IEEE transactions on information theory, 44(5), 1998, pp. 1770-1781
Citations number
23
Categorie Soggetti
Computer Science Information Systems","Engineering, Eletrical & Electronic","Computer Science Information Systems
ISSN journal
00189448
Volume
44
Issue
5
Year of publication
1998
Pages
1770 - 1781
Database
ISI
SICI code
0018-9448(1998)44:5<1770:ADAFCO>2.0.ZU;2-2
Abstract
We consider the problem of constructing prefix-free codes of minimum c ost 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 i nteger linear programming. In this paper we introduce a new dynamic pr ogramming 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 o ne that runs in polynomial time for fixed letter costs.