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)

Convolution Codes
Convolution CodesConvolution Codes
Convolution Codes
 
5 linear block codes
5 linear block codes5 linear block codes
5 linear block codes
 
Error Control Coding -Introduction
Error Control Coding -IntroductionError Control Coding -Introduction
Error Control Coding -Introduction
 
Basics of coding theory
Basics of coding theoryBasics of coding theory
Basics of coding theory
 
LDPC Codes
LDPC CodesLDPC Codes
LDPC Codes
 
Equalization
EqualizationEqualization
Equalization
 
Shannon Fano
Shannon FanoShannon Fano
Shannon Fano
 
Source coding
Source coding Source coding
Source coding
 
Differential pulse code modulation
Differential pulse code modulationDifferential pulse code modulation
Differential pulse code modulation
 
Digital Communication: Channel Coding
Digital Communication: Channel CodingDigital Communication: Channel Coding
Digital Communication: Channel Coding
 
Channel Coding (Error Control Coding)
Channel Coding (Error Control Coding)Channel Coding (Error Control Coding)
Channel Coding (Error Control Coding)
 
Turbo Codes
Turbo CodesTurbo Codes
Turbo Codes
 
Line coding
Line codingLine coding
Line coding
 
UNIT-3 : CHANNEL CODING
UNIT-3 : CHANNEL CODINGUNIT-3 : CHANNEL CODING
UNIT-3 : CHANNEL CODING
 
Convolutional codes
Convolutional codesConvolutional codes
Convolutional codes
 
Turbo codes.ppt
Turbo codes.pptTurbo codes.ppt
Turbo codes.ppt
 
Synchronization
SynchronizationSynchronization
Synchronization
 
Information theory
Information theoryInformation theory
Information theory
 
Convolution codes and turbo codes
Convolution codes and turbo codesConvolution codes and turbo codes
Convolution codes and turbo codes
 
Channel capacity
Channel capacityChannel capacity
Channel capacity
 

Viewers also liked

Viewers also liked (16)

Error Detection And Correction
Error Detection And CorrectionError Detection And Correction
Error Detection And Correction
 
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
 
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
 
Reed solomon Encoder and Decoder
Reed solomon Encoder and DecoderReed solomon Encoder and Decoder
Reed solomon Encoder and DecoderAmeer H Ali
 
Encoder for (7,3) cyclic code using matlab
Encoder for (7,3) cyclic code using matlabEncoder for (7,3) cyclic code using matlab
Encoder for (7,3) cyclic code using matlabSneheshDutta
 

Similar to Linear block coding (20)

Coding theory.pdf
Coding theory.pdfCoding theory.pdf
Coding theory.pdf
 
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
 
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
 
Reed solomon Encoder and Decoder
Reed solomon Encoder and DecoderReed solomon Encoder and Decoder
Reed solomon Encoder and Decoder
 
Encoder for (7,3) cyclic code using matlab
Encoder for (7,3) cyclic code using matlabEncoder for (7,3) cyclic code using matlab
Encoder for (7,3) cyclic code using matlab
 

Recently uploaded

UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduitsrknatarajan
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdfankushspencer015
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Christo Ananth
 
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
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...ranjana rawat
 
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
 
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
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSSIVASHANKAR N
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...ranjana rawat
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxpranjaldaimarysona
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSRajkumarAkumalla
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur High Profile
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlysanyuktamishra911
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations120cr0395
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...ranjana rawat
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...ranjana rawat
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performancesivaprakash250
 

Recently uploaded (20)

Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024Water Industry Process Automation & Control Monthly - April 2024
Water Industry Process Automation & Control Monthly - April 2024
 
Roadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and RoutesRoadmap to Membership of RICS - Pathways and Routes
Roadmap to Membership of RICS - Pathways and Routes
 
UNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular ConduitsUNIT-II FMM-Flow Through Circular Conduits
UNIT-II FMM-Flow Through Circular Conduits
 
AKTU Computer Networks notes --- Unit 3.pdf
AKTU Computer Networks notes ---  Unit 3.pdfAKTU Computer Networks notes ---  Unit 3.pdf
AKTU Computer Networks notes --- Unit 3.pdf
 
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
Call for Papers - Educational Administration: Theory and Practice, E-ISSN: 21...
 
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
 
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
(ANVI) Koregaon Park Call Girls Just Call 7001035870 [ Cash on Delivery ] Pun...
 
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
 
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
 
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLSMANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
MANUFACTURING PROCESS-II UNIT-5 NC MACHINE TOOLS
 
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
(SHREYA) Chakan Call Girls Just Call 7001035870 [ Cash on Delivery ] Pune Esc...
 
Processing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptxProcessing & Properties of Floor and Wall Tiles.pptx
Processing & Properties of Floor and Wall Tiles.pptx
 
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICSHARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
HARDNESS, FRACTURE TOUGHNESS AND STRENGTH OF CERAMICS
 
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur EscortsCall Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
Call Girls in Nagpur Suman Call 7001035870 Meet With Nagpur Escorts
 
KubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghlyKubeKraft presentation @CloudNativeHooghly
KubeKraft presentation @CloudNativeHooghly
 
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINEDJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
DJARUM4D - SLOT GACOR ONLINE | SLOT DEMO ONLINE
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
The Most Attractive Pune Call Girls Manchar 8250192130 Will You Miss This Cha...
 
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
The Most Attractive Pune Call Girls Budhwar Peth 8250192130 Will You Miss Thi...
 
UNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its PerformanceUNIT - IV - Air Compressors and its Performance
UNIT - IV - Air Compressors and its Performance
 

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.