Pixel Message Repair

Use fixed row and column parity checks to find and repair one changed data pixel.

Grades 4 to 5 · Computer Science

Save resource to class

Loading your classrooms…

Sign in to save

Bookmark this page so you can find it later.

LivePhysics staff accounts use their usual sign-in provider below.

Sign in to save

Bookmark this page so you can find it later.

LivePhysics staff accounts use their usual sign-in provider below.

Report an Error

Reported page · Simulation

Pixel Message Repair

/simulations/pixel-message-repair/

This helps us reproduce what you saw. Clear the link to leave it out.

or drop them here

Up to 3 images or PDFs, 5 MB per file. 0 of 3 attached.

Explore one idea

Pixel Message Repair

Your goal

Assume exactly one data pixel changed in transit. Find the mismatching row and column, mark their intersection, then flip that pixel to restore the original message.

1 of 3
Mismatching rows: 2. Mismatching columns: 3. Selected row 1, column 1. No valid one-error intersection marked. Use the intersection only under the exactly-one-error assumption. Message receiver • fixed even-parity checks1001011000101001110 OK0 OK221 FAIL1 OK331 OK1 FAIL440 OK0 OKOne changed pixelBad row + bad columnIdentify their intersectionStored row bits appear on the right; stored column bits below. 0 and 1 label every pixel.

Reduced motion is on. The controls still update the scene.

Mismatching rows: 2. Mismatching columns: 3. Selected row 1, column 1. No valid one-error intersection marked. Use the intersection only under the exactly-one-error assumption.

Received data pixels and fixed row parity bits
RowColumn 1Column 2Column 3Column 4Stored parityCheck
110010OK
201101FAIL
300101OK
410010OK

Fixed column parity bits: column 1: 0 (OK); column 2: 1 (OK); column 3: 1 (FAIL); column 4: 0 (OK).

Each starting message has exactly one changed data pixel and intact reference parity. Extra flips let you explore the limits: multiple errors cannot generally be located, and four corners of a rectangle can all change without failing any parity check. Matching parity alone does not prove a message is correct.

Learn with Pixel Message Repair

Pixel Message Repair shows how extra checking bits can help recover a damaged bitmap. Every starting message contains one changed data pixel, while its original row and column parity bits remain intact. Read the received zeros and ones, inspect the failing checks, and select the intersection of the mismatching row and column. Mark your prediction before flipping the pixel. Students can also change additional pixels to investigate the limits of this method, including patterns that pass every parity check despite containing errors. The activity explicitly separates matching checks from guaranteed correctness.

What to look for

Keep the reference

Stored parity bits describe the original message and never update when data changes.

Find the intersection

Exactly one changed data bit fails its row and column checks.

Know the assumption

Multiple errors may be ambiguous or invisible. Matching parity is not a guarantee of correctness.

For teachers and curious learners

Locate a single changed data bit at the intersection of mismatching parity checks. Ask students to predict what will happen, change one setting, and explain what they observe. Learn gives a starting point. Practice and Challenge offer new goals with the same scene.

Fixed even-parity checks on a 4 by 4 data bitmap with intact reference parity bits. Single data errors are localizable; arbitrary multiple errors are not reliably repairable.

← All simulations