Reed-Solomon Error Correction — Definition, Formula & Example
Reed-Solomon error correction is a way to protect data by treating a message as the coefficients of a polynomial. You send that polynomial's values at more points than you need, so the receiver can rebuild the message even when some values are lost or corrupted.
Let be a finite field, let be distinct elements of (so ), and let . The Reed-Solomon code is the set . It is an linear code. Because it meets the Singleton bound with equality, it is maximum distance separable (MDS).
Key Formula
Where:
- = The message symbols, which are elements of
- = Distinct evaluation points in
- = The codeword of length that is transmitted
- = Minimum distance. The code corrects up to errors or up to erasures.
Worked Example
Problem: Work over (arithmetic mod 7) with , , and evaluation points . Encode the message . Then find the code's minimum distance. Finally, suppose only the symbols at positions and arrive. Recover the message from them.
Step 1: The message gives . Evaluate it at each point and reduce mod 7.
Step 2: Two different polynomials of degree at most 1 can agree at no more than 1 point. So any two codewords differ in at least positions. This matches the formula and gives the number of correctable errors.
Step 3: The received values are and . A line is fixed by two points, so you can solve for it. Division mod 7 means multiplying by an inverse, and because .
Answer: The codeword is . The code is a code over , so it corrects any 2 symbol errors. From just 2 of the 6 symbols, the receiver recovers the message . That is 4 erasures repaired.
Why It Matters
Reed-Solomon codes protect QR codes, which work over so that each symbol is one byte. This lets a QR code scan correctly even with part of it torn or covered. They also protect CDs and DVDs, RAID 6 disk arrays, and deep-space links such as Voyager's. They handle burst errors well because a whole corrupted byte counts as only one symbol error.
Common Mistakes
Mistake: Claiming that a Reed-Solomon code with redundant symbols can correct errors.
Correction: It can fill in erasures, which are lost symbols whose positions are known. It can correct only errors when their positions are unknown. Locating each unknown error uses up a second redundant symbol.
