SlideShare a Scribd company logo
1 of 32
UNIT IV
SOURCE AND ERROR CONTROL CODING
Entropy, Source encoding theorem,
Shannon fano coding, Huffman coding,
mutual information, channel capacity,
Error Control Coding, linear block codes,
cyclic codes - ARQ Techniques.
UNIT IV
SOURCE AND ERROR CONTROL CODING
Information Theory
Mathematical modeling and analysis of a communication
system
Signal Compression and data rate
Entropy and channel capacity
Entropy – Probabilistic behavior of source
Capacity – Ability to convey information
Mutual Information
I(x,y) = H(x)-H(x/y)
I(y,x) = H(y)-H(y/x)
Properties
1. Symmetric ie I(x,y) = I(y,x)
2. Always non negative
3. I(x,y) = H(x)+H(y)-H(x,y)
UNIT IV
SOURCE AND ERROR CONTROL CODING
Channel Capacity
Maximum mutual information in any single use of a channel
C= maxP(xj) I(x,y)
UNIT IV
SOURCE AND ERROR CONTROL CODING
Automatic Repeat Request
Stop and Wait
Continuous ARQ with pullback
Continuous ARQ with selective repeat
UNIT IV
SOURCE AND ERROR CONTROL CODING
Trellis diagram
a a
b b
c c
d d
m2,m
1
m X1=m X2=
m+m1+m2
X3=
m+m2
m1,
m
00 a
0 0 0+0+0= 0 0+0=0 00 a
1 1 1+0+0=1 1+0=1 01 b
01 b
0 0 1 0 10 c
1 1 0 1 11 d
10 c
0 0 1 1 00 a
1 1 0 0 01 b
11 d
0 0 0 1 10 c
1 1 1 0 11 d
State Diagram
b
a d
c
000
001
010
011
100
101
110
111
a
a
b
0
1
c
d
0
1
a
b
0
1
a
b
0
1
c
d
0
1
a
b
0
1
c
d
0
1
Entropy = pklog2(1/pk) where k ranges 1 to 6
= p1log2(1/p1) + p2log2(1/p2) + p3log2(1/p3) +….
p6log2(1/p6)
= 0.3log2(1/0.3) + 0.1log2(1/0.1) +
I R = H* No of symbols
= H*500
= H*9600
Find code efficiency using SF and HM code for the source messages m1= 0.4,
m2= 0.15, m3=0.15, m4=0.15, m5 = 0.15
SF CODE
STEP 1 STEP 2 STEP 3 STEP 4
M1 0.4 M1 0.4 0.4 0 0
M2 0.15 M2 0.15 0.15 1 0.15 0 0.15 0 100
M3 0.15 M3 0.15 0.15 1 0.15 0 0.15 1 101
M4 0.15 M4 0.15 0.15 1 0.15 1 0.15 0 110
M5 0.15 M5 0.15 0.15 1 0.15 1 0.15 1 111
HM CODE
STEP 1 STEP 2 STEP 3 STEP 4 STEP 4
M1 0.4 M1 0.4 0.4 0.4 0.4 0.6 0 1 1
M2 0.15 M2 0.15 0.15 0.3 0.3 0 0.4 1 010 010
M3 0.15 M3 0.15 0.15 0.15 0 0.3 1 110 011
M4 0.15 M4 0.15 0.15 0 0.15 1 000 000
M5 0.15 M5 0.15 0.15 1 100 001
Code Efficiency = Entropy/N
Entropy = pklog2(1/pk)
= p1log2(1/p1)+ p2log2(1/p2)+ p3log2(1/p3)+ p4log2(1/p4)+
p5log2(1/p5)
= 0.4log2(1/0.4)+ 0.15log2(1/0.15)+ 0.15log2(1/0.15)+
0.15log2(1/0.15)+ 0.15log2(1/0.15)
= 2.171
SF Code
N = pknk
= p1n1+ p2n2+ p3n3+ p4n4+ p5n5
= 0.4*1+0.15*3+0.15*3+0.15*3+0.15*3
= 2.2
HM Code
N = pknk
= p1n1+ p2n2+ p3n3+ p4n4+ p5n5
= = 0.4*1+0.15*3+0.15*3+0.15*3+0.15*3
= 2.2
Code efficiency for SF = 0.9868 = 0.9868*100=
98.68 %
Code efficiency for HM = 0.9868 = 98.68 %
M1 M2 M3
G1 = 100, G2 = 111, G3 = 101
G1
G2 G3
Output
Present
State
M3M2
M1 X1 = M1 X2 =
m1+m2+
m3
X3 =
m1+m3
Next
State
M2M1
00 0 0 0 0 00
1 1 1 1 01
01 0 0 1 0 10
1 1 0 1 11
10 0 0 1 1 00
1 1 0 0 01
11 0 0 0 1 10
1 1 1 0 11
Trellis Diagram
Present State Next State
A=00
B=01
C=10
D=11
A=00
B=01
C=10
D=11
0/000
1/111
0/010
1/101
0/011
1/100
0/001
1/110
State diagram
A
B
C
D
0/000
1/111
0/010
1/101
0/011
1/100
0/001
1/110
Code Tree
a
0
1
a
b
0
a
b
1 0
1
c
d

More Related Content

Similar to EC8394 ANALOG AND DIGITAL COMMUNICATION UNIT IV

Lecture 5 from virtual university of pakistan
Lecture 5 from virtual university of pakistanLecture 5 from virtual university of pakistan
Lecture 5 from virtual university of pakistan
Saba Hanif
 
Automated Traffic Control System
Automated Traffic Control SystemAutomated Traffic Control System
Automated Traffic Control System
Kondala Rao Puvvadi
 
Pic18 f4520 and robotics
Pic18 f4520 and roboticsPic18 f4520 and robotics
Pic18 f4520 and robotics
Siddhant Chopra
 
Computer archi&mp
Computer archi&mpComputer archi&mp
Computer archi&mp
MSc CST
 
Sampling and Reconstruction (Online Learning).pptx
Sampling and Reconstruction (Online Learning).pptxSampling and Reconstruction (Online Learning).pptx
Sampling and Reconstruction (Online Learning).pptx
HamzaJaved306957
 

Similar to EC8394 ANALOG AND DIGITAL COMMUNICATION UNIT IV (16)

Misura scariche parziali nei macchinari rotanti - Analizzatori Portatili
Misura scariche parziali nei macchinari rotanti - Analizzatori PortatiliMisura scariche parziali nei macchinari rotanti - Analizzatori Portatili
Misura scariche parziali nei macchinari rotanti - Analizzatori Portatili
 
Lecture 5 from virtual university of pakistan
Lecture 5 from virtual university of pakistanLecture 5 from virtual university of pakistan
Lecture 5 from virtual university of pakistan
 
Automated Traffic Control System
Automated Traffic Control SystemAutomated Traffic Control System
Automated Traffic Control System
 
Pic18 f4520 and robotics
Pic18 f4520 and roboticsPic18 f4520 and robotics
Pic18 f4520 and robotics
 
Networks lab manual ecp62
Networks lab manual ecp62Networks lab manual ecp62
Networks lab manual ecp62
 
Improved Reliable Streaming Processing: Apache Storm as example
Improved Reliable Streaming Processing: Apache Storm as exampleImproved Reliable Streaming Processing: Apache Storm as example
Improved Reliable Streaming Processing: Apache Storm as example
 
Computer aided design of communication systems / Simulation Communication Sys...
Computer aided design of communication systems / Simulation Communication Sys...Computer aided design of communication systems / Simulation Communication Sys...
Computer aided design of communication systems / Simulation Communication Sys...
 
PR-252: Making Convolutional Networks Shift-Invariant Again
PR-252: Making Convolutional Networks Shift-Invariant AgainPR-252: Making Convolutional Networks Shift-Invariant Again
PR-252: Making Convolutional Networks Shift-Invariant Again
 
Acquisition of Long Pseudo Code in Dsss Signal
Acquisition of Long Pseudo Code in Dsss SignalAcquisition of Long Pseudo Code in Dsss Signal
Acquisition of Long Pseudo Code in Dsss Signal
 
Discussion on 8080 Microprocessor_r1 - Everyting you need to know.pptx
Discussion on 8080 Microprocessor_r1 - Everyting you need to know.pptxDiscussion on 8080 Microprocessor_r1 - Everyting you need to know.pptx
Discussion on 8080 Microprocessor_r1 - Everyting you need to know.pptx
 
"Evaluation of the Hilbert Huang transformation of transient signals for brid...
"Evaluation of the Hilbert Huang transformation of transient signals for brid..."Evaluation of the Hilbert Huang transformation of transient signals for brid...
"Evaluation of the Hilbert Huang transformation of transient signals for brid...
 
Transformer protection from inrush currents: Discrimination of internal fault...
Transformer protection from inrush currents: Discrimination of internal fault...Transformer protection from inrush currents: Discrimination of internal fault...
Transformer protection from inrush currents: Discrimination of internal fault...
 
Computer archi&mp
Computer archi&mpComputer archi&mp
Computer archi&mp
 
Robust and Tuneable Family of Gossiping Algorithms
Robust and Tuneable Family of Gossiping AlgorithmsRobust and Tuneable Family of Gossiping Algorithms
Robust and Tuneable Family of Gossiping Algorithms
 
Project lfsr
Project lfsrProject lfsr
Project lfsr
 
Sampling and Reconstruction (Online Learning).pptx
Sampling and Reconstruction (Online Learning).pptxSampling and Reconstruction (Online Learning).pptx
Sampling and Reconstruction (Online Learning).pptx
 

More from ManojKumar791621 (8)

EC8395 COMMUNICATION ENGINEERING UNIT III
EC8395   COMMUNICATION ENGINEERING UNIT IIIEC8395   COMMUNICATION ENGINEERING UNIT III
EC8395 COMMUNICATION ENGINEERING UNIT III
 
EC8395 COMMUNICATION ENGINEERING UNIT II
EC8395 COMMUNICATION ENGINEERING UNIT IIEC8395 COMMUNICATION ENGINEERING UNIT II
EC8395 COMMUNICATION ENGINEERING UNIT II
 
EC8395 COMMUNICATION ENGINEERING UNIT I
EC8395  COMMUNICATION ENGINEERING UNIT IEC8395  COMMUNICATION ENGINEERING UNIT I
EC8395 COMMUNICATION ENGINEERING UNIT I
 
EC8395 COMMUNICATION ENGINEERING UNIT V
EC8395 COMMUNICATION ENGINEERING UNIT V EC8395 COMMUNICATION ENGINEERING UNIT V
EC8395 COMMUNICATION ENGINEERING UNIT V
 
EC8394 MULTI USER RADIO COMMUNICATION UNIT V
EC8394  MULTI USER RADIO COMMUNICATION UNIT VEC8394  MULTI USER RADIO COMMUNICATION UNIT V
EC8394 MULTI USER RADIO COMMUNICATION UNIT V
 
EC8394 - ANALOG AND DIGITAL COMMUNICAYION UNIT III
EC8394 - ANALOG AND DIGITAL COMMUNICAYION UNIT IIIEC8394 - ANALOG AND DIGITAL COMMUNICAYION UNIT III
EC8394 - ANALOG AND DIGITAL COMMUNICAYION UNIT III
 
EC8394- ANALOG AND DIGITAL COMMUNICATION unit II
EC8394- ANALOG AND DIGITAL COMMUNICATION  unit IIEC8394- ANALOG AND DIGITAL COMMUNICATION  unit II
EC8394- ANALOG AND DIGITAL COMMUNICATION unit II
 
Ec8394 - Analog and Digital Communication unit I
Ec8394 - Analog and Digital Communication  unit IEc8394 - Analog and Digital Communication  unit I
Ec8394 - Analog and Digital Communication unit I
 

Recently uploaded

Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoorTop Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
dharasingh5698
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
dollysharma2066
 

Recently uploaded (20)

ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdfONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
ONLINE FOOD ORDER SYSTEM PROJECT REPORT.pdf
 
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
VIP Model Call Girls Kothrud ( Pune ) Call ON 8005736733 Starting From 5K to ...
 
Unleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leapUnleashing the Power of the SORA AI lastest leap
Unleashing the Power of the SORA AI lastest leap
 
University management System project report..pdf
University management System project report..pdfUniversity management System project report..pdf
University management System project report..pdf
 
Unit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdfUnit 1 - Soil Classification and Compaction.pdf
Unit 1 - Soil Classification and Compaction.pdf
 
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
Navigating Complexity: The Role of Trusted Partners and VIAS3D in Dassault Sy...
 
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...Bhosari ( Call Girls ) Pune  6297143586  Hot Model With Sexy Bhabi Ready For ...
Bhosari ( Call Girls ) Pune 6297143586 Hot Model With Sexy Bhabi Ready For ...
 
2016EF22_0 solar project report rooftop projects
2016EF22_0 solar project report rooftop projects2016EF22_0 solar project report rooftop projects
2016EF22_0 solar project report rooftop projects
 
Double Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torqueDouble Revolving field theory-how the rotor develops torque
Double Revolving field theory-how the rotor develops torque
 
A Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna MunicipalityA Study of Urban Area Plan for Pabna Municipality
A Study of Urban Area Plan for Pabna Municipality
 
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced LoadsFEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
FEA Based Level 3 Assessment of Deformed Tanks with Fluid Induced Loads
 
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoorTop Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
Top Rated Call Girls In chittoor 📱 {7001035870} VIP Escorts chittoor
 
Minimum and Maximum Modes of microprocessor 8086
Minimum and Maximum Modes of microprocessor 8086Minimum and Maximum Modes of microprocessor 8086
Minimum and Maximum Modes of microprocessor 8086
 
Thermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.pptThermal Engineering -unit - III & IV.ppt
Thermal Engineering -unit - III & IV.ppt
 
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
(INDIRA) Call Girl Bhosari Call Now 8617697112 Bhosari Escorts 24x7
 
Block diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.pptBlock diagram reduction techniques in control systems.ppt
Block diagram reduction techniques in control systems.ppt
 
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
Hazard Identification (HAZID) vs. Hazard and Operability (HAZOP): A Comparati...
 
Design For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the startDesign For Accessibility: Getting it right from the start
Design For Accessibility: Getting it right from the start
 
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
FULL ENJOY Call Girls In Mahipalpur Delhi Contact Us 8377877756
 
Generative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPTGenerative AI or GenAI technology based PPT
Generative AI or GenAI technology based PPT
 

EC8394 ANALOG AND DIGITAL COMMUNICATION UNIT IV

  • 1. UNIT IV SOURCE AND ERROR CONTROL CODING Entropy, Source encoding theorem, Shannon fano coding, Huffman coding, mutual information, channel capacity, Error Control Coding, linear block codes, cyclic codes - ARQ Techniques.
  • 2. UNIT IV SOURCE AND ERROR CONTROL CODING Information Theory Mathematical modeling and analysis of a communication system Signal Compression and data rate Entropy and channel capacity Entropy – Probabilistic behavior of source Capacity – Ability to convey information
  • 3. Mutual Information I(x,y) = H(x)-H(x/y) I(y,x) = H(y)-H(y/x) Properties 1. Symmetric ie I(x,y) = I(y,x) 2. Always non negative 3. I(x,y) = H(x)+H(y)-H(x,y) UNIT IV SOURCE AND ERROR CONTROL CODING
  • 4. Channel Capacity Maximum mutual information in any single use of a channel C= maxP(xj) I(x,y) UNIT IV SOURCE AND ERROR CONTROL CODING
  • 5. Automatic Repeat Request Stop and Wait Continuous ARQ with pullback Continuous ARQ with selective repeat UNIT IV SOURCE AND ERROR CONTROL CODING
  • 6.
  • 7.
  • 8.
  • 9.
  • 10.
  • 11.
  • 12.
  • 13.
  • 14.
  • 15.
  • 16.
  • 17.
  • 18.
  • 19.
  • 20.
  • 21. Trellis diagram a a b b c c d d m2,m 1 m X1=m X2= m+m1+m2 X3= m+m2 m1, m 00 a 0 0 0+0+0= 0 0+0=0 00 a 1 1 1+0+0=1 1+0=1 01 b 01 b 0 0 1 0 10 c 1 1 0 1 11 d 10 c 0 0 1 1 00 a 1 1 0 0 01 b 11 d 0 0 0 1 10 c 1 1 1 0 11 d
  • 24. Entropy = pklog2(1/pk) where k ranges 1 to 6 = p1log2(1/p1) + p2log2(1/p2) + p3log2(1/p3) +…. p6log2(1/p6) = 0.3log2(1/0.3) + 0.1log2(1/0.1) + I R = H* No of symbols = H*500 = H*9600
  • 25. Find code efficiency using SF and HM code for the source messages m1= 0.4, m2= 0.15, m3=0.15, m4=0.15, m5 = 0.15 SF CODE STEP 1 STEP 2 STEP 3 STEP 4 M1 0.4 M1 0.4 0.4 0 0 M2 0.15 M2 0.15 0.15 1 0.15 0 0.15 0 100 M3 0.15 M3 0.15 0.15 1 0.15 0 0.15 1 101 M4 0.15 M4 0.15 0.15 1 0.15 1 0.15 0 110 M5 0.15 M5 0.15 0.15 1 0.15 1 0.15 1 111 HM CODE STEP 1 STEP 2 STEP 3 STEP 4 STEP 4 M1 0.4 M1 0.4 0.4 0.4 0.4 0.6 0 1 1 M2 0.15 M2 0.15 0.15 0.3 0.3 0 0.4 1 010 010 M3 0.15 M3 0.15 0.15 0.15 0 0.3 1 110 011 M4 0.15 M4 0.15 0.15 0 0.15 1 000 000 M5 0.15 M5 0.15 0.15 1 100 001
  • 26. Code Efficiency = Entropy/N Entropy = pklog2(1/pk) = p1log2(1/p1)+ p2log2(1/p2)+ p3log2(1/p3)+ p4log2(1/p4)+ p5log2(1/p5) = 0.4log2(1/0.4)+ 0.15log2(1/0.15)+ 0.15log2(1/0.15)+ 0.15log2(1/0.15)+ 0.15log2(1/0.15) = 2.171 SF Code N = pknk = p1n1+ p2n2+ p3n3+ p4n4+ p5n5 = 0.4*1+0.15*3+0.15*3+0.15*3+0.15*3 = 2.2
  • 27. HM Code N = pknk = p1n1+ p2n2+ p3n3+ p4n4+ p5n5 = = 0.4*1+0.15*3+0.15*3+0.15*3+0.15*3 = 2.2 Code efficiency for SF = 0.9868 = 0.9868*100= 98.68 % Code efficiency for HM = 0.9868 = 98.68 %
  • 28. M1 M2 M3 G1 = 100, G2 = 111, G3 = 101 G1 G2 G3 Output
  • 29. Present State M3M2 M1 X1 = M1 X2 = m1+m2+ m3 X3 = m1+m3 Next State M2M1 00 0 0 0 0 00 1 1 1 1 01 01 0 0 1 0 10 1 1 0 1 11 10 0 0 1 1 00 1 1 0 0 01 11 0 0 0 1 10 1 1 1 0 11
  • 30. Trellis Diagram Present State Next State A=00 B=01 C=10 D=11 A=00 B=01 C=10 D=11 0/000 1/111 0/010 1/101 0/011 1/100 0/001 1/110