Extended Science

Error-correcting code

Definition

Deliberately adding controllable redundancy to detect and fix errors: fighting noise with spare bits.

Core rule: Add redundancy on demand within capacity to push error rates arbitrarily low (see Shannon's channel coding theorem); in design, trade off reliability vs. rate — repetition codes are inefficient, good codes achieve the same reliability with less redundancy.

On Friday, Richard Hamming left a batch of jobs with a computer and expected to collect the answers Monday. The machine could detect some errors, retry, and move on if a job still failed. He recalled coming back empty handed two weekends in a row.

If a machine already knew that something was wrong, could it find the bad bit and put it right?

An error-correcting code adds information that lets the receiver spot and repair certain errors. Follow what Hamming did after those weekends and you'll see what it takes to get past the alarm.

How it works

To see what the machine was missing, start by adding one check bit. If the number of ones is odd, add one more to make it even. If the count is already even, add a zero.

When the receiver gets an odd count, it knows something changed, but it can't point to the bit. Hamming recalled trying a grid and checking each row and column. One failed row meets one failed column at the error, like streets at a crossing.

  1. 01 · Noise flips bits During transmission or storage, random noise corrupts some of the information.
  2. 02 · Add redundancy Send extra check bits computed by a rule alongside the original information.
  3. +2 more mechanism steps & animation in the app

When it fails & limits

The next thing to check is what kinds of damage your insurance actually covers.

✦ Unlock full lesson in ConceptFlow

Unlock the full Error-correcting code lesson in ConceptFlow

You’ve read the core idea and opening case. Get the ConceptFlow app to continue through the full breakdown, failure modes, 5-minute audio lesson, and decision practice.

  • ▸5-minute English & Mandarin audio lesson
  • ▸5 more deep-dive case & mechanism insights
  • ▸All 5 failure boundaries & counter-examples
  • ▸4-point decision checklist + 6-step practice

Tap a store button on mobile, or scan with your phone camera on desktop.