Skip to main content

A fast and space-economical algorithm for length-limited coding

  • Session 1
  • Conference paper
  • First Online:
Algorithms and Computations (ISAAC 1995)

Part of the book series: Lecture Notes in Computer Science ((LNCS,volume 1004))

Included in the following conference series:

Abstract

The minimum-redundancy prefix code problem is to determine a list of integer codeword lengths l=[l i¦{1... n}], given a list of n symbol weights p=[pi¦{1...n}], such that \(\sum\nolimits_{i = 1}^n {2^{ - l_i } } \leqslant 1\), and \(\sum\nolimits_{i = 1}^n {l_i p_i }\) l ipi is minimised. An extension is the minimum-redundancy length-limited prefix code problem, in which the further constraint l i≤L is imposed, for all i ε {1... n} and some integer L≥[log2 n]. The package-merge algorithm of Larmore and Hirschberg generates length-limited codes in O(nL) time using O(n) words of auxiliary space. Here we show how the size of the work space can be reduced to O(L2). This represents a useful improvement, since for practical purposes L is Θ(log n).

This is a preview of subscription content, log in via an institution to check access.

Access this chapter

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

References

  1. T.C. Hu and K.C. Tan. Path length of binary search trees. SIAM Journal of Applied Mathematics, 22(2):225–234, March 1972.

    Google Scholar 

  2. D.A. Huffman. A method for the construction of minimum-redundancy codes. Proc. Inst. Radio Engineers, 40(9):1098–1101, September 1952.

    Google Scholar 

  3. L.L. Larmore and D.S. Hirschberg. A fast algorithm for optimal length-limited Huffman codes. Journal of the ACM, 37(3):464–473, July 1990.

    Google Scholar 

  4. L.L. Larmore and T.M. Przytycka. Constructing Huffman trees in parallel. SIAM Journal on Computing. To appear.

    Google Scholar 

  5. A. Moffat and J. Katajainen. In-place calculation of minimum-redundancy codes. In Proc. Workshop on Algorithms and Data Structures, Kingston University, Canada, August 1995. Springer-Verlag. To appear.

    Google Scholar 

  6. A. Moffat, A. Turpin, and J. Katajainen. Space-efficient construction of optimal prefix codes. In Proc. IEEE Data Compression Conference, pages 192–201, Snowbird, Utah, March 1995. IEEE Computer Society Press, Los Alamitos, California.

    Google Scholar 

  7. B. Schieber. Computing a minimum-weight k-link path in graphs with the concave Monge property. In Proc. 6th Ann. Symp. Discrete Algorithms, pages 405–411, San Francisco, California, January 1995. SIAM, Philadelphia, Pennsylvania.

    Google Scholar 

  8. J. van Leeuwen. On the construction of Huffman trees. In Proc. 3rd International Colloquium on Automata, Languages, and Programming, pages 382–410, Edinburgh University, Scotland, July 1976.

    Google Scholar 

  9. D.C. Van Voorhis. Constructing codes with bounded codeword lengths. IEEE Transactions on Information Theory, IT-20(2):288–290, March 1974.

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

John Staples Peter Eades Naoki Katoh Alistair Moffat

Rights and permissions

Reprints and permissions

Copyright information

© 1995 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Katajainen, J., Moffat, A., Turpin, A. (1995). A fast and space-economical algorithm for length-limited coding. In: Staples, J., Eades, P., Katoh, N., Moffat, A. (eds) Algorithms and Computations. ISAAC 1995. Lecture Notes in Computer Science, vol 1004. Springer, Berlin, Heidelberg. https://doi.org/10.1007/BFb0015404

Download citation

  • DOI: https://doi.org/10.1007/BFb0015404

  • Published:

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-60573-7

  • Online ISBN: 978-3-540-47766-2

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics