Recovering the Impossible
Chapter Field Guide
- Value changed, position unknown
- ERASURE
- Missing value, position known
- DELETION
- File record removed
Measurable Learning Outcomes
- Place parity bits at powers-of-two positions (1, 2, 4) to form a Hamming(7,4) codeword.
- Calculate a 3-bit syndrome to pinpoint and flip back any single corrupted bit.
- Use bitwise XOR across disk blocks to reconstruct a failed drive in a RAID-5 stripe.
Core Scientific Intuition
Richard Hamming noticed that if parity bits check overlapping subsets of positions corresponding to binary place values (1, 2, 4), the failing parity checks literally spell out the binary address (syndrome) of the broken bit. In storage arrays, bitwise XOR across drives works the same way: if one drive fails, XORing all surviving drives reproduces the missing drive exactly.
Units & assumptions: Bitwise XOR (⊕) is self-inverse (A ⊕ A = 0) and works for one failed drive per stripe.
Worked Example
If D1 = 1010 and D2 = 1100, then parity P = 1010 XOR 1100 = 0110. If D2 fails, compute D1 XOR P = 1010 XOR 0110 = 1100, restoring D2 bit-for-bit.
Hands-On Exploration
Interactive Laboratory
Test the concepts directly with 4 interactive panels, live controls, and visual feedback.
Open Interactive Lab →Three Guided Projects
Structured experiments with hypotheses, boundary tests, hints, and reflection prompts.
View 3 Projects →Source Code (5 Snippets)
Inspect byte-identical printed JavaScript blocks, download `.js` files, or test runnable blocks in the isolated sandbox.
Browse Code →Self-Check Quiz (5 Questions)
Immediate explanations for every choice, unlimited retries, and local-only score tracking.
Take Self-Check Quiz →Book Chapter Outline (Reference Guide)
Section headings from Volume 1 for cross-referencing with the printed book.
Show all 33 book section headings
- A guide to recovering missing or damaged information.
- The drive that vanished
- Try the impossible
- A scientist who taught machines to repair mistakes
- Richard Wesley Hamming (1915 to 1998)
- The question that changed everything
- A mistake is different from a missing piece
- Redundancy is planned extra information
- A mathematical limit
- Seven bits protect four
- Why powers of two?
- Find the wrong bit without the original
- Build a one-bit repair machine
- Experiment
- XOR: the secret of missing blocks
- Try it with pencil and paper
- How storage survives a failed drive
- Rebuild a virtual drive
- What if a second drive fails?
- Gone from the directory, not always from the disk
- A signal from Mars
- The cost of waiting
- Send a protected message to Earth
- Challenge
- The case of the damaged rover report
- Your mission
- Now invent
- When mathematics cannot bring data back
- Answers to the detective mission
- What you know now
- Scientific vocabulary and sources
- Further reading and references
- Next chapter
Primary Sources & Further Reading
External links are provided for independent verification and deeper study. Link availability can change over time; see the Resources page for verification notes.