Skip to main content

Prefix codes: Equiprobable words, unequal letter costs

  • Conference paper
  • First Online:
Automata, Languages and Programming (ICALP 1994)

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

Included in the following conference series:

Abstract

We consider the following variant of Huffman coding in which the costs of the letters, rather than the probabilities of the words, are non-uniform: Given an alphabet of unequal-length letters, find a minimum-average-length prefix-free set of n codewords over the alphabet. We show new structural properties of such codes, leading to an O(n log2 r) time algorithm for finding them. This new algorithm is simpler and faster than the previously best known O(nr min{log n, r}) one due to Perl, Garey, and Even [5].

Partially supported by HK RGC Competitive Research Grant HKUST 181/93E.

Partially supported by NSF grants CCR-8906949 and CCR-9111348.

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. Doris Altenkamp and Kurt Melhorn. Codes: Unequal probabilies, unequal letter costs. Journal of the Association for Computing Machinery, 27(3):412–427, July 1980.

    Google Scholar 

  2. D. A. Huffman. A method for the construction of minimum redundancy codes. In Proc. IRE 40, volume 10, pages 1098–1101], September 1952.

    Google Scholar 

  3. Richard Karp. Minimum-redundancy coding for the discrete noiseless channel. IRE Transactions on Information Theory, January 1961.

    Google Scholar 

  4. Donald E. Knuth. The Art of Computer Programming, Volume III: Sorting and Searching Addison-Wesley, Reading, Mass., 1973.

    Google Scholar 

  5. Y. Perl, M. R. Garey, and S. Even. Efficient generation of optimal prefix code: Equiprobable words using unequal cost letters. Journal of the Association for Computing Machinery, 22(2):202–214, April 1975.

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Serge Abiteboul Eli Shamir

Rights and permissions

Reprints and permissions

Copyright information

© 1994 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Golin, M.J., Young, N. (1994). Prefix codes: Equiprobable words, unequal letter costs. In: Abiteboul, S., Shamir, E. (eds) Automata, Languages and Programming. ICALP 1994. Lecture Notes in Computer Science, vol 820. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-58201-0_102

Download citation

  • DOI: https://doi.org/10.1007/3-540-58201-0_102

  • Published:

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-58201-4

  • Online ISBN: 978-3-540-48566-7

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics