For Sync Class - Module 7 - 3TSY2223
For Sync Class - Module 7 - 3TSY2223
COMMUNICATIONS 2
Chapter 7
Source Coding
• Baudot Code
• ASCII Code
• EBCDIC Code
• The first fixed-length character code, which is also
known as Telex code
Characters a b c d e
Probability (%) 20 15 5 15 45
n4 (100)
0 1
n3 (55) e (45)
0 1
n2 (35) n1 (20)
0 1 0 1
a (20) b (15) c (5) d (15) e (45)
Given the probability distribution of 5 letters, implement
Huffman coding to generate the optimal variable-length prefix
code.
Characters a b c d e
Probability (%) 20 15 5 15 45
Huffman Code 000 001 010 011 1
• Named after by Claude Shannon and Robert Fano
Characters a b c d e
Probability (%) 22 28 15 30 5
Xi P(Xi) [%] Stage 1 Stage 2 Stage 3 Code
D 30 0 0 00
58
B 28 0 1 01
A 22 1 22 0 10
C 15 42 1 1 0 110
20
E 5 1 1 1 111
Given the frequency distribution of 5 letters, implement
Shannon-Fano coding perform compression:
Characters a b c d e
Probability (%) 22 28 15 30 5
Shannon-
10 01 110 00 111
Fano Code
Additional Example
[1] Ampoloquio, J. M. (2005). Self-Sufficient Guide to Electronic Communications Engineering.
[2] Beasley, Jeffrey. (2014) Electronic Communications. Pearson.
[3] Frenzel, Louis. (2016) Principles of Electronic Communication Systems. Mc Graw Hill Higher
Education. 4th Edition
[4] Gupta. (2016) An Integrated Course in Electronics and Communication Engineering. S. K. Kataria
& Sons
[5] Ha, Tri. T. (2011) Theory and Design of Digital Communication Systems. Cambridge University
Press
[6] Meadows, Jennifer H. (2018) Communication Technology Update and Fundamentals. Routledge.
[7] Rice, Michael. (2018) Digital Communications: A Discrete-Time Approach
[8] Sharma, Sanjay. (2015) Digital Communications. S. K. Kataria & Sons
[9] Sklar, Bernard. (2009) Digital Communications: Fundamentals and Applications. Aitbs India. 2nd
Edition
[10] Tomasi, W. (2014). Advanced Electronic Communications Systems. Harlow: Pearson Education
Limited.
QUESTIONS?