Lecture 6
Lecture 6
Section 001
Introduction to Information
Technology
Lecture #6
Overview
Chapter 7: Compression
Introduction
Entropy
Huffman coding
Universal coding
Introduction
World Wide Web not World Wide Wait
Compression techniques can significantly reduce the bandwidth and
memory required for sending, receiving, and storing data.
Most computers are equipped with modems that compress or
decompress all information leaving or entering via the phone line.
With a mutually recognized system (e.g. WinZip) the amount of data
can be significantly diminished.
Examples of compression techniques:
Compressing BINARY DATA STREAMS
Variable length coding (e.g. Huffman coding)
VIDEO COMPRESSION
MPEG
Why can we compress information?
“Ask not what your country can do for you - ask what you can do for your country.”
compression techniques.
A Little Probability
Huffman Coding
Leaves
Huffman Code Construction
First list all events in descending order of probability.
Pair the two events with lowest probabilities and add their
probabilities.
0.15
0.25 0.15
0.4
0.25 0.15
0.6 0.4
0.25 0.15
0 1
0.6 0.4
0 1
0.25 0.15
0 1
0 1 0 1