Professional Documents
Culture Documents
Presentation
Topics :
1) Source Coding & Theorems,
2) Prefix Coding & Huffman Codes,
3) Mutual Information & Channel Capacity Concepts
Source Coding & Theorems
Definition of terms:
coding- assignment of binary sequences to the alphabet.
code- set of binary sequence.
codeword- individual member of the code.
alphabet- collection of letters or symbols.
Example
code word
a1 - 0
a2 - 1
alphabet a3 - 10 code
a4 - 11
• any variable length encoding scheme(a coding scheme which uses
code words of varying lengths for encoding the various symbols)
that has the important property that no code word is a prefix of
another.
• eg In a prefix code, if the character 'a' is encoded as 0 then no
other character has a code that starts with 0.
Prefix:
a→010
b→01011
we can say that 'a' is a prefix of 'b' because 010 of 'a' marks the start
of 01011 of 'b'. 010 is the prefix of 'b' and 11 is the dangling suffix
because it does not match.
Desirable Properties of Symbol Codes:
1. efficiency→getting good compression.
2. speed→fast so that we encode and decode quickly.
3. simplicity→ understand easily and implement easily in algorithm.
Determining if a code is a prefix code or not:
1. a1→0 2. a1 → 0
a2→1 a2 → 10
a3→10 a3 → 110
a4→11 a4 → 111
• if all letters are at the external node of the tree then it is a prefix code.
• external nodes are leaf nodes and internal nodes are not leaf nodes.
• if a cdeword is a prefix of another code word then it would be on the
path to the code word required
Uniquely Decodable Code