12. Error detecting and correcting codes#
In the course of creating, transmitting, receiving, and deciphering the secret messages throughout this text, you have no doubt committed errors. Particularly when working “by hand” such errors are unavoidable. But even when codes are read by computers, an error can occur.
Wouldn’t it be great if there were some way to receive a message and know immediately that it had been transmitted incorrectly, tampered with, or misinterpreted? It may not come as a surprise to know that there is such as system. Codes that reveal or even correct errors have many applications in everyday life. We discuss a few of them here.