Article · Wikipedia archive · Last revised May 27, 2026

Forney algorithm

In coding theory, the Forney algorithm calculates the error values at known error locations. It is used as one of the steps in decoding BCH codes and Reed–Solomon codes. George David Forney Jr. developed the algorithm in 1965.

Last revised
May 27, 2026
Read time
≈ 3 min
Length
719 w
Citations
6
Source

In coding theory, the Forney algorithm (or Forney's algorithm) calculates the error values at known error locations. It is used as one of the steps in decoding BCH codes and Reed–Solomon codes (a subclass of BCH codes). George David Forney Jr. developed the algorithm in 1965.1

Procedure

Need to introduce terminology and the setup...

Code words look like polynomials. By design, the generator polynomial has consecutive roots αc, αc+1, ..., αc+d−2.

Syndromes

Error location polynomial2

Λ ( x ) = i = 1 ν ( 1 x X i ) = 1 + i = 1 ν λ i x i {\displaystyle \Lambda (x)=\prod _{i=1}^{\nu }(1-x\,X_{i})=1+\sum _{i=1}^{\nu }\lambda _{i}\,x^{i}}

The zeros of Λ(x) are X1−1, ..., Xν−1. The zeros are the reciprocals of the error locations X j = α i j {\displaystyle X_{j}=\alpha ^{i_{j}}} .

Once the error locations are known, the next step is to determine the error values at those locations. The error values are then used to correct the received values at those locations to recover the original codeword.

In the more general case, the error weights ej can be determined by solving the linear system

s 0 = e 1 α ( c + 0 ) i 1 + e 2 α ( c + 0 ) i 2 + {\displaystyle s_{0}=e_{1}\alpha ^{(c+0)\,i_{1}}+e_{2}\alpha ^{(c+0)\,i_{2}}+\cdots \,}
s 1 = e 1 α ( c + 1 ) i 1 + e 2 α ( c + 1 ) i 2 + {\displaystyle s_{1}=e_{1}\alpha ^{(c+1)\,i_{1}}+e_{2}\alpha ^{(c+1)\,i_{2}}+\cdots \,}
{\displaystyle \cdots \,}

However, there is a more efficient method known as the Forney algorithm, which is based on Lagrange interpolation. First calculate the error evaluator polynomial3

Ω ( x ) = S ( x ) Λ ( x ) ( mod x 2 t ) {\displaystyle \Omega (x)=S(x)\,\Lambda (x){\pmod {x^{2t}}}\,}

Where S(x) is the partial syndrome polynomial:4

S ( x ) = s 0 x 0 + s 1 x 1 + s 2 x 2 + + s 2 t 1 x 2 t 1 . {\displaystyle S(x)=s_{0}x^{0}+s_{1}x^{1}+s_{2}x^{2}+\cdots +s_{2t-1}x^{2t-1}.}

Then evaluate the error values:3

e j = X j 1 c Ω ( X j 1 ) Λ ( X j 1 ) {\displaystyle e_{j}=-{\frac {X_{j}^{1-c}\,\Omega (X_{j}^{-1})}{\Lambda '(X_{j}^{-1})}}\,}

The value c is often called the "first consecutive root" or "fcr". Some codes select c = 1, so the expression simplifies to:

e j = Ω ( X j 1 ) Λ ( X j 1 ) {\displaystyle e_{j}=-{\frac {\Omega (X_{j}^{-1})}{\Lambda '(X_{j}^{-1})}}}

Formal derivative

Λ'(x) is the formal derivative of the error locator polynomial Λ(x):3

Λ ( x ) = i = 1 ν i λ i x i 1 {\displaystyle \Lambda '(x)=\sum _{i=1}^{\nu }i\,\cdot \,\lambda _{i}\,x^{i-1}}

In the above expression, note that i is an integer, and λi would be an element of the finite field. The operator ⋅ represents ordinary multiplication (repeated addition in the finite field) which is the same as the finite field's multiplication operator, i.e.

i λ = ( 1 + + 1 ) λ = λ + + λ . {\displaystyle i\lambda =(1+\ldots +1)\lambda =\lambda +\ldots +\lambda .}

For instance, in characteristic 2, i λ = 0 , λ {\displaystyle i\lambda =0,\lambda } according as i is even or odd.

Derivation

Lagrange interpolation

Gill (n.d., pp. 52–54) gives a derivation of the Forney algorithm.

Erasures

Define the erasure locator polynomial

Γ ( x ) = ( 1 x α j i ) {\displaystyle \Gamma (x)=\prod (1-x\,\alpha ^{j_{i}})}

Where the erasure locations are given by ji. Apply the procedure described above, substituting Γ for Λ.

If both errors and erasures are present, use the error-and-erasure locator polynomial

Ψ ( x ) = Λ ( x ) Γ ( x ) {\displaystyle \Psi (x)=\Lambda (x)\,\Gamma (x)}
See also

See also

References

References

  1. Forney 1965
  2. Gill n.d., p. 24
  3. Gill n.d., p. 47
  4. Gill (n.d., p. 48)