Skip to main content

Part of the book series: The Kluwer International Series in Engineering and Computer Science ((SECS,volume 52))

  • 194 Accesses

Abstract

It is clear from the previous chapter (in particular from (4.5) and (4.6)) that the security of a cryptosystem can be increased by reducing the redundancy in the plaintext. In Example 4.1 such a reduction has been demonstrated. In this chapter we shall describe a general method for what is called data compression or source coding. Let a (plaintext) source S output independently chosen symbols from the set {m1,m2, …, mn}, with respective probabilities p1, p2, …, pn. A symbol mi, 1 ≤ in, will be encoded into a binary string ci of length li.The set {c1,c2, …, cn} is called a code C for the source S. The idea of data compression is to use such a code that the expected value of the length of the encoded plaintext is minimal. Since the output symbols are independent we have to minimize the expected length per symbol

$$ L = \sum\limits_i -1^n p_il_i$$
((5.1))

over all possible codes C for the source S. There is however an additional constraint. One has to be able to retrieve the individual messages from the concatenation of the succesive codewords. Not every code has this property. Indeed let C = {0,01, 10}. The sequence 010 can be made in two ways: 0 followed by 10 and 01 followed by 0. This ambiguity has to be avoided.

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

Access this chapter

Chapter
USD 29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD 84.99
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD 109.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info
Hardcover Book
USD 109.99
Price excludes VAT (USA)
  • Durable hardcover edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

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.

Author information

Authors and Affiliations

Authors

Rights and permissions

Reprints and permissions

Copyright information

© 1988 Kluwer Academic Publishers

About this chapter

Cite this chapter

van Tilborg, H.C.A. (1988). Huffman Codes. In: An Introduction to Cryptology. The Kluwer International Series in Engineering and Computer Science, vol 52. Springer, Boston, MA. https://doi.org/10.1007/978-1-4613-1693-0_5

Download citation

  • DOI: https://doi.org/10.1007/978-1-4613-1693-0_5

  • Publisher Name: Springer, Boston, MA

  • Print ISBN: 978-1-4612-8955-5

  • Online ISBN: 978-1-4613-1693-0

  • eBook Packages: Springer Book Archive

Publish with us

Policies and ethics