SlideShare a Scribd company logo
1 of 93
Unit-4
Linear Block Codes
Introduction
• The noise present in a channel creates unwanted errors between the
input and the output sequences of a digital communication system
• The error probability should be very low, nearly ≤ 10-6 for a reliable
communication
• In 1948, Shannon demonstrated that by proper encoding of the
information, error induced by a noisy channel can be reduced to any
desired level without sacrificing the rate of information transmission
• Hence, use of coding for error control has become an integral part in
the design of modern communication system
A typical transmission system
Rationale for coding
• The two key parameters for designing a cost effective and reliable digital
communication system are
• Signal power
• Channel bandwidth
• These two along with PSD of noise ‘η’ determine bit signal energy to noise
power ratio (𝐸𝑏 𝑁)
• This ratio in turn determines the bit error rate for various digital
modulation schemes
• Practical aspects place limit on the value of (𝐸𝑏 𝑁)
• In practice, it is impossible to provide the acceptable data quality with
whatever modulation scheme we adopt
• Hence, the only practical option available to improve the data quality is
“Error Control Coding”
Error control coding
• Error control coding is the coding procedure done to control the
occurrences of errors
• Error control coding is nothing but calculated use of redundancy.
• These techniques help in error detection and error correction
• The functional blocks that accomplish error control coding are the
“channel encoder” at the transmitter and “channel decoder” at the
receiver
• Hence error control coding is also termed as “channel encoding”
Channel encoder
• Channel encoder at the transmitter systematically adds digits to the
transmitted message digits.
• These additional digits carry no information but makes it possible for
the channel decoder to detect and correct errors in the information
bearing digits
• This reduces the overall probability of errors
• The additional digits which carry no information are called ‘redundant
digits’ or ‘check bits’
Channel encoder
Channel encoder
Channel encoding
Channel encoding
Types of channel codes
• There are several error correcting codes
• These codes are classified under two basic categories
• Block codes
• Convolutional codes
Syllabus –Unit 4
Syllabus –Unit 5
Introduction to algebra
• Group
Introduction to algebra
Linear block codes
• In any error correcting coding scheme a number of redundant bits
must be included in the original message inorder to recover that
message at the receiver
• These redundant bits are determined by algebraic methods
Linear block codes
• All block codes are defined by their codeword length ‘n’ and message
length ‘k’.
• When referring to block code it is written as a (n, k) block code
Linear block codes
• n-digit codeword is made up of k-information digits and (n-k)
redundant parity check digits.
• The rate or efficiency for this code is k/n.
Systematic block codes
• A systematic block code consists of vectors whose 1st k elements (or
last k-elements) are identical to the message bits, the remaining (n-k)
elements being check bits.
Linear block codes
• A code vector then takes the form:
Linear block codes
• The most common and least expensive type of block code is the
simple parity check code.
• In this technique, a redundant bit called parity bit, is appended to
every data unit so that the number of 1s in the unit (including the
parity becomes even).
Linear block codes
• n=5, k=4
• This can detect single bit error
Linear block codes
•
Linear block codes
• Error detection and correction of a block code can be improved by
increasing the number of redundant bits
Linear Block Codes
• Systematic code: information digits are explicitly transmitted together
with the parity check bits.
• For the code to be systematic, the k-information bits must be
transmitted contiguously as a block, with the parity check bits making
up the code word as another contiguous block.
Linear Block Codes
• A systematic linear block code will have a generator matrix of the
form:
Linear Block Codes
• Standard form of generator matrix
Parity check matrix (H)
• Will enables decoding the received vectors.
• For each (kxn) generator matrix G, there exists an (n-k)xn matrix H,
such that rows of G are orthogonal to rows of H i.e., GHT = 0, where
HT is the transpose of H.
• To fulfil the orthogonal requirements for a systematic code, the
components of H matrix are written as:
Parity check matrix (H)
Linear block codes
• A block code is linear if two codes are added using modulo-2
arithmetic produces a third codeword in the code.
Matrix representation of Block codes
Also write the encoder circuit
Syndrome decoding
• Let c be transmitted and r be received, where
r = c + e
e = error pattern = e1e2..... en, where
Consider the (7,4) code.
(1) Let 1101000 be transmitted and 1100000 be received.
Then: e = 0001000 ( an error in the fourth location)
e i
i
th
 


1 if the error has occured in the location
0 otherwise
+
c
e
r
Syndrome decoding
• Let c be transmitted and r be received, where
r = c + e
e = error pattern = e1e2..... en, where
The weight of e determines the number of errors.
If the error pattern can be determined, decoding can be achieved by:
c = r + e
e i
i
th
 


1 if the error has occured in the location
0 otherwise
+
c
e
r
Syndrome decoding
• A 1 × (n − k) matrix called error syndrome matrix is calculated
• Consider a (6,3) LBC parity matrix is given 𝑃 =
1 0 1
0 1 1
1 1 0
received
code vector is R=[1 1 0 0 1 0]. Detect and correct the single error that
has occurred due to noise
For a linear lock code, the generator matrix is













1
1
1
1
1
0
1
0
1
0
1
1
1
0
0
0
0
1
0
0
0
0
1
0
0
0
0
1
G
•Compute the syndrome for the received vector [0110100]
•Correct the error if any
Realize the syndrome calculation circuit
• If C is a valid code vector as calculated from C=DG, then prove that,
CHT=0, where HT is the transpose of parity check matrix
Consider the generator matrix
Let i=3, then third row of [G] is given by
G3=[ 0 0 1 0 1 1 1]
3rd element (4+2)th element
• And parity check matrix
j=2, then second row of [H] is given by
H2=[ 1 1 1 0 0 1 0]
3rd element (4+2)th element
g3h2T= 0 0 1 0 1 1 1
1
1
1
0
0
1
0
g3h2T= 0 0 1 0 1 1 1
1
1
1
0
0
1
0
Hamming weight, Hamming distance,
Minimum distance of a block code
Hamming weight, Hamming distance,
Minimum distance of a block code
• For the systematic (6,3) code, the code vector is given in table. Find
the hamming weight of each code vector and the minimum distance
dmin
Types of errors
Single-bit Error
The term single-bit error means that only one bit of given data is
changed from 1 to 0 or from 0 to 1 as shown in Fig
Types of errors
Burst Error
The term burst error means that two or more bits in the data unit have
changed from 0 to 1 or vice-versa.
Note that burst error doesn’t necessary means that error occurs in
consecutive bits.
The length of the burst error is measured from the first corrupted bit to
the last corrupted bit. Some bits in between may not be corrupted.
Error detection and error correction
capabilities of linear block codes
• (n,k) LBC with minimum distance dmin can detect dmin-1 errors and
correct (dmin-1)/2 errors

More Related Content

Similar to Unit-4.pptx

13-DataLink_02.ppt
13-DataLink_02.ppt13-DataLink_02.ppt
13-DataLink_02.pptWinterSnow16
 
Error Detection and correction concepts in Data communication and networks
Error Detection and correction concepts in Data communication and networksError Detection and correction concepts in Data communication and networks
Error Detection and correction concepts in Data communication and networksNt Arvind
 
New error-detection
New error-detectionNew error-detection
New error-detectionNitesh Singh
 
New error-detection (2)
New error-detection (2)New error-detection (2)
New error-detection (2)Nitesh Singh
 
Linear Block code.pdf
Linear Block code.pdfLinear Block code.pdf
Linear Block code.pdfSuryaRamVM
 
Channel Coding .pptx
Channel Coding .pptxChannel Coding .pptx
Channel Coding .pptxMortadha96
 
Switching theory Unit 1
Switching theory Unit 1Switching theory Unit 1
Switching theory Unit 1SURBHI SAROHA
 
Paper id 312201514
Paper id 312201514Paper id 312201514
Paper id 312201514IJRAT
 
M.TECH, ECE 2nd SEM LAB RECORD
M.TECH, ECE 2nd SEM LAB RECORD M.TECH, ECE 2nd SEM LAB RECORD
M.TECH, ECE 2nd SEM LAB RECORD Arif Ahmed
 
PERFORMANCE ESTIMATION OF LDPC CODE SUING SUM PRODUCT ALGORITHM AND BIT FLIPP...
PERFORMANCE ESTIMATION OF LDPC CODE SUING SUM PRODUCT ALGORITHM AND BIT FLIPP...PERFORMANCE ESTIMATION OF LDPC CODE SUING SUM PRODUCT ALGORITHM AND BIT FLIPP...
PERFORMANCE ESTIMATION OF LDPC CODE SUING SUM PRODUCT ALGORITHM AND BIT FLIPP...Journal For Research
 
Analysis and Implementation of Hard-Decision Viterbi Decoding In Wireless Com...
Analysis and Implementation of Hard-Decision Viterbi Decoding In Wireless Com...Analysis and Implementation of Hard-Decision Viterbi Decoding In Wireless Com...
Analysis and Implementation of Hard-Decision Viterbi Decoding In Wireless Com...IJERA Editor
 
Error detection methods-computer networks
Error detection methods-computer networksError detection methods-computer networks
Error detection methods-computer networksDHIVYADEVAKI
 

Similar to Unit-4.pptx (20)

Data links
Data links Data links
Data links
 
13-DataLink_02.ppt
13-DataLink_02.ppt13-DataLink_02.ppt
13-DataLink_02.ppt
 
Error Detection and correction concepts in Data communication and networks
Error Detection and correction concepts in Data communication and networksError Detection and correction concepts in Data communication and networks
Error Detection and correction concepts in Data communication and networks
 
New error-detection
New error-detectionNew error-detection
New error-detection
 
New error-detection (2)
New error-detection (2)New error-detection (2)
New error-detection (2)
 
Linear Block code.pdf
Linear Block code.pdfLinear Block code.pdf
Linear Block code.pdf
 
Channel Coding .pptx
Channel Coding .pptxChannel Coding .pptx
Channel Coding .pptx
 
Turbo Code
Turbo Code Turbo Code
Turbo Code
 
Switching theory Unit 1
Switching theory Unit 1Switching theory Unit 1
Switching theory Unit 1
 
C04922125
C04922125C04922125
C04922125
 
Paper id 312201514
Paper id 312201514Paper id 312201514
Paper id 312201514
 
M.TECH, ECE 2nd SEM LAB RECORD
M.TECH, ECE 2nd SEM LAB RECORD M.TECH, ECE 2nd SEM LAB RECORD
M.TECH, ECE 2nd SEM LAB RECORD
 
Presentation 1
Presentation 1Presentation 1
Presentation 1
 
PERFORMANCE ESTIMATION OF LDPC CODE SUING SUM PRODUCT ALGORITHM AND BIT FLIPP...
PERFORMANCE ESTIMATION OF LDPC CODE SUING SUM PRODUCT ALGORITHM AND BIT FLIPP...PERFORMANCE ESTIMATION OF LDPC CODE SUING SUM PRODUCT ALGORITHM AND BIT FLIPP...
PERFORMANCE ESTIMATION OF LDPC CODE SUING SUM PRODUCT ALGORITHM AND BIT FLIPP...
 
linear codes and cyclic codes
linear codes and cyclic codeslinear codes and cyclic codes
linear codes and cyclic codes
 
coding.pdf
coding.pdfcoding.pdf
coding.pdf
 
Turbo Codes
Turbo CodesTurbo Codes
Turbo Codes
 
Analysis and Implementation of Hard-Decision Viterbi Decoding In Wireless Com...
Analysis and Implementation of Hard-Decision Viterbi Decoding In Wireless Com...Analysis and Implementation of Hard-Decision Viterbi Decoding In Wireless Com...
Analysis and Implementation of Hard-Decision Viterbi Decoding In Wireless Com...
 
K034066071
K034066071K034066071
K034066071
 
Error detection methods-computer networks
Error detection methods-computer networksError detection methods-computer networks
Error detection methods-computer networks
 

Recently uploaded

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
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxpurnimasatapathy1234
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSKurinjimalarL3
 
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-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINESIVASHANKAR N
 
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
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations120cr0395
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Dr.Costas Sachpazis
 
(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
 
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
 
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
 
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
 
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
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝soniya singh
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVRajaP95
 
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
 
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
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCall Girls in Nagpur High Profile
 

Recently uploaded (20)

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
 
Microscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptxMicroscopic Analysis of Ceramic Materials.pptx
Microscopic Analysis of Ceramic Materials.pptx
 
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICSAPPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
APPLICATIONS-AC/DC DRIVES-OPERATING CHARACTERISTICS
 
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-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINEMANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
MANUFACTURING PROCESS-II UNIT-2 LATHE MACHINE
 
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...
 
Extrusion Processes and Their Limitations
Extrusion Processes and Their LimitationsExtrusion Processes and Their Limitations
Extrusion Processes and Their Limitations
 
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
Structural Analysis and Design of Foundations: A Comprehensive Handbook for S...
 
(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...
 
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
 
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
 
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
 
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
 
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
Model Call Girl in Narela Delhi reach out to us at 🔝8264348440🔝
 
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
9953056974 Call Girls In South Ex, Escorts (Delhi) NCR.pdf
 
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IVHARMONY IN THE NATURE AND EXISTENCE - Unit-IV
HARMONY IN THE NATURE AND EXISTENCE - Unit-IV
 
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
 
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
 
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service NashikCollege Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
College Call Girls Nashik Nehal 7001305949 Independent Escort Service Nashik
 

Unit-4.pptx

  • 2. Introduction • The noise present in a channel creates unwanted errors between the input and the output sequences of a digital communication system • The error probability should be very low, nearly ≤ 10-6 for a reliable communication • In 1948, Shannon demonstrated that by proper encoding of the information, error induced by a noisy channel can be reduced to any desired level without sacrificing the rate of information transmission • Hence, use of coding for error control has become an integral part in the design of modern communication system
  • 4. Rationale for coding • The two key parameters for designing a cost effective and reliable digital communication system are • Signal power • Channel bandwidth • These two along with PSD of noise ‘η’ determine bit signal energy to noise power ratio (𝐸𝑏 𝑁) • This ratio in turn determines the bit error rate for various digital modulation schemes • Practical aspects place limit on the value of (𝐸𝑏 𝑁) • In practice, it is impossible to provide the acceptable data quality with whatever modulation scheme we adopt • Hence, the only practical option available to improve the data quality is “Error Control Coding”
  • 5. Error control coding • Error control coding is the coding procedure done to control the occurrences of errors • Error control coding is nothing but calculated use of redundancy. • These techniques help in error detection and error correction • The functional blocks that accomplish error control coding are the “channel encoder” at the transmitter and “channel decoder” at the receiver • Hence error control coding is also termed as “channel encoding”
  • 6. Channel encoder • Channel encoder at the transmitter systematically adds digits to the transmitted message digits. • These additional digits carry no information but makes it possible for the channel decoder to detect and correct errors in the information bearing digits • This reduces the overall probability of errors • The additional digits which carry no information are called ‘redundant digits’ or ‘check bits’
  • 11. Types of channel codes • There are several error correcting codes • These codes are classified under two basic categories • Block codes • Convolutional codes
  • 16. Linear block codes • In any error correcting coding scheme a number of redundant bits must be included in the original message inorder to recover that message at the receiver • These redundant bits are determined by algebraic methods
  • 17. Linear block codes • All block codes are defined by their codeword length ‘n’ and message length ‘k’. • When referring to block code it is written as a (n, k) block code
  • 18. Linear block codes • n-digit codeword is made up of k-information digits and (n-k) redundant parity check digits. • The rate or efficiency for this code is k/n.
  • 19. Systematic block codes • A systematic block code consists of vectors whose 1st k elements (or last k-elements) are identical to the message bits, the remaining (n-k) elements being check bits.
  • 20. Linear block codes • A code vector then takes the form:
  • 21. Linear block codes • The most common and least expensive type of block code is the simple parity check code. • In this technique, a redundant bit called parity bit, is appended to every data unit so that the number of 1s in the unit (including the parity becomes even).
  • 22. Linear block codes • n=5, k=4 • This can detect single bit error
  • 24. Linear block codes • Error detection and correction of a block code can be improved by increasing the number of redundant bits
  • 25. Linear Block Codes • Systematic code: information digits are explicitly transmitted together with the parity check bits. • For the code to be systematic, the k-information bits must be transmitted contiguously as a block, with the parity check bits making up the code word as another contiguous block.
  • 26. Linear Block Codes • A systematic linear block code will have a generator matrix of the form:
  • 27. Linear Block Codes • Standard form of generator matrix
  • 28. Parity check matrix (H) • Will enables decoding the received vectors. • For each (kxn) generator matrix G, there exists an (n-k)xn matrix H, such that rows of G are orthogonal to rows of H i.e., GHT = 0, where HT is the transpose of H. • To fulfil the orthogonal requirements for a systematic code, the components of H matrix are written as:
  • 30.
  • 31.
  • 32.
  • 33.
  • 34.
  • 35.
  • 36.
  • 37.
  • 38. Linear block codes • A block code is linear if two codes are added using modulo-2 arithmetic produces a third codeword in the code.
  • 40. Also write the encoder circuit
  • 41.
  • 42.
  • 43.
  • 44.
  • 45.
  • 46.
  • 47. Syndrome decoding • Let c be transmitted and r be received, where r = c + e e = error pattern = e1e2..... en, where Consider the (7,4) code. (1) Let 1101000 be transmitted and 1100000 be received. Then: e = 0001000 ( an error in the fourth location) e i i th     1 if the error has occured in the location 0 otherwise + c e r
  • 48. Syndrome decoding • Let c be transmitted and r be received, where r = c + e e = error pattern = e1e2..... en, where The weight of e determines the number of errors. If the error pattern can be determined, decoding can be achieved by: c = r + e e i i th     1 if the error has occured in the location 0 otherwise + c e r
  • 49. Syndrome decoding • A 1 × (n − k) matrix called error syndrome matrix is calculated
  • 50. • Consider a (6,3) LBC parity matrix is given 𝑃 = 1 0 1 0 1 1 1 1 0 received code vector is R=[1 1 0 0 1 0]. Detect and correct the single error that has occurred due to noise
  • 51.
  • 52.
  • 53.
  • 54.
  • 55.
  • 56.
  • 57.
  • 58.
  • 59.
  • 60.
  • 61.
  • 62.
  • 63.
  • 64.
  • 65.
  • 66.
  • 67.
  • 68.
  • 69.
  • 70.
  • 71.
  • 72.
  • 73.
  • 74. For a linear lock code, the generator matrix is              1 1 1 1 1 0 1 0 1 0 1 1 1 0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 G •Compute the syndrome for the received vector [0110100] •Correct the error if any Realize the syndrome calculation circuit
  • 75. • If C is a valid code vector as calculated from C=DG, then prove that, CHT=0, where HT is the transpose of parity check matrix Consider the generator matrix
  • 76. Let i=3, then third row of [G] is given by G3=[ 0 0 1 0 1 1 1] 3rd element (4+2)th element
  • 77. • And parity check matrix j=2, then second row of [H] is given by H2=[ 1 1 1 0 0 1 0] 3rd element (4+2)th element
  • 78. g3h2T= 0 0 1 0 1 1 1 1 1 1 0 0 1 0
  • 79. g3h2T= 0 0 1 0 1 1 1 1 1 1 0 0 1 0
  • 80.
  • 81. Hamming weight, Hamming distance, Minimum distance of a block code
  • 82. Hamming weight, Hamming distance, Minimum distance of a block code
  • 83. • For the systematic (6,3) code, the code vector is given in table. Find the hamming weight of each code vector and the minimum distance dmin
  • 84.
  • 85. Types of errors Single-bit Error The term single-bit error means that only one bit of given data is changed from 1 to 0 or from 0 to 1 as shown in Fig
  • 86. Types of errors Burst Error The term burst error means that two or more bits in the data unit have changed from 0 to 1 or vice-versa. Note that burst error doesn’t necessary means that error occurs in consecutive bits. The length of the burst error is measured from the first corrupted bit to the last corrupted bit. Some bits in between may not be corrupted.
  • 87. Error detection and error correction capabilities of linear block codes
  • 88.
  • 89.
  • 90.
  • 91.
  • 92.
  • 93. • (n,k) LBC with minimum distance dmin can detect dmin-1 errors and correct (dmin-1)/2 errors