Skip to main content

Approximating Huffman Codes in Parallel

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

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

Included in the following conference series:

  • 2341 Accesses

Abstract

In this paper we present new results on the approximate parallel construction of Huffman codes. Our algorithm achieves linear work and logarithmic time, provided that the initial set of elements is sorted. This is the first parallel algorithm for that problem with the optimal time and work.

Combining our approach with the best known parallel sorting algorithms we can construct an almost optimal Huffman tree with optimal time and work. This also leads to the first parallel algorithm that constructs exact Huffman codes with maximum codeword length H in time O(H) and with n processors. This represents a useful improvement since most practical situations satisfy H = O(logn).

Research done in part while visiting Dept. of Computer Science, University of Bonn. Work partially supported by NSF grant CCR-9700053 and DFG grant Bo 56/157-1.

Work partially supported by DFG grants, DIMACS, and IST grant 14036 (RAND-APX).

Work partially supported by IST grant 14036 (RAND-APX).

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

Access this chapter

Subscribe and save

Springer+ Basic
$34.99 /Month
  • Get 10 units per month
  • Download Article/Chapter or eBook
  • 1 Unit = 1 Article or 1 Chapter
  • Cancel anytime
Subscribe now

Buy Now

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever

Tax calculation will be finalised at checkout

Purchases are for personal use only

Institutional subscriptions

Preview

Unable to display preview. Download preview PDF.

Unable to display preview. Download preview PDF.

Similar content being viewed by others

References

  1. Andersson, A., Hagerup, T., Nilsson, S. Raman, R. Sorting in Linear Time?, Journal of Computer and System Sciences 57 (1998), pp. 74–93

    Article  MATH  MathSciNet  Google Scholar 

  2. Bhatt, P., Diks, K., Hagerup, T, Prasad, V., T. Radzik, Saxena, S., Improved deterministic parallel integer sorting, Information and Computation 94 (1991), pp. 29–47.

    Article  MATH  MathSciNet  Google Scholar 

  3. Blelloch, G. Prefix Sums and Their Applications, Reif, J., ed, Synthesis of Parallel Algorithms, pp. 35–60, 1997.

    Google Scholar 

  4. Cole, R. Parallel Merge Sort, SIAM Journal on Computing 17 (1998), pp. 770–785.

    Article  MathSciNet  Google Scholar 

  5. Hagerup, T., Toward optimal parallel bucking sorting, Information and Computation 75 (1987), pp. 39–51.

    Article  MATH  MathSciNet  Google Scholar 

  6. Huffman, D. A. A method for construction of minimum redundancy codes, Proc. IRE, 40 (1951), pp. 1098–1101.

    Article  Google Scholar 

  7. Kirkpatrick, D., Przytycka, T. Parallel Construction of Binary Trees with Near Optimal Weighted Path Length, Algorithmica (1996), pp. 172–192.

    Google Scholar 

  8. Larmore, L.L., Przytycka. T., W. Rytter, Parallel Construction of Optimal Alphabetic Trees, Proc 5th ACM Symposium on Parallel Algorithms and Architectures (1993) pp. 214–223.

    Google Scholar 

  9. Larmore, L., Przytycka. T. Constructing Huffman trees in parallel, SIAM Journal on Computing, 24(6) (1995) pp. 1163–1169.

    Article  MATH  MathSciNet  Google Scholar 

  10. Miller, G., Reif., J., Parallel tree contraction and its applications, Proc. 26th Symposium on Foundations of Computer Science (1985), pp. 478–489.

    Google Scholar 

  11. Nekrich, Y., Byte-oriented Decoding of Canonical Huffman Codes, Proceedings of the IEEE International Symposium on Information Theory 2000, (2000), p. 371.

    Google Scholar 

  12. Nekrich, Y., Decoding of Canonical Huffman Codes with Look-Up Tables, Proceeding of the IEEE Data Compression Conference 2000, (2000) p. 342.

    Google Scholar 

  13. Teng, S., The construction of Huffman equivalent prefix code in NC, ACM SIGACT 18 (1987), pp. 54–61.

    Article  Google Scholar 

  14. Valiant, L. Parallelism in Comparison Problems, SIAM Journal on Com-puting 4 (1975),pp. 348–355.

    Article  MATH  MathSciNet  Google Scholar 

  15. van Leeuwen, J. On the construction of Huffman trees, In 3rd Int. Colloqium on Automata, Languages and Programming (1976), pp. 382–410.

    Google Scholar 

Download references

Author information

Authors and Affiliations

Authors

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2002 Springer-Verlag Berlin Heidelberg

About this paper

Cite this paper

Berman, P., Karpinski, M., Nekrich, Y. (2002). Approximating Huffman Codes in Parallel. In: Widmayer, P., Eidenbenz, S., Triguero, F., Morales, R., Conejo, R., Hennessy, M. (eds) Automata, Languages and Programming. ICALP 2002. Lecture Notes in Computer Science, vol 2380. Springer, Berlin, Heidelberg. https://doi.org/10.1007/3-540-45465-9_72

Download citation

  • DOI: https://doi.org/10.1007/3-540-45465-9_72

  • Published:

  • Publisher Name: Springer, Berlin, Heidelberg

  • Print ISBN: 978-3-540-43864-9

  • Online ISBN: 978-3-540-45465-6

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics