DZone

Huffman Coding: Why Do I Care?

Have you ever wanted to know:

  • How do we compress something, without losing any data?
  • Why do some things compress better than others?
  • How does GZIP work?

In 5 Minutes or Less

Suppose we want to compress a string (Huffman coding can be used with any data, but strings make good examples).

Source: DZone