SlideShare a Scribd company logo
1 of 20
LINEAR BLOCK CODING 
Presented by 
NANDINI MILI 
JEEVANI KONDA
CONTENTS 
Introduction 
Linear block codes 
Generator matrix 
Systematic encoding 
Parity check matrix 
Syndrome and error detection 
Minimum distance of block codes 
Applications 
Advantages and Disadvantages
INTRODUCTION 
The purpose of error control coding is to enable the 
receiver to detect or even correct the errors by introducing 
some redundancies in to the data to be transmitted. 
There are basically two mechanisms for adding 
redundancy: 
1. Block coding 
2. Convolutional coding
LINEAR BLOCK CODES 
The encoder generates a block of n coded bits from k information 
bits and we call this as (n, k) block codes. 
The coded bits are also called as code word symbols. 
Why linear??? 
A code is linear if the modulo-2 sum of two code words is 
also a code word.
 n code word symbols can take 2푛 possible values. From 
that we select 2푘 code words to form the code. 
 A block code is said to be useful when there is one to one 
mapping between message m and its code word c as 
shown above.
GENERATOR MATRIX 
 All code words can be obtained as linear combination of basis vectors. 
 The basis vectors can be designated as {푔1, 푔2, 푔3,….., 푔푘} 
 For a linear code, there exists a k by n generator matrix such that 
푐1∗푛 = 푚1∗푘 . 퐺푘∗푛 
where c={푐1, 푐2, ….., 푐푛} and m={푚1, 푚2, ……., 푚푘}
BLOCK CODES IN SYSTEMATIC FORM 
In this form, the code word consists of (n-k) parity check bits 
followed by k bits of the message. 
The structure of the code word in systematic form is: 
The rate or efficiency for this code R= k/n
G = [ 퐼푘 P] 
C = m.G = [m mP] 
Message 
part Parity part 
Example: 
Let us consider (7, 4) linear code where k=4 and n=7 
m=(1110) and G = = 
c= m.G = 풎ퟏ품ퟏ + 풎ퟐ품ퟐ + 풎ퟑ품ퟑ + 풎ퟒ품ퟒ 
= 1.품ퟏ + ퟏ. 품ퟐ + ퟏ. 품ퟑ + ퟎ. 품ퟒ 
1 1 0 1 0 0 0 
0 1 1 0 1 0 0 
1 1 1 0 0 1 0 
1 0 1 0 0 0 1 
품ퟎ 
품ퟏ 
품ퟐ 
품ퟑ
c = (1101000) + (0110100) + (1110010) 
= (0101110) 
Another method: 
Let m=(푚1, 푚2, 푚3, 푚4) and c= (푐1, 푐2, 푐3, 푐4, 푐5, 푐6, 푐7) 
c=m.G= (푚1, 푚2, 푚3, 푚4) 
1 1 0 1 0 0 0 
0 1 1 0 1 0 0 
1 1 1 0 0 1 0 
1 0 1 0 0 0 1 
By matrix multiplication we obtain : 
푐1=푚1 + 푚3 + 푚4, 푐2=푚1 + 푚2 + 푚3, 푐3= 푚2 + 푚3 + 푚4, 푐4=푚1, 
푐5=푚2, 푐6=푚3, 푐7=푚4 
The code word corresponding to the message(1110) is (0101110) .
PARITY CHECK MATRIX (H) 
 When G is systematic, it is easy to determine the 
parity check matrix H as: 
H = [퐼푛−푘 푃푇 ] 
 The parity check matrix H of a generator matrix is 
an (n-k)-by-n matrix satisfying: 
T 
퐻(푛−푘)∗푛퐺푛∗푘 = 0 
 Then the code words should satisfy (n-k) parity 
check equations 
T T 
푐1∗푛퐻푛∗(푛−푘) = 푚1∗푘퐺푘∗푛퐻푛∗(푛−푘) = 0
Example: 
Consider generator matrix of (7, 4) linear block code 
H = [퐼푛−푘 푃푇 ] and G = [ 푃 퐼푘] 
The corresponding parity check matrix is: 
H= 
1 0 0 
0 1 0 
0 0 1 
1 0 1 
1 1 1 
0 1 1 
1 
0 
1 
G. 퐻푇 = 
1 1 0 1 0 0 0 
0 1 1 0 1 0 0 
1 1 1 0 0 1 0 
1 0 1 0 0 0 1 
ퟏ ퟎ ퟎ 
ퟎ ퟏ ퟎ 
ퟎ ퟎ ퟏ 
ퟏ ퟏ ퟎ 
ퟎ ퟏ ퟏ 
ퟏ ퟏ ퟏ 
ퟏ ퟎ ퟏ 
= 0
SYNDROME AND ERROR DETECTION 
 For a code word c, transmitted over a noisy channel, let r be 
the received vector at the output of the channel with error e 
+ c r = c+e 
e 
1, if r ≠c 
0, if r=c i e = 
Syndrome of received vector r is given by: 
T 
s = r.H =(푠1, 푠2, 푠3, … … . . , 푠푛−푘)
Properties of syndrome: 
 The syndrome depends only on the error pattern and 
not on the transmitted word. 
T T T T 
s = (c+e).H = c.H + e.H = e.H 
 All the error pattern differ by atleast a code word 
have the same syndrome s.
Example: 
Let C=(0101110) be the transmitted code and r=(0001110) be the 
received vector. 
s=r. 퐻푇=(푠1, 푠2, 푠3) 
=(푟1, 푟2, 푟3, 푟4, 푟5, 푟6, 푟7) 
ퟏ ퟎ ퟎ 
ퟎ ퟏ ퟎ 
ퟎ ퟎ ퟏ 
ퟏ ퟏ ퟎ 
ퟎ ퟏ ퟏ 
ퟏ ퟏ ퟏ 
ퟏ ퟎ ퟏ 
The syndrome digits are: 
푠1 = 푟1 + 푟4 + 푟6 + 푟7 = 0 
푠2 = 푟2 + 푟4 + 푟5 + 푟6 = 1 
푠3 = 푟3 + 푟5 + 푟6 + 푟7 = 0
The error vector, e=(푒1, 푒2, 푒3, 푒4, 푒5, 푒6, 푒7)=(0100000) 
* 
C= r + e 
= (0001110)+(0100000) 
= (0101110) 
where C * 
is the actual transmitted code word
MINIMUM DISTANCE OFA BLOCK CODE 
Hamming weight w(c ) : It is defined as the number of non-zero 
components of c. 
For ex: The hamming weight of c=(11000110) is 4 
Hamming distance d( c, x): It is defined as the number of places where 
they differ . 
The hamming distance between c=(11000110) and x=(00100100) is 4 
 The hamming distance satisfies the triangle inequality 
d(c, x)+d(x, y) ≥ d(c, y) 
 The hamming distance between two n-tuple c and x is equal to the 
hamming weight of the sum of c and x 
d(c, x) = w( c+ x) 
For ex: The hamming distance between c=(11000110) and 
is 4 and the weight of c + x = (11100010) is 4. 
x=(00100100)
 Minimum hamming distance d : It is defined as the smallest 
min 
 The Hamming distance between two code vectors in C is equal 
to the Hamming weight of a third code vector in C. 
d = min{w( c+x):c, x €C, c≠x} 
= min{w(y):y €C, y≠ 0} 
= w 
≠ 
min 
distance between any pair of code vectors in the code. 
For a given block code C, d is defined as: 
dm i n=min{ d(c, x): c, x€C, c x} 
min 
min
APPLICATIONS 
 Communications: 
Satellite and deep space communications. 
Digital audio and video transmissions. 
 Storage: 
Computer memory (RAM). 
Single error correcting and double error detecting code.
ADVANTAGES DISADVANTAGES 
 It is the easiest and 
simplest technique to 
detect and correct errors. 
 Error probability is 
reduced. 
 Transmission bandwidth 
requirement is more. 
 Extra bits reduces bit rate 
of transmitter and also 
reduces its power.
Thank you……

More Related Content

What's hot (20)

Digital modulation techniques...
Digital modulation techniques...Digital modulation techniques...
Digital modulation techniques...
 
Magic tee
Magic tee  Magic tee
Magic tee
 
Instruction formats-in-8086
Instruction formats-in-8086Instruction formats-in-8086
Instruction formats-in-8086
 
DAC Interfacing with 8051.pdf
DAC Interfacing with 8051.pdfDAC Interfacing with 8051.pdf
DAC Interfacing with 8051.pdf
 
Hamming codes
Hamming codesHamming codes
Hamming codes
 
Companding & Pulse Code Modulation
Companding & Pulse Code ModulationCompanding & Pulse Code Modulation
Companding & Pulse Code Modulation
 
Turbo Code
Turbo Code Turbo Code
Turbo Code
 
Convolution codes and turbo codes
Convolution codes and turbo codesConvolution codes and turbo codes
Convolution codes and turbo codes
 
Decimation and Interpolation
Decimation and InterpolationDecimation and Interpolation
Decimation and Interpolation
 
Equalization
EqualizationEqualization
Equalization
 
IEEE 802.11 Architecture and Services
IEEE 802.11 Architecture and ServicesIEEE 802.11 Architecture and Services
IEEE 802.11 Architecture and Services
 
LDPC Codes
LDPC CodesLDPC Codes
LDPC Codes
 
Digital Communication: Information Theory
Digital Communication: Information TheoryDigital Communication: Information Theory
Digital Communication: Information Theory
 
ASK, FSK, PSK Modulation Techniques in Detail
ASK, FSK, PSK Modulation Techniques in DetailASK, FSK, PSK Modulation Techniques in Detail
ASK, FSK, PSK Modulation Techniques in Detail
 
Propagation mechanisms
Propagation mechanismsPropagation mechanisms
Propagation mechanisms
 
Convolutional Codes And Their Decoding
Convolutional Codes And Their DecodingConvolutional Codes And Their Decoding
Convolutional Codes And Their Decoding
 
Convolutional codes
Convolutional codesConvolutional codes
Convolutional codes
 
Convolution Codes
Convolution CodesConvolution Codes
Convolution Codes
 
Pn sequence
Pn sequencePn sequence
Pn sequence
 
Properties of dft
Properties of dftProperties of dft
Properties of dft
 

Viewers also liked (18)

Error Detection And Correction
Error Detection And CorrectionError Detection And Correction
Error Detection And Correction
 
5 linear block codes
5 linear block codes5 linear block codes
5 linear block codes
 
Fundamentals of information_theory_and_coding_design__discrete_mathematics_an...
Fundamentals of information_theory_and_coding_design__discrete_mathematics_an...Fundamentals of information_theory_and_coding_design__discrete_mathematics_an...
Fundamentals of information_theory_and_coding_design__discrete_mathematics_an...
 
Information Theory and Coding Question Bank
Information Theory and Coding Question BankInformation Theory and Coding Question Bank
Information Theory and Coding Question Bank
 
Linear block code
Linear block codeLinear block code
Linear block code
 
Error Correction And Hamming Code Ibrar
Error Correction And Hamming Code IbrarError Correction And Hamming Code Ibrar
Error Correction And Hamming Code Ibrar
 
HDLC(high level data link control)
HDLC(high level data link control)HDLC(high level data link control)
HDLC(high level data link control)
 
Check sum
Check sumCheck sum
Check sum
 
The medium access sublayer
 The medium  access sublayer The medium  access sublayer
The medium access sublayer
 
Hdlc
HdlcHdlc
Hdlc
 
Chapter3
Chapter3Chapter3
Chapter3
 
Farming
FarmingFarming
Farming
 
Farming system
Farming systemFarming system
Farming system
 
Error Detection N Correction
Error Detection N CorrectionError Detection N Correction
Error Detection N Correction
 
Ethernet
EthernetEthernet
Ethernet
 
Checksum 101
Checksum 101Checksum 101
Checksum 101
 
Multiple access protocol
Multiple access protocolMultiple access protocol
Multiple access protocol
 
Multiple access control protocol
Multiple access control protocol Multiple access control protocol
Multiple access control protocol
 

Similar to Linear block coding

Coding theory.pdf
Coding theory.pdfCoding theory.pdf
Coding theory.pdf230231060
 
EEE436 Lecture Slide 3.ppt digital commission coding
EEE436 Lecture Slide 3.ppt digital commission codingEEE436 Lecture Slide 3.ppt digital commission coding
EEE436 Lecture Slide 3.ppt digital commission codingKeepSmile24
 
Channel Coding .pptx
Channel Coding .pptxChannel Coding .pptx
Channel Coding .pptxMortadha96
 
Lecture Notes: EEEC6440315 Communication Systems - Information Theory
Lecture Notes:  EEEC6440315 Communication Systems - Information TheoryLecture Notes:  EEEC6440315 Communication Systems - Information Theory
Lecture Notes: EEEC6440315 Communication Systems - Information TheoryAIMST University
 
Weight enumerators of block codes and the mc williams
Weight  enumerators of block codes and  the mc williamsWeight  enumerators of block codes and  the mc williams
Weight enumerators of block codes and the mc williamsMadhumita Tamhane
 
An Introduction to Coding Theory
An Introduction to Coding TheoryAn Introduction to Coding Theory
An Introduction to Coding TheoryAlexanderWei11
 
13-DataLink_02.ppt
13-DataLink_02.ppt13-DataLink_02.ppt
13-DataLink_02.pptWinterSnow16
 
Chapter 10: Error Correction and Detection
Chapter 10: Error Correction and DetectionChapter 10: Error Correction and Detection
Chapter 10: Error Correction and DetectionJeoffnaRuth
 
Review paper on Reed Solomon (204,188) Decoder for Digital Video Broadcasting...
Review paper on Reed Solomon (204,188) Decoder for Digital Video Broadcasting...Review paper on Reed Solomon (204,188) Decoder for Digital Video Broadcasting...
Review paper on Reed Solomon (204,188) Decoder for Digital Video Broadcasting...IRJET Journal
 
Multimedia lossy compression algorithms
Multimedia lossy compression algorithmsMultimedia lossy compression algorithms
Multimedia lossy compression algorithmsMazin Alwaaly
 
01 EC 7311-Module IV.pptx
01 EC 7311-Module IV.pptx01 EC 7311-Module IV.pptx
01 EC 7311-Module IV.pptxVSUDHEER4
 
Digital communication coding Lectures Slides.ppt
Digital communication coding Lectures Slides.pptDigital communication coding Lectures Slides.ppt
Digital communication coding Lectures Slides.pptMohamadHalimAbdWahid
 

Similar to Linear block coding (20)

Coding theory.pdf
Coding theory.pdfCoding theory.pdf
Coding theory.pdf
 
linear codes and cyclic codes
linear codes and cyclic codeslinear codes and cyclic codes
linear codes and cyclic codes
 
EEE436 Lecture Slide 3.ppt digital commission coding
EEE436 Lecture Slide 3.ppt digital commission codingEEE436 Lecture Slide 3.ppt digital commission coding
EEE436 Lecture Slide 3.ppt digital commission coding
 
Channel Coding .pptx
Channel Coding .pptxChannel Coding .pptx
Channel Coding .pptx
 
error control coding
error control coding error control coding
error control coding
 
Lecture Notes: EEEC6440315 Communication Systems - Information Theory
Lecture Notes:  EEEC6440315 Communication Systems - Information TheoryLecture Notes:  EEEC6440315 Communication Systems - Information Theory
Lecture Notes: EEEC6440315 Communication Systems - Information Theory
 
Channel Coding (Error Control Coding)
Channel Coding (Error Control Coding)Channel Coding (Error Control Coding)
Channel Coding (Error Control Coding)
 
Weight enumerators of block codes and the mc williams
Weight  enumerators of block codes and  the mc williamsWeight  enumerators of block codes and  the mc williams
Weight enumerators of block codes and the mc williams
 
An Introduction to Coding Theory
An Introduction to Coding TheoryAn Introduction to Coding Theory
An Introduction to Coding Theory
 
13-DataLink_02.ppt
13-DataLink_02.ppt13-DataLink_02.ppt
13-DataLink_02.ppt
 
Data links
Data links Data links
Data links
 
dsp
dspdsp
dsp
 
Lossy
LossyLossy
Lossy
 
Chapter 10: Error Correction and Detection
Chapter 10: Error Correction and DetectionChapter 10: Error Correction and Detection
Chapter 10: Error Correction and Detection
 
Review paper on Reed Solomon (204,188) Decoder for Digital Video Broadcasting...
Review paper on Reed Solomon (204,188) Decoder for Digital Video Broadcasting...Review paper on Reed Solomon (204,188) Decoder for Digital Video Broadcasting...
Review paper on Reed Solomon (204,188) Decoder for Digital Video Broadcasting...
 
coding.pdf
coding.pdfcoding.pdf
coding.pdf
 
Multimedia lossy compression algorithms
Multimedia lossy compression algorithmsMultimedia lossy compression algorithms
Multimedia lossy compression algorithms
 
01 EC 7311-Module IV.pptx
01 EC 7311-Module IV.pptx01 EC 7311-Module IV.pptx
01 EC 7311-Module IV.pptx
 
Digital communication coding Lectures Slides.ppt
Digital communication coding Lectures Slides.pptDigital communication coding Lectures Slides.ppt
Digital communication coding Lectures Slides.ppt
 
Quantum Noise and Error Correction
Quantum Noise and Error CorrectionQuantum Noise and Error Correction
Quantum Noise and Error Correction
 

Recently uploaded

the ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptxthe ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptxhumanexperienceaaa
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130Suhani Kapoor
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130Suhani Kapoor
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Dr.Costas Sachpazis
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxupamatechverse
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxAsutosh Ranjan
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024hassan khalil
 
Analog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog ConverterAnalog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog ConverterAbhinavSharma374939
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...Soham Mondal
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile servicerehmti665
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxupamatechverse
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escortsranjana rawat
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxupamatechverse
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Serviceranjana rawat
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...srsj9000
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escortsranjana rawat
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxwendy cai
 

Recently uploaded (20)

the ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptxthe ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
the ladakh protest in leh ladakh 2024 sonam wangchuk.pptx
 
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
VIP Call Girls Service Kondapur Hyderabad Call +91-8250192130
 
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
VIP Call Girls Service Hitech City Hyderabad Call +91-8250192130
 
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
Sheet Pile Wall Design and Construction: A Practical Guide for Civil Engineer...
 
Introduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptxIntroduction and different types of Ethernet.pptx
Introduction and different types of Ethernet.pptx
 
Coefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptxCoefficient of Thermal Expansion and their Importance.pptx
Coefficient of Thermal Expansion and their Importance.pptx
 
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Meera Call 7001035870 Meet With Nagpur Escorts
 
Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024Architect Hassan Khalil Portfolio for 2024
Architect Hassan Khalil Portfolio for 2024
 
Analog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog ConverterAnalog to Digital and Digital to Analog Converter
Analog to Digital and Digital to Analog Converter
 
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
OSVC_Meta-Data based Simulation Automation to overcome Verification Challenge...
 
Call Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile serviceCall Girls Delhi {Jodhpur} 9711199012 high profile service
Call Girls Delhi {Jodhpur} 9711199012 high profile service
 
Introduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptxIntroduction to IEEE STANDARDS and its different types.pptx
Introduction to IEEE STANDARDS and its different types.pptx
 
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
(MEERA) Dapodi Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Escorts
 
Introduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptxIntroduction to Multiple Access Protocol.pptx
Introduction to Multiple Access Protocol.pptx
 
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur EscortsCall Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
Call Girls Service Nagpur Tanvi Call 7001035870 Meet With Nagpur Escorts
 
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
(RIA) Call Girls Bhosari ( 7001035870 ) HI-Fi Pune Escorts Service
 
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
Gfe Mayur Vihar Call Girls Service WhatsApp -> 9999965857 Available 24x7 ^ De...
 
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCRCall Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
Call Us -/9953056974- Call Girls In Vikaspuri-/- Delhi NCR
 
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur EscortsHigh Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
High Profile Call Girls Nagpur Isha Call 7001035870 Meet With Nagpur Escorts
 
What are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptxWhat are the advantages and disadvantages of membrane structures.pptx
What are the advantages and disadvantages of membrane structures.pptx
 

Linear block coding

  • 1. LINEAR BLOCK CODING Presented by NANDINI MILI JEEVANI KONDA
  • 2. CONTENTS Introduction Linear block codes Generator matrix Systematic encoding Parity check matrix Syndrome and error detection Minimum distance of block codes Applications Advantages and Disadvantages
  • 3. INTRODUCTION The purpose of error control coding is to enable the receiver to detect or even correct the errors by introducing some redundancies in to the data to be transmitted. There are basically two mechanisms for adding redundancy: 1. Block coding 2. Convolutional coding
  • 4. LINEAR BLOCK CODES The encoder generates a block of n coded bits from k information bits and we call this as (n, k) block codes. The coded bits are also called as code word symbols. Why linear??? A code is linear if the modulo-2 sum of two code words is also a code word.
  • 5.  n code word symbols can take 2푛 possible values. From that we select 2푘 code words to form the code.  A block code is said to be useful when there is one to one mapping between message m and its code word c as shown above.
  • 6. GENERATOR MATRIX  All code words can be obtained as linear combination of basis vectors.  The basis vectors can be designated as {푔1, 푔2, 푔3,….., 푔푘}  For a linear code, there exists a k by n generator matrix such that 푐1∗푛 = 푚1∗푘 . 퐺푘∗푛 where c={푐1, 푐2, ….., 푐푛} and m={푚1, 푚2, ……., 푚푘}
  • 7. BLOCK CODES IN SYSTEMATIC FORM In this form, the code word consists of (n-k) parity check bits followed by k bits of the message. The structure of the code word in systematic form is: The rate or efficiency for this code R= k/n
  • 8. G = [ 퐼푘 P] C = m.G = [m mP] Message part Parity part Example: Let us consider (7, 4) linear code where k=4 and n=7 m=(1110) and G = = c= m.G = 풎ퟏ품ퟏ + 풎ퟐ품ퟐ + 풎ퟑ품ퟑ + 풎ퟒ품ퟒ = 1.품ퟏ + ퟏ. 품ퟐ + ퟏ. 품ퟑ + ퟎ. 품ퟒ 1 1 0 1 0 0 0 0 1 1 0 1 0 0 1 1 1 0 0 1 0 1 0 1 0 0 0 1 품ퟎ 품ퟏ 품ퟐ 품ퟑ
  • 9. c = (1101000) + (0110100) + (1110010) = (0101110) Another method: Let m=(푚1, 푚2, 푚3, 푚4) and c= (푐1, 푐2, 푐3, 푐4, 푐5, 푐6, 푐7) c=m.G= (푚1, 푚2, 푚3, 푚4) 1 1 0 1 0 0 0 0 1 1 0 1 0 0 1 1 1 0 0 1 0 1 0 1 0 0 0 1 By matrix multiplication we obtain : 푐1=푚1 + 푚3 + 푚4, 푐2=푚1 + 푚2 + 푚3, 푐3= 푚2 + 푚3 + 푚4, 푐4=푚1, 푐5=푚2, 푐6=푚3, 푐7=푚4 The code word corresponding to the message(1110) is (0101110) .
  • 10. PARITY CHECK MATRIX (H)  When G is systematic, it is easy to determine the parity check matrix H as: H = [퐼푛−푘 푃푇 ]  The parity check matrix H of a generator matrix is an (n-k)-by-n matrix satisfying: T 퐻(푛−푘)∗푛퐺푛∗푘 = 0  Then the code words should satisfy (n-k) parity check equations T T 푐1∗푛퐻푛∗(푛−푘) = 푚1∗푘퐺푘∗푛퐻푛∗(푛−푘) = 0
  • 11. Example: Consider generator matrix of (7, 4) linear block code H = [퐼푛−푘 푃푇 ] and G = [ 푃 퐼푘] The corresponding parity check matrix is: H= 1 0 0 0 1 0 0 0 1 1 0 1 1 1 1 0 1 1 1 0 1 G. 퐻푇 = 1 1 0 1 0 0 0 0 1 1 0 1 0 0 1 1 1 0 0 1 0 1 0 1 0 0 0 1 ퟏ ퟎ ퟎ ퟎ ퟏ ퟎ ퟎ ퟎ ퟏ ퟏ ퟏ ퟎ ퟎ ퟏ ퟏ ퟏ ퟏ ퟏ ퟏ ퟎ ퟏ = 0
  • 12. SYNDROME AND ERROR DETECTION  For a code word c, transmitted over a noisy channel, let r be the received vector at the output of the channel with error e + c r = c+e e 1, if r ≠c 0, if r=c i e = Syndrome of received vector r is given by: T s = r.H =(푠1, 푠2, 푠3, … … . . , 푠푛−푘)
  • 13. Properties of syndrome:  The syndrome depends only on the error pattern and not on the transmitted word. T T T T s = (c+e).H = c.H + e.H = e.H  All the error pattern differ by atleast a code word have the same syndrome s.
  • 14. Example: Let C=(0101110) be the transmitted code and r=(0001110) be the received vector. s=r. 퐻푇=(푠1, 푠2, 푠3) =(푟1, 푟2, 푟3, 푟4, 푟5, 푟6, 푟7) ퟏ ퟎ ퟎ ퟎ ퟏ ퟎ ퟎ ퟎ ퟏ ퟏ ퟏ ퟎ ퟎ ퟏ ퟏ ퟏ ퟏ ퟏ ퟏ ퟎ ퟏ The syndrome digits are: 푠1 = 푟1 + 푟4 + 푟6 + 푟7 = 0 푠2 = 푟2 + 푟4 + 푟5 + 푟6 = 1 푠3 = 푟3 + 푟5 + 푟6 + 푟7 = 0
  • 15. The error vector, e=(푒1, 푒2, 푒3, 푒4, 푒5, 푒6, 푒7)=(0100000) * C= r + e = (0001110)+(0100000) = (0101110) where C * is the actual transmitted code word
  • 16. MINIMUM DISTANCE OFA BLOCK CODE Hamming weight w(c ) : It is defined as the number of non-zero components of c. For ex: The hamming weight of c=(11000110) is 4 Hamming distance d( c, x): It is defined as the number of places where they differ . The hamming distance between c=(11000110) and x=(00100100) is 4  The hamming distance satisfies the triangle inequality d(c, x)+d(x, y) ≥ d(c, y)  The hamming distance between two n-tuple c and x is equal to the hamming weight of the sum of c and x d(c, x) = w( c+ x) For ex: The hamming distance between c=(11000110) and is 4 and the weight of c + x = (11100010) is 4. x=(00100100)
  • 17.  Minimum hamming distance d : It is defined as the smallest min  The Hamming distance between two code vectors in C is equal to the Hamming weight of a third code vector in C. d = min{w( c+x):c, x €C, c≠x} = min{w(y):y €C, y≠ 0} = w ≠ min distance between any pair of code vectors in the code. For a given block code C, d is defined as: dm i n=min{ d(c, x): c, x€C, c x} min min
  • 18. APPLICATIONS  Communications: Satellite and deep space communications. Digital audio and video transmissions.  Storage: Computer memory (RAM). Single error correcting and double error detecting code.
  • 19. ADVANTAGES DISADVANTAGES  It is the easiest and simplest technique to detect and correct errors.  Error probability is reduced.  Transmission bandwidth requirement is more.  Extra bits reduces bit rate of transmitter and also reduces its power.