Data Compression Basic Concepts of Data Compression Data Compression
Data Compression Basic Concepts of Data Compression Data Compression
Basic
Concepts of Data Compression . Data
compression algorithms.
Review ● Relative entropy
● Mutual information
● Properties of mutual
information
● Relationship between entropy
and mutual information
● Chain rule for
entropy,relative entropy and
mutual information
● Source coding
● Channel coding
Plan ●
●
Data compression
Basic concepts of data
compression
● Uniquely decodable codes
● Prefix codes
● Algorithm to test uniquely
decodable codes
● Properties of prefix code
● Shannon Fano coding
Why compression?
Consider {0,01,11}
● Dangling suffix is 1 from 0 and 01
● New list: {0,01,11,1}
● Dangling suffix is 1 (from 0 and 01, and also 1 and 11), and
is already included in previous iteration.
● Since the dangling suffix is not a codeword, {0,01, 11} is
uniquely decodable
Example
Consider {0,01,10}
Here l_k is the codeword length of the k-th symbol s_k. And K is the total number of symbols in
alphabet.
Properties of prefix code
2.
Shannon Fano coding
2. Partition the set into two sets that are as close to equiprobables
as possible, and assign 0 to the upper set 1 to the lower set.