• DocumentCode
    1410153
  • 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
  • Volume
    44
  • Issue
    5
  • fYear
    1998
  • fDate
    9/1/1998 12:00:00 AM
  • Firstpage
    1770
  • Lastpage
    1781
  • 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;
  • fLanguage
    English
  • Journal_Title
    Information Theory, IEEE Transactions on
  • Publisher
    ieee
  • ISSN
    0018-9448
  • Type

    jour

  • DOI
    10.1109/18.705558
  • Filename
    705558