A fast algorithm for optimal length-limited Huffman codes

  • Authors:
  • Lawrence L. Larmore;Daniel S. Hirschberg

  • Affiliations:
  • Univ. of California at Irvine;Univ. of California at Irvine

  • Venue:
  • Journal of the ACM (JACM)
  • Year:
  • 1990

Quantified Score

Hi-index 0.07

Visualization

Abstract

An O(nL)-time algorithm is introduced for constructing an optimal Huffman code for a weighted alphabet of size n, where each code string must have length no greater than L. The algorithm uses O(n) space.