ITC-09
ITC-09
Dr.A.Manikandan,
Associate Prof/ECE, Amrita School of Engineering.
1
Learning Objective
2
Error detection
❖ When bits are transmitted over the channel, they are subject to get corrupted due
to interference and network problems.
❖ A parity bit, or check bit, is a bit added to a string of binary code. Parity bits are
used as the simplest form of error detecting code. Parity bits are generally
applied to the smallest units of a communication protocol
❖ Example : 1 0 1 1
• The basic idea behind error correcting codes is to add a certain amount of
redundancy to the message prior to its transmission through the noisy channel.
This redundancy is basically some extra symbols, added in a known manner.
• The encoded message when transmitted through the channel might get corrupted
due to the noise in channel.
• At the receiver, the original message can be recovered from the corrupted one if
the number of errors is within the limit for which the coding strategy has been
designed.
• Hamming code is useful for both detection and correction of error present in the
received data. This code uses multiple parity bits and we have to place these
parity bits in the positions of powers of 2.
• It is a (7,4) code.
• Error correcting capability in terms of the number of errors that I can rectify.
• Block code consists of a set of fixed length codewords. The fixed length of these
codewords is called Block length.
• Code rate of an (n,k) is defined as the ration k/n, and reflects the fraction of the
codeword that consists of information symbols.
AMRITA VISHWA VIDYAPEETHAM 2/3/2025 10
Terminologies
• Minimum weight of the code is the smallest weight of any non-zero codeword,
denoted by 𝜔*
• The code C={0000, 1010, 0101, 1111} is a linear block code of length n=4.
Codeword1 Codeword2 Sum
0000 0000 0000
0000 1010 1010
0000 0101 0101
0000 1111 1111
1010 0101 1111
1010 1010 0000
1010 1111 0101
0101 0101 0000
0101 1111 1010
AMRITA VISHWA VIDYAPEETHAM 2/3/2025 14
Hamming distance
Minimum distance =2
Determine the set of code words for the (7, 4) code with the generator matrix
Codewords
Parity Check matrix
• Parity check matrix H of a linear code C the matrix whose columns form a base of
the subspace orthogonal to C, which is denoted C⊥. The subspace C⊥ is defined as
the set of all vectors of C (i.e., to all codewords).
• A parity check matrix provides a simple method of detection whether an error has
occurred or not.
• This methodology, however will fail if the errors in the transmitted codeword
exceeds the number of error for which the coding scheme is designed.
• If G of an (n, k) linear code is expressed in systematic form, the parity-check
matrix H will be of the form:
• Determine the parity-check matrix of the (7, 4) code with the generator matrix
• The code C contains nonzero codeword of Hamming weight w or less if and only if a linearly
dependent set of w columns of H exists.
• A systematic encoder for a block code is one that maps each data-word into a codeword with
a k data symbols unmodified in the first k symbols of the codeword. The remaining symbols
are called as check symbols.
• The minimum distance of any linear (n,k) block code satisfies, 𝑑𝑚𝑖𝑛 ≤ 1 + 𝑛 − 𝑘
𝑑𝑚𝑖𝑛 −1
• Maximum number of errors that can be corrected (with guarantee) is
2
Determine the parity-check matrix H for the (5, 3) code. Show that G · HT = 0