BCH Codes
7.1 INTRODUCTION
A large class of powerful random-error-correcting cyclic codes had been formed by BCH codes that made remarkable generalization of the Hamming codes for multiple error correction. BCH codes were invented in 1959 by Alexis Hocquenghem, and independently in 1960 by Raj Chandra Bose and Dwijendra Kumar Ray-Chaudhuri. Thus the code has been named as BCH (Bose Chaudhuri Hocquenghem) code. The cyclic structure of this code was observed and subsequently generalization of binary BCH codes to codes of p m symbols ( p is a prime) was done. However, in this chapter, the discussion will be confined to mainly binary BCH codes.
7.2 PRIMITIVE ELEMENTS
For any positive integers m (m ≥ 3) and t ( t < 2 m – 1), there exist a BCH code with following parameters.
Block length: | n = 2 m – 1 |
Number of parity-check digits: | n – k ≤ mt |
Minimum distance: | d min ≥ 2 t + 1 |
These features imply that this code is capable of correcting any combination of t or few numbers of errors in a block code n = 2 m – 1 digits and hence it is called t -error-correcting BCH code. The generator polynomial of this code is specified in terms of its roots from Galois field GF(2 m ). If α is the primitive element of GF(2 m ), then the generator polynomial g ( x ) of t- error - correcting BCH code of length 2 m – 1 is the lowest degree polynomial with the roots as α, α 2 , α 3 , ..., α 2 t and also the conjugates of them [i.e., g(α i ) = 0, for 1≤ i ≤ 2 t ]. If Φ i ( x ) has the root as α i , g ( x ) is least common multiple of Φ 1 ( x ), Φ 2 ( x ),…, Φ 2 t ( x ), i.e.,
If i is even integer, this can be expressed as i = k 2 l , where k is odd integer and l ≥ 1. Then α i has a conjugate α k , and hence α i and α k have same polynomial. Therefore, g ( x ) may be expressed as follows:
As the degree of each polynomial is m or less, the degree of g ( x ) is at most mt. From Eq. (7.2) , the single-error-correcting code may be generated by g ( x ) = Φ 1 ( x ).
Example 7.1: For n = 7 and k = 4, t = 1, this means single-error-correcting code may be generated. Similarly, for n = 15 and k = 11, t = 1 or this is also a single-error-correcting code. For n = 15, double error correction and 3-error correction can be achieved with k = 7 and k = 5, respectively.
7.3 MINIMAL POLYNOMIALS
If Φ( x ) is the polynomial with the coefficients from Galois field GF(2 m ), which is irreducible, it is called minimal polynomial. It has the degree ≤ m and it divides x 2 m + x . For example, the minimal polynomials of γ = α 7 in GF(2 4 ) is ɸ( x ) = 1 + x 3 + x 4 .
Minimal polynomials are obtained by solving the equation
ɸ( x ) = a 0 + a 1 x + a 2 x 2 + a 3 x 3 + x 4
where x is substituted by γ = α 7 and m = 4 for GF(2 4 ). The minimal polynomials generated by p ( x ) = x 4 + x + 1 are given at Table 7.1 .
Table 7.1 Minimal Polynomials in GF (2 4 ) Generated by p( x ) = x 3 + x + 1
| Conjugate Roots | Minimal Polynomials |
|---|---|
0 | x |
1 | x + 1 |
α, α 2 , α 4 , α 8 | x 4 + x + 1 |
α 3 , α 6 , α 9 , α 12 | x 4 + x 3 + x 2 + x + 1 |
α 5 , α 10 | x 2 + x + 1 |
α 7 , α 11 , α 13 , α 14 | x 4 + x 3 + 1 |
7.4 GENERATOR POLYNOMIALS
Using the minimal polynomials, Galois field of any order may be constructed and generator polynomials may be selected according to error-correction capability. A t -error-correcting BCH code, polynomial of code length of n = 2 m – 1 may be generated where each code polynomial has the roots α, α 2 , α 3 , …, α 2 t and their conjugates. Now if v ( x ) is the code polynomial from GF(2), it is divisible by the minimal polynomials Φ 1 ( x ), Φ 2 ( x ), …, Φ 2 t ( x ). Therefore, v ( x ) is also divisible by their least common multiple or generator polynomial g ( x ) , where g ( x ) = LCM {Φ 1 ( x ) · Φ 2 ( x ) · Φ 3 ( x ) … Φ 2 t ( x )}. A list of generator polynomial of binary BCH codes of block length up to 2 5 – 1 is given in Table 7.2 .
Table 7.2 Generator Polynomials of BCH Code
If t -error-correcting code polynomial v ( x ) = v 0 + v 1 x + v 2 x 2 + … + v n _ 1 x n – 1 of code length 2 m – 1 has the root α i , then
If we consider a matrix H consisting of the primitive elements that are the roots of the code vector as follows:
As v is a code vector, then v · H T = 0. (7.5)
The BCH code with minimum distance at least d 0 has no more than m ( d 0 – 1) parity-check digits and capable of correcting ( d 0 – 1)/2 or fewer errors. The lower bound on minimum distance is called the BCH bound.
A list of primitive elements for minimal polynomials for 1< m ≤ 6 is given in Table 7.3 .
Table 7.3 Primitive Elements of Minimal Polynomials
Example 7.2: If α be the primitive element of Galois field GF(2 4 ), with 1 + α + α 4 = 0, the minimal polynomials are
Double-error-correction BCH code of length n = 2 4 – 1 = 15 is generated by
Thus, this code is (15, 7) cyclic code of d min = 5.
Similarly, triple-error-correcting (15, 5) code with d min = 7 may be generated by the generator polynomial
7.5 DECODING OF BCH CODES
Let us consider that the transmitted code vector v ( x ) = v 0 + v 1 x + v 2 x 2 + … + v n _ 1 x n – 1 is received as r ( x ) = r 0 + r 1 x + r 2 x 2 + … + r n _ 1 x n – 1 . If e ( x ) is error introduced then
r ( x ) = v ( x ) + e ( x ) (7.6)
Syndrome vector can be calculated as
S = r · H T (7.7)
where H is given in Eq. (7.4) . The i th component of syndrome is S i = r (α i ), i.e., for 1≤ i ≤ 2 t
S i = r 0 + r 1 α i + r 2 α 2 i + … + r n _ 1 α ( n – 1) i (7.8)
It may be noticed that syndrome components are the elements in the field GF(2 m ). Dividing r ( x ) by the minimal polynomial Φ i ( x ) of α i , we have r ( x ) = a i ( x )Φ i ( x ) + b i ( x ), where b i ( x ) is the remainder with degree less than that of Φ i ( x ). Now Φ i (α i ) = 0, therefore
S i = r (α i ) = b i (α i ) (7.9)
Thus the syndrome components may be obtained by evaluating b i ( x ) with x = α i . Since α i is the root of each code polynomial and v (α i ) = 0, from Eqs. (7.6) and (7.9), for 1 ≤ i ≤ 2 t , we may relate the syndrome components with the error pattern as follows:
S i = r (α i ) = b i (α i ) \= e (α i ) (7.10)
It may be noticed that syndrome components S i depend on error pattern. Suppose there exists p number of errors in error pattern e ( x ) at locations x j 1 , x j 2 , ..., x jp , we may write
e ( x ) = x j 1 + x j 2 + x j 3 + … + x jp (7.11)
where 0 < j 1 < j 2 < ... < jp < n . From Eq. (7.10) , we may derive the following set of equations for S i .
In the above set of equations, the roots α j 1 , α j 2 , α j 3 , ..., α jp are unknown. Solving these equations we may find the error locations. Any method for solving these equations is a decoding algorithm for BCH codes.
For convenience, α j l is substituted by β 1 , such that α j 1 \= β l for 0 < l < n . The elements β l are called the error location numbers. Eq. (7.12) may be rewritten as follows:
The above set of equations are symmetric functions of β 1 , β 2 , β 3 , …, β p , which are known as power-sum symmetric functions. Let us consider the following polynomial.
The roots of σ( x ) are
which are the inverse of the error location numbers, and therefore σ( x ) is called as error location polynomial. σ 0 , σ 1 , σ 2 , ..., σ p are the elementary symmetric functions of β 1 , β 2 , β 3 , ..., β p . The coefficients of σ( x ) can be computed as per following relations.
The σ 0 , σ 1 , σ 2 , ..., σ p are known as the elementary symmetric functions of β 1 , β 2 , β 3 , ..., β p . From Eqs. (7.13) and (7.15) , we can relate the syndrome components by following Newton’s identities.
Solving the above equations for the elementary functions σ 0 , σ 1 , σ 2 , ..., σ p , we may find out the error locations β 1 , β 2 , β 3 , ..., β p . Eq. (7.16) may have many solutions. However, the solution that yields σ( x ) of minimal degree is to be considered for determining the error pattern. If p ≤ t, σ( x ) will give the actual error pattern e ( x ). Therefore, the error correction procedure for BCH codes may be described as follows:
- Computation of syndromes from the received polynomial r ( x ).
- Determining of error location polynomial σ( x ) from syndrome components S 1 , S 2 , S 3 , ..., S 2 t .
- Finding the roots of σ( x ) to determine the error location numbers β 1 , β 2 , β 3 , ..., β p and correction of errors in r ( x ) .
Finding the error location polynomial σ( x ) is most complicated and can be achieved by iterative process. The first step is to search a minimum degree polynomial σ (1) ( x ) whose coefficients satisfy the first Newton’s identity of Eq. (7.16) . In the next step, coefficients of σ (1) ( x ) are tested to satisfy the second Newton’s identity of Eq. (7.16) . If this satisfies, then σ (2) ( x ) = σ (1) ( x ). If the coefficients of σ (1) ( x ) do not satisfy the second Newton’s identity, a correction term is added to σ (1) ( x ) to form σ (2) ( x ) such that σ (2) ( x ) has minimum degree and satisfies second Newton’s identity. Next σ (2) ( x ) is to be tested for third Newton’s identity equation. This iteration process is to be continued till all the Newton’s identity equations are tested and finally the error location polynomial will be obtained after 2tth iteration such that σ( x ) = σ (2 t ) ( x ) .
Let the minimal degree polynomial at the μth step of iteration whose coefficients satisfy the first μ Newton’s identity equations be
To determine σ (μ + 1) ( x ), we compute the following.
The quantity d μ is called μth discrepancy. If d μ = 0, the coefficients of σ (μ) ( x ) satisfy the (μ + 1)th Newton’s identity and σ (μ + 1) ( x ) = σ (μ) ( x ). If d μ ≠ 0, a correction term is to be added as stated earlier. To find the correction term, we have to consider the step prior to μth step, say ρth step, where ρth discrepancy d ρ ≠ 0. If l ρ is the degree of the polynomial σ (ρ) ( x ), where ρ – l ρ has the largest value, then
After completion of iterative method, the final error location polynomial σ( x ) is determined. Now the error location numbers can be found simply by substituting 1, α, α 2 , ..., α n – 1 ( n = 2 m – 1) into σ( x ) and subsequently the error pattern e ( x ) may be obtained. Therefore, the decoding process is to be performed on a bit-by-bit basis.
Example 7.3: Consider the (15, 5) triple-error-correcting BCH code in Galois field GF(2 4 ) such that 1 + α + α 4 = 0. Assume that the code vector v = (000000000000000) has been received as r = (000101000000100).
Therefore,
r ( x ) = x 3 + x 5 + x 12
The minimal polynomials of α, α 2 , and α 4 are identical and
Φ 1 ( x ) = Φ 2 ( x ) = Φ 4 ( x ) = 1 + x + x 4
The minimal polynomials for α 3 and α 6 are
Φ 3 ( x ) = Φ 6 ( x ) = 1 + x + x 2 + x 3 + x 4
The minimal polynomial for α 5 is Φ 5 ( x ) = 1 + x + x 2
Dividing r ( x ) by above minimal polynomials, we obtain the remainders as follows:
b 1 ( x ) = 1, b 3 ( x ) = 1 + x 2 + x 3 , and b 5 ( x ) = x 2
Substituting α, α 2 , α 4 in b 1 ( x ), α 3 , α 4 in b 3 ( x ), and α 5 in b 5 ( x ), we obtain the syndrome components as S 1 = S 2 = S 4 = 1, S 3 = 1 + α 6 + α 9 = α 10 , S 6 = 1 + α 12 + α 18 = α 5 , and S 5 = α 10 . These results are obtained from the polynomial representations of the elements of GF(2 4 ) as in Table 7.4 .
Table 7.4 Polynomial Representation of Elements of GF(2 4 )
To find the error location polynomial, the iterative method as described above is used. The steps and results of iterative process are indicated in Table 7.5 . To begin the iterative process, for the first row, we assume μ = –1. Therefore, from Eqs. (7.17) and (7.18), σ (μ = –1) ( x ) = 1, d μ = –1 = 1 and l µ is the degree of σ (μ) ( x ).
For the next row μ = 0, σ (μ \= 0) ( x ) = σ (μ \= –1) ( x ) = 1 as d μ= –1 = 0. Now d μ = 0 = S 1 = 1 from Eq. (7.18) . Thus, the iterative process continues to develop till μ = 2 t. The algorithm maintained is as follows:
-
If d μ = 0, σ (μ + 1) ( x ) = σ (μ) ( x ) and 1 μ + 1 = l μ .
-
If d μ ≠ 0, another row to be found prior to μth, say ρth, such that ρ – l ρ is maximum and d ρ ≠ 0.
Then, σ (μ + 1) ( x ) is computed as from Eq. (7.19) . In either case
-
If polynomial σ 2 t ( x ) in the last row has the degree greater than t , there are more than t errors that cannot be located.
Table 7.5 Iterative Process to Find the Error Location
Thus, we obtain the error location polynomial
σ( x ) = 1 + x + α 5 x 3
We can verify that α 3 , α 10 , and α 12 are the roots of above error location polynomial σ( x ). The inverse of these roots are α 12 , α 5 , and α 3 . Hence, the error pattern is e ( x ) = x 3 + x 5 + x 12 . Adding e ( x ) with r ( x ) we can recover errorless code vector.
7.6 IMPLEMENTATION OF GALOIS FIELD
As discussed above, decoding of BCH codes requires computation using Galois field arithmetic that consists of mainly two operations—addition and multiplication. For addition operation, the resultant vector is the vector representation of the sum of the two field elements. The addition operation can be accomplished with circuit diagram shown in Figure 7.1 .
Two elements are loaded in registers A ( a 0 , a 1 , a 2 , a 3 ) and B ( b 0 , b 1 , b 2 , b 3 ) . Register A also serves as accumulator. The sum of two elements is available at the accumulator after applying triggering pulse to the adders.
Figure 7.1 Schematic for Addition Operation
Figure 7.2 Multiplication Scheme of a Field Element with a Fixed Element
Multiplication of field element by a fixed element may be carried out using shift registers as shown at Figure 7.2 . Let us consider the multiplication of field element B in GF(2 4 ) by primitive element α whose minimal polynomial is Φ( x ) = 1 + x + x 4 . The element B can be expressed as a polynomial with respect to α as B = b 0 + b 1 α + b 2 α 2 + b 3 α 3 . Using the fact α 4 = 1 + α, we obtain the equality, α Β = b 3 + ( b 0 + b 3 )α + b 1 α 2 + b 2 α 3 , which can be realized by the circuit as shown in Figure 7.2 .
Successive shifts of the shift register will generate the vector representation of successive powers of α according to the order in Galois field. If initially register is loaded with 1000, after 15th shift the register will contain 1000 again.
Now, let us consider the multiplication of two arbitrary field elements B and C , such that
B = b 0 + b 1 α + b 2 α 2 + b 3 α 3
C = c 0 + c 1 α + c 2 α 2 + c 3 α 3
The product BC may be written in the following form.
BC = ({[( c 3 B )α + c 2 B ]α + c 3 B }α + c 0 B )
The steps of multiplication may be described as follows:
- Multiply c 3 B by α and add to c 2 B .
- Multiply ( c 3 B )α + c 2 B by α and add to c 1 B .
- Multiply [( c 3 B )α + c 2 B )α + c 1 B by α and add to c 0 B .
Multiplication by α can be performed by the circuit as shown in Figure (7.2) . Overall computation for the multiplication of two field elements B and C can be carried out by the schematic circuit diagram as shown in Figure (7.3) . Here, the field elements B and C are loaded in the register B and register C, respectively. Register A is initially empty. After four simultaneous shifts of registers A and C, the desired product is available in register A.
The received vector r ( x ) may be computed in similar way. Figure 7.4 demonstrate the computation of r (α i ), where α is the primitive element of GF(2 4 ).
Figure 7.3 Multiplication Scheme for Two Field Elements
Figure 7.4 Computation of r(α i )
The received polynomial r (α) may be written as follows:
After 15th shift at shift register shown in Figure 7.4 , the register will contain r (α) in vector form. It may be noted that the figures explained for implementation of Galois field are not unique. Various circuits may be realized according to operator polynomials.
7.7 IMPLEMENTATION OF ERROR CORRECTION
As discussed earlier, corrected data at the receiver end require syndrome computation, error location polynomial search and error correction. These can be implemented either by digital hardware or by software programmed on a general purpose computer. The advantage of hardware implementation is faster computation; but software implementation is less expensive.
7.7.1 Syndrome Computation
Syndrome components S 1 , S 2 , . .. , S 2 t for t -error correction BCH code may be obtained by substituting the field elements α, α 2 , ..., α 2 t into the received polynomials r ( x ).
The computation consists of n – 1 additions and n – 1 multiplications which can be achieved by the hardware as described in Section 7.6. Since the generator polynomial is a product of at most t minimal polynomials, to form 2 t syndrome components it requires at most t feedback shift registers, each containing at most m stages. It takes n clock cycles for complete computation. A syndrome computation circuit schematic for double-error-correcting (15, 7) BCH code is shown in Figure 7.5 . As soon as the entire r ( x ) is received by the circuit, the 2 t syndrome components are formed.
7.7.2 Computation of Error Location Polynomial
Since there are t numbers of error location polynomials σ (μ) ( x ) and t numbers of discrepancies d μ , computation of them requires 2 t 2 additions and 2 t 2 multiplications. Addition and multiplication circuits are already discussed which can be used to realize them. Figure 7.6 demonstrates Chein’s searching circuit, the schematic for finding the error locations.
Error location polynomial σ( x ) of degree t is substituted by the field elements. Chein’s searching circuit consists of t multipliers for multiplying α, α 2 , ..., α t , respectively. Initially σ 1 , σ 2 , ..., σ t are loaded into the registers of multipliers. After l th shift, these register will contain σ 1 α l , σ 2 α 2 l , ..., σ t α tl . The sum 1 + σ 1 α l + σ 2 α 2 l + … + σ t α tl is computed by m -input OR/NOR gate. If the sum is zero, the error location number is α n – 1 . It requires n clock cycles to complete this step and k clock cycles to correct only the message bits.
Figure 7.5 Syndrome Computation Circuit for Double Error Correcting (15,7) BCH Code
Figure 7.6 Chein's Error Searching Circuit
7.8 NONBINARY BCH CODES
Apart from binary BCH codes, there exist nonbinary codes in Galois field. If p is a prime number and q is any power of p ( q = p m ), there are codes with symbols from the Galois field GF( q ) which are called q -ary codes. The concepts and properties of q -ary codes are similar to binary code with little modification. An ( n , k ) linear code with symbols from GF( q ) is a k -dimensional subspace of the vector space in GF( q ). A q -ary ( n , k ) cyclic code is generated by a polynomial of degree n – k with coefficients from GF( q ), which is a factor of x n – 1. Encoding and decoding of q -ary codes are similar to that of binary codes.
For any choice of positive integers s and t , there exists a q -ary BCH code of length n = q s – 1, which is capable of correcting any combination of t or fewer errors and requires no more than 2st parity-check digits. The generator polynomial g ( x ) of lowest degree with coefficients from GF( q ) for a t -error-correcting q -ary BCH code, which has the roots α, α 2 , ..., α 2 t , may be generated from the minimal polynomials Φ 1 ( x ), Φ 2 ( x ), …, Φ 2 t ( x ), such that
Each minimal polynomial has the degree s or less and hence the degree of g ( x ) is at most 2 st and the number of parity-check digits of the code is no more than 2 st . For q = 2, we obtain binary BCH code.
7.8.1 Reed-Solomon Code
Reed–Solomon code is one of the special subclass of q -ary BCH codes for which s = 1. A t -error-correcting Reed–Solomon code with primitive elements from GF( q ) has the following parameters:
Block length: | n = q – 1 |
Number of parity digits: | n – k = 2 t |
Minimum distance: | d min = 2 t + 1 |
It may be noted that the length of this code is one less than the size of code symbols and minimum distance is one greater than the number of parity-check digits. For q = 2 m with α as the primitive elements in GF(2 m ), the generator polynomial g ( x ) may be written as follows:
The code generated by g ( x ) is an ( n , n – 2 t ) cyclic code consisting of the polynomials of degree n – 1 or less with coefficients from GF(2 m ) that are multiples of g ( x ). Encoding of this code is similar to the binary BCH code. If the message polynomial a ( x ) = a 0 + a 1 x + a 2 x 2 + ... + a k – 1 x k – 1 + a k x k is to be encoded, where k = n – 2 t , remainder b ( x ) = b 0 + b 1 x + b 2 x 2 + ... + b 2 t – 1 x 2 t – 1 is obtained dividing x 2 t a ( x ) by g ( x ). This can be accomplished by the schematic circuit as shown in Figure 7.7 .
Here, the adders denotes the addition of two elements from GF(2 m ) and multipliers perform multiplication of field element from GF(2 m ) with a fixed element g i from the same field. Parity digits will be generated in the registers as soon as the message bits entered in the circuit.
Decoding of Reed–Solomon code is performed in similar process as described for binary BCH code. Decoding of this code consists of four steps: (1) computation of syndrome, (2) determining error location polynomial σ( x ) , (3) finding the error location numbers, and (4) evaluation of error values. The last step is not required in binary BCH code. If r ( x ), v ( x ), and e ( x ) are the received, transmitted, and error polynomials, respectively, then e ( x ) = r ( x ) – v ( x ). The syndrome components are obtained by substituting α i into received polynomial r ( x ) for i = 1, 2, 3, ..., 2 t . Thus for α j 1 = β l for 0 < l < p , we use Eq. (7.12) for q -ary BCH code and we have
Figure 7.7 Encoding Scheme for Nonbinary BCH Code
The syndrome components S i can also be computed by dividing r ( x ) by x + α i , which results in the equality
r ( x ) = c i ( x ) ( x + α i ) + b i (7.27)
The remainder b i is constant in GF(2 m ). Substituting α i in both sides of Eq. (7.27) , we obtain S i \= b i .
The error location polynomial is computed by iterative method, where
The error values can be determined by following computation. Let
For i ≠ l , the error values at location β l = α j l is expressed as follows:
Example 7.4: Consider a triple-error-correcting Reed–Solomon code with symbols from GF(2 4 ). The generator polynomial of this code is
Let all-zero transmitted vector be received as r = (000α 7 00α 3 00000α 4 00). Therefore, the received polynomial r ( x ) = α 7 x 3 + α 3 x 6 + α 4 x 12 . The syndrome components are calculated using Table 7.4 as follows:
To find the error location polynomial σ( x ), iterative process is used, steps of which is tabulated in Table 7.6 . The error location polynomial thus is found to be σ( x ) = 1 + α 7 x + α 4 x 3 + α 5 x 3 . Substituting 1, α, α 2 , ..., α 14 in σ( x ), we find α 3 , α 9 , and α 12 are the roots and hence the error locations are reciprocal of them as α 12 , α 6 , and α 3 . Now substituting the syndrome components in Eq. (7.29) , we obtain that z ( x ) = 1 + α 2 x + x 2 + α 6 x 3 . Using the error value relation as in Eq. (7.30) , we obtain e 3 = α 7 , e 6 = α 3 , and e 12 = α 4 . Thus, the error pattern is e ( x ) = α 7 x 3 + α 3 x 6 + α 4 x 12 . This is exactly similar to the error location as assumed. Decoding is complete by addition of received vector and error vector, i.e., r ( x ) + e ( x ) which is the desired data.
Table 7.6 Computation of Error Location Polynomial
Reed–Solomon codes are very effective for correction of multiple burst errors.
7.9 WEIGHT DISTRIBUTION
The minimum distance of a linear code is the smallest weight of any nonzero code word, and is important because it directly affects the number of errors the code can correct. However, the minimum distance says nothing about the weights of other code words in the code; and hence, it is necessary to look at the weight distribution of the entire code. It turns out that the weight distribution of many types of codes, including Hamming and BCH codes, is asymptotically normal (i.e., it approaches the normal distribution for large codes of a given variety). If A i is the number of code vectors of weight i in ( n , k ) linear code C , the numbers A 1 , A 2 , ., A n are called the weight distribution of C . If C is used only for error detection on a binary symmetric channel (BSC), the probability of undetected errors can be computed from the weight distribution of C . Since an undetected error occurs only when the error pattern is identical to nonzero code vector of C , the probability of undetected error P(E) may be expressed as follows:
where p is the transition probability of the BSC. If the minimum distance of C is d min , then A 1 to A d min – 1 are zero. It has been observed that the probability of undetected error P(E) for a double-error-correcting BCH code of length 2 m – 1 has the upper bound of 2 –2 m for p ≤ ½ , where 2 m is the number of parity digits of the code.
For t -error-correcting primitive BCH of length 2 m – 1 with mt number of parity-check digits, where m is greater than certain constant m 0 ( t ), it has been observed that the weight distribution satisfies the following equalities:
where n = 2 m – 1 and λ 0 is the upper bounded by a constant. From Eqs. (7.31) and (7.32) , we obtain the expression for probability of undetected error P ( E ).
For ε = (2 t + 1)/ n and p < ε, the summation term of Eq. (7.33)
Therefore, for p < ε, the upper bound of P ( E ) is given as follows:
Similarly, for p > ε, since
we have the upper bound of P ( E ) as follows:
It may be noticed that probability of undetected error reduces exponentially with number of parity-check digits, n – k. Therefore, incorporation of sufficiently large number of parity digits results in reduction of probability of undetected errors. For nonbinary case, the weight distribution of t -error-correcting Reed–Solomon codes of length q – 1 with symbols from GF( q ) is as follows:
7.10 SOLVED PROBLEMS
Problem 7.1: Find the generator polynomial of a triple-error-correcting BCH code with block length n = 31 over GF(2 5 ).
Solution:
Block length: | n = 2 m – 1 = 31, m = 5 |
Error-correction capability | t = 3 |
Number of parity-check digits: | n – k ≤ mt = 5 × 3 = 15 |
Minimum distance: | d min ≥ 2 t + 1 = 7 |
The minimal polynomials have the degree of less than or equal to 5 and they divide x 2 5 + x or x 32 + x . Triple-error-correcting BCH code of length 31 contains the lowest degree polynomial with the roots as α, α 2 , α 3 , ..., α 6 . The generator polynomial g ( x ) may be expressed as
g ( x ) = LCM {Φ 1 ( x ) · Φ 3 ( x ) · Φ 5 ( x )}
As the degree of each polynomial is 5, the degree of g ( x ) is at most 15. From Table 7.3 , the minimal polynomials are
Therefore,
Problem 7.2: Find the parity-check matrix of a double-error-correcting (15, 4) BCH code.
Solution: For double-error-correcting (15, 4) BCH code the generator polynomial is Φ 1 ( x ) = 1 + x + x 4 whose primitive element is α.
Then the parity-check matrix may be written as follows:
From the characteristics of primitive elements, we have α 15 = α 30 = 1, α 18 = α 33 = α 3 , α 21 = α 36 = α 6 , α 24 = α 39 = α 9 , and α 42 = α 12 . Due to conjugate elements of α, the Eq. (7.4) is reduced to
Using Table 7.4 , the equivalent polynomial and its 4-tuple representation we obtain the following parity-check matrix.
Problem 7.3: Construct a double-error-correcting BCH code over GF(2 3 ).
Solution:
Double-error-correction code may be generated by the generator polynomial
Problem 7.4: Construct the (15, 7) double-error-correcting BCH code and code word is C ( x ) = 1 + x 4 + x 6 + x 7 + x 8 . Determine the outcome of a decoder when C ( x ) incurs the error pattern e ( x ) = 1 + x 2 + x 7 .
Solution:
The generated code is (15, 7) and the minimal polynomials over GF(2 4 )
Double-error-correction BCH code is generated by the generator polynomial
For the code word C ( x ) = 1 + x 4 + x 6 + x 7 + x 8 incurring error as e ( x ) = 1 + x 2 + x 7 , the received vector r ( x ) = C ( x ) + e ( x ), i.e.,
Therefore, the decoder output is x 2 + x 4 + x 6 + x 8 .
Problem 7.5: Consider double-error-correcting code over GF(2 6 ) of the order of n = 21, where the element β = α 3 . Find the polynomial of minimum degree that has the roots β, β 2 , β 3 , and β 4 . Which BCH code may be developed?
Solution: The elements β, β 2 , and β 4 have the same polynomial, Φ 1 ( x ) = 1 + x + x 2 + x 4 + x 6 .
The element β 3 has the minimal polynomial Φ 2 ( x ) = 1 + x 2 + x 3 .
Therefore, the generator polynomial of minimum degree is
The above polynomial divides 1 + x 21 . As t = 2 and m = 6, k = n – mt = 9. Therefore, a (21, 9) BCH code may be generated.
Problem 7.6: Consider a triple-error-correcting binary BCH (15, 5) code with generator polynomial g ( x ) = 1 + x + x 2 + x 4 + x 5 + x 8 + x 10 . The received polynomial is r ( x ) = x 3 + x 5 . Find the code word.
Solution: For t -error-correcting BCH code, the error location can be obtained by solving the following relation of syndrome matrix form.
The syndromes are computed by substituting α i in the received polynomial r ( x ) = x 3 + x 5 for 1 ≤ i ≤ 2 t , where t is error-correction capability. Using the Table 7.4 , as t = 3, they are as follows:
The syndrome matrix is obtained as below (number or rows and columns are limited to t = 3)
Det [ M ] = 0, which implies that there are fewer than three errors are present in the received vector. Next matrix has generated for t ≤ 2, which given as
where Det [ M ] ≠ 0. Therefore, two errors have been occurred. Error location may be obtained from following matrix computation.
Solving the above equation, we obtain E 2 = α 8 and E 1 = α 11 . Thus, error polynomial is e ( x ) = 1 + α 11 x + α 8 x 2 . This may be written as e ( x ) = (1 + α 3 x ) (1 + α 5 x ). Therefore, the error locations are at α 3 and α 5 or e ( x ) = x 3 + x 5 . The code word may be computed as c ( x ) = r ( x ) + e ( x ) = x 3 + x 5 + x 3 + x 5 = 0. This means all-zero code word was sent.
MULTIPLE CHOICE QUESTIONS
-
For m = 4, what is the block length of the BCH code?
- 16
- 15
- 16
- none of these
Ans. (b)
-
What is the error-correction capability of a (15, 5) BCH code over GF(2 4 )?
- 1
- 2
- 3
- 4
Ans. (c)
-
If t is the error-correction capability of a BCH code what is the minimum distance of the code?
- 2 t
- 2 t + 1
- 2 t – 1
- none of these
Ans. (b)
-
For BCH code, if the received vector and computed error vector are r ( x ) and e ( x ), then the error-free code vector can be calculated as
- r ( x ) · e ( x )
- r ( x )/ e ( x )
- r ( x ) + e ( x )
- none of these
Ans. (c)
-
For (15, 5) BCH code, if the roots of error location polynomial α( x ) are α 2 , α 7 , and α 9 , then error polynomial e ( x ) is
- x 2 + x 7 + x 9
- x 6 + x 8 + x 13
- x 7 + x 12 + x 14
- none of these
Ans. (b)
-
For a BCH code, if the minimal polynomials are Φ i ( x ) (1 ≤ i ≤ 7), the generator polynomial g ( x ) of triple error correction is
- LCM{Ф 1 ( x )Ф 2 ( x )}
- LCM{Ф 1 ( x )Ф 3 ( x )}
- LCM{Ф 1 ( x )Ф 2 ( x )Ф 3 ( x )}
- LCM{Ф 1 ( x )Ф 3 ( x )Ф 5 ( x )}
Ans. (d)
-
A BCH code over GF(2 6 ) can produce the code maximum error capability of
- 6
- 8
- 10
- 12
Ans. (c)
-
A (63, 15) BCH code over GF(2 6 ) can produce the code maximum error capability of
- 6
- 8
- 10
- 12
Ans. (b)
REVIEW QUESTIONS
-
Determine all generator polynomials for block length 31.
-
Decode the BCH code of block length 3, if the received polynomials are r 1 ( x ) = x 7 + x 30 and r 2 ( x ) = 1 + x 17 + x 28 .
-
Prove that the syndrome components related as S 2 i = S i 2 .
-
If a BCH code of length n = 2 m – 1 has t -error-correcting capability and 2 t + 1 is a factor of n , prove that the minimum distance of the code is exactly 2 t + 1.
-
Using p ( x ) = 1 + x 2 + x 5 devise a circuit that is capable of multiplying two elements in GF(2 5 ).
-
Devise a syndrome computation circuit for a double-error-correcting (31, 21) BCH code.
-
A t -error-correcting Reed–Solomon code of GF(2 m ) has the generator polynomial g ( x ) = ( x + α)( x + α 2 )( x + α 3 ) … ( x + α 2t ).
Show that it has error-correction capability of 2 t – 1, where α is the primitive element.
-
Device a syndrome computation circuit for single-error Reed–Solomon code of block length 15 from field of GF(2 4 ).
-
Find the generator polynomial of double-error-correcting Reed–Solomon code of block length 15 over GF(2 4 ). Decode the received polynomial r ( x ) = α x 3 + α 11 x 7 .