Menu

Reed–Solomon error correction, worked by hand
📰

Reed–Solomon error correction, worked by hand

DEV Community: datascience·David Mashiah·6 days ago
#JvCycnO0
#devtodatascience#science#devto#dev#symbols
Long article (1022 words) — no AI summary yet.
Reading 0:00
15s threshold

Reed–Solomon codes repair damaged data instead of only noticing it. The idea fits in one sentence, and the whole mechanism can be checked by hand with four numbers and arithmetic mod 7. Here it is, step by step.

Reed–Solomon error correction adds n − k parity symbols to k data symbols. The receiver can then rebuild the data after losing any n − k symbols at known positions, or after half as many errors at positions it does not know.

A check digit can tell you that a number is wrong. It cannot tell you what the number should have been. Reed–Solomon codes can, and they are why a scratched QR code still scans.

I wrote about what that means on a loading bay in a note about scratched labels . This one is the mechanism itself, worked through with numbers small enough to check on paper.

The idea in one sentence

Treat your data as the coefficients of a polynomial, and send more values of that polynomial than you strictly need.

A line is fixed by any two of its points.…

Continue reading — create a free account

Join HashtagPLUS to read full articles, follow hashtags, vote, and join the conversation.