Hamming syndrome repair
Locate one flipped bit using three overlapping parity checks.
Adult planning suggestion: about 9–12 · Logic & rule checking
- Players
- 2–3 per group
- Time
- 15–25 minutes
- Materials
- Seven position cards, parity sets and bit sheet.
Prepare
Number seven bit positions 1–7 from left to right. Data occupy 3,5,6,7; parity occupies 1,2,4. Use even parity on sets {1,3,5,7}, {2,3,6,7}, {4,5,6,7}. The channel in this paper round flips at most one bit; make that promise before decoding.
Follow the rule
Encode data 1,0,1,1 by choosing the three parity bits so every set has an even sum. Copy the complete code to a new received row, then let the host privately flip one position. Keep the original row covered while the checker works.
Check each step
For the received word calculate s 1,s 2,s 4: each is its parity-set sum modulo 2. Form e=s 1+2 s 2+4 s 4. If e is 1–7, flip that position; if zero, do not flip. Recheck all three parity sets before reading data positions 3,5,6,7.
Worked example
The original code is 0110011. Flipping position 6 gives 0110001, with s 1=0,s 2=1,s 4=1, so e=6. Correcting position 6 restores the original data 1011. A syndrome is a position index, not the number of errors.
Finish and adapt
Use ten trios for thirty learners: encoder, channel host and decoder, then rotate. A two-bit corruption can point to a third position and must not be presented as safely corrected by this seven-bit kit. Zero syndrome is not a guarantee against arbitrary multiple errors. This is not an extended SECDED implementation.
Purpose, observation and provenance
Within this activity: Locate one flipped bit using three overlapping parity checks.
Ask which three check sets identify a position and what assumption permits the flip.
Our rules, examples and printable diagrams are separately prepared. The earliest inventor of the broader mechanism is not established here.
Rutgers DIMACS — Hamming codes — Primary classroom parity-code material; our bit ordering and worked message are explicitly specified.
Secondary practice: Cooperation and explaining a check.
For a class of 30, use ten groups of three. Prepare one player-material set per group and keep the host key with the adult. Rotate operator, recorder and checker after each worked example; a reader or scribe may help without choosing answers. Avoid public ranking or diagnostic labels.
Age bands are planning suggestions. Background references may address older learners and do not validate suitability for this age band. Goals describe observable actions, not measured long-term gains or institutional endorsement.
Free alternative: Copy the supplied grids, labels and cards onto reused paper. No specialist product is needed. Adults may prepare pieces or act as a scribe.
Printable materials
Preview at 100% scale, with browser headers and footers off. Cut with suitable help. Keep host keys separate. This is a manual tabletop kit, not an online opponent, automatic judge or solver.
Hamming syndrome repair · Player materials
Before you start
Number seven bit positions 1–7 from left to right. Data occupy 3,5,6,7; parity occupies 1,2,4. Use even parity on sets {1,3,5,7}, {2,3,6,7}, {4,5,6,7}. The channel in this paper round flips at most one bit; make that promise before decoding.
Encode data 1,0,1,1 by choosing the three parity bits so every set has an even sum. Copy the complete code to a new received row, then let the host privately flip one position. Keep the original row covered while the checker works.
Compute each received parity-set sum modulo 2. Let e=s1+2s2+4s4. For e from 1 to 7 flip that position; for zero change none. Recheck all three parities, then read data positions 3,5,6,7. This correction assumes at most one flipped bit.
| Position | 1 | 2 | 3 | 4 | 5 | 6 | 7 |
|---|---|---|---|---|---|---|---|
| Role | p1 | p2 | d1 | p4 | d2 | d3 | d4 |
| Encode | 1 | 0 | 1 | 1 | |||
| Received | 0 | 1 | 1 | 0 | 0 | 0 | 1 |
| Check | Positions | Remainder |
|---|---|---|
| s1 | 1,3,5,7 | |
| s2 | 2,3,6,7 | |
| s4 | 4,5,6,7 |
| e=s1+2s2+4s4 | Corrected / data |
|---|---|
| ________ | ________ |
| ________ | ________ |
Hamming syndrome repair · Host key — keep separate
Even checks encode 1011 as 0110011. Received 0110001 has syndrome 6 and corrects to 0110011.
Run and audit
Number seven bit positions 1–7 from left to right. Data occupy 3,5,6,7; parity occupies 1,2,4. Use even parity on sets {1,3,5,7}, {2,3,6,7}, {4,5,6,7}. The channel in this paper round flips at most one bit; make that promise before decoding.
Encode data 1,0,1,1 by choosing the three parity bits so every set has an even sum. Copy the complete code to a new received row, then let the host privately flip one position. Keep the original row covered while the checker works.
For the received word calculate s 1,s 2,s 4: each is its parity-set sum modulo 2. Form e=s 1+2 s 2+4 s 4. If e is 1–7, flip that position; if zero, do not flip. Recheck all three parity sets before reading data positions 3,5,6,7.
The original code is 0110011. Flipping position 6 gives 0110001, with s 1=0,s 2=1,s 4=1, so e=6. Correcting position 6 restores the original data 1011. A syndrome is a position index, not the number of errors.
Use ten trios for thirty learners: encoder, channel host and decoder, then rotate. A two-bit corruption can point to a third position and must not be presented as safely corrected by this seven-bit kit. Zero syndrome is not a guarantee against arbitrary multiple errors. This is not an extended SECDED implementation.
Observe and support
Ask which three check sets identify a position and what assumption permits the flip.
Use large paper marks or a scribe when needed. A valid example is not a uniqueness or long-term learning claim.