Incremental Calculation of Minimum-Redundancy Length-Restricted Codes

  • Authors:
  • Mike Liddell;Alistair Moffat

  • Affiliations:
  • -;-

  • Venue:
  • DCC '02 Proceedings of the Data Compression Conference
  • Year:
  • 2002

Quantified Score

Hi-index 0.00

Visualization

Abstract

The package-merge strategy of Larmore and Hirschberg [1990] is the foundation of practical solutions to the minimum-redundancy length-restricted prefix coding problem. Existing algorithms which use the package-merge strategy exhibit their poorest performance when the length-restriction, L, is close to H, the longest codeword length appearing in an unrestricted code. We present a package-merge based algorithm for generating minimum-redundancy length-restricted codes which has asymptotic time and space complexity of O((H-L+1) n), where n is the number of symbols in the input. Thus, our algorithm achieves best performance when L is close to H. A point of interest is that the new algorithm first constructs an unrestricted minimum-redundacy code to gain a head-start on the original package-merge algorithm.