THE HIDDEN SCIENCE OF EVERYDAY TECHNOLOGY • CHAPTER 05

Recovering the Impossible

Three experiments. All data are virtual. No real storage device or network is accessed.

Lab 1 — Repair a bit

Click any tile to flip it. Gold tiles are parity bits. Red outlines show differences from the original for the experiment only.

The decoder does not use the original. It assumes at most one error; two errors can be silently miscorrected.

Lab 2 — Rebuild a drive

Choose failed drives. Parity is distributed across the three stripes.

Lab 3 — Send a message to Earth

Or flip individual tiles. Each outlined box is an independent seven-bit codeword.

Code playground

The complete JavaScript functions used in this laboratory. Edit the sample and run it locally. Output is displayed below. This educational editor executes your code in a sandboxed iframe; use short programs and avoid infinite loops.

Return to the companion index