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.
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 polynomial
Λ(x)=
\nu | |
\prod | |
i=1 |
(1-xXi)=1+
\nu | |
\sum | |
i=1 |
λixi
The zeros of Λ(x) are X1-1, ..., Xν-1. The zeros are the reciprocals of the error locations
Xj=
ij | |
\alpha |
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 can be determined by solving the linear system
s0=e1
(c+0)i1 | |
\alpha |
+e2
(c+0)i2 | |
\alpha |
+ …
s1=e1
(c+1)i1 | |
\alpha |
+e2
(c+1)i2 | |
\alpha |
+ …
…
However, there is a more efficient method known as the Forney algorithm, which is based on Lagrange interpolation. First calculate the error evaluator polynomial
\Omega(x)=S(x)Λ(x)\pmod{x2t
Where is the partial syndrome polynomial:
S(x)=s0x0+s1x1+s2x2+ … +s2t-1x2t-1.
Then evaluate the error values:
ej=-
| ||||||||||||||||
|
The value is often called the "first consecutive root" or "fcr". Some codes select, so the expression simplifies to:
ej=-
| ||||||||||
|
See main article: Formal derivative.
Λ'(x) is the formal derivative of the error locator polynomial Λ(x):
Λ'(x)=
\nu | |
\sum | |
i=1 |
i ⋅ λixi-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+\ldots+1)λ=λ+\ldots+λ.
iλ=0,λ
gives a derivation of the Forney algorithm.
Define the erasure locator polynomial
\Gamma(x)=\prod(1-x
ji | |
\alpha |
)
If both errors and erasures are present, use the error-and-erasure locator polynomial
\Psi(x)=Λ(x)\Gamma(x)