Assume a received vector with
errors and f erasures. Let
, the error
locators and
, the
erasure locators.
Define the erasure locator polynomial:
Decoding is done according to the following steps:
The error and erasure values are
where
Example: Error/erasure decoding using a (7,3)
Reed-Solomon code
Let the received polynomial be
Assume two erasures at locations
. Then,
Replace the erased coordinates by zeros and compute the syndromes:
The modified syndrome polynomial is given by:
Now apply the Berlekamp algorithm to find
:
Therefore,
Next, find polynomials
and
:
Finally, compute the error and erasure magnitudes:
The corresponding codeword is: