Every time you download a file, stream a song, or save a photo, the bits travel through wires, radio and storage that occasionally flip a 0 into a 1. A cosmic ray, a scratched disk, a noisy cable â and your data is silently wrong. How does the machine on the other end know?
The answer is almost always a cyclic redundancy check (CRC): a short number â often just 32 bits â appended to your message. The receiver recomputes it and compares. If they differ, the data is corrupt and gets re-sent. It costs only a handful of cheap bit operations, yet it catches virtually every realistic error.
The trick is a beautiful piece of algebra: treat the entire message as one enormous polynomial, divide it by a fixed generator polynomial, and keep the remainder. That remainder is the CRC. Change a single bit anywhere, and the remainder changes too.
Comments
Loading comments...