Error Correction and Detection
Error Correction and Detection
Error Correction and Detection
Error Detection
and
Correction
10.1 Copyright © The McGraw-Hill Companies, Inc. Permission required for reproduction or display.
Note
10.2
10-1 INTRODUCTION
10.3
Note
10.4
Figure 10.1 Single-bit error
10.5
Note
10.6
Figure 10.2 Burst error of length 8
10.7
Note
10.8
Figure 10.3 The structure of encoder and decoder
10.9
Note
10.10
10-2 BLOCK CODING
10.11
Figure 10.5 Datawords and codewords in block coding
10.12
Figure 10.6 Process of error detection in block coding
10.13
Example 10.2
10.14
Example 10.2 (continued)
10.15
Table 10.1 A code for error detection (Example 10.2)
10.16
Note
10.17
Figure 10.7 Structure of encoder and decoder in error correction
10.18
Example 10.3
10.19
Example 10.3 (continued)
1. Comparing the received codeword with the first
codeword in the table (01001 versus 00000), the
receiver decides that the first codeword is not the one
that was sent because there are two different bits.
10.21
Note
10.22
Figure 10.4 XORing of two single bits or two words
10.23
Example 10.4
10.24
Note
10.25
Example 10.5
10.26
Example 10.6
Solution
We first find all the Hamming distances.
10.27
Note
10.28
Example 10.7
10.29
Example 10.8
10.30
Note
10.31
Example 10.9
Solution
This code guarantees the detection of up to three errors
(s = 3), but it can correct up to one error. In other words,
if this code is used for error correction, part of its capability
is wasted. Error correction codes need to have an odd
minimum distance (3, 5, 7, . . . ).
10.32
10-3 LINEAR BLOCK CODES
10.33
Note
10.34
Example 10.10
10.36
Note
10.37
Table 10.3 Simple parity-check code C(5, 4)
10.38
Example: Parity Check
Suppose the sender wants to send the word world. In
ASCII the five characters are coded (with even parity)
as
1110111 1101111 1110010 1101100 1100100
The following shows the actual bits sent
11101110 11011110 11100100 11011000 11001001
39
Example: Parity Check
Receiver receives this sequence of words:
11111110 11011110 11101100 11011000 11001001
Which blocks are accepted? Which are rejected?
40