A 90-minute mathematics mission
GLITCH!
Can mathematics repair a broken message?
Dr. Mudassir Shabbir Department of Computer Science · LUMS
Impossible mind-reading
Flip one card. I’ll find it.
Choose a random pattern—or flip as many of the 25 center cards as you like.
Start with any pattern you want.
The intersection gives it away
One flipped square trips exactly two alarms.
Meet Near-Ice Life Analyzer (NILA)
A small robot, a frozen ocean, and one very expensive flashlight.
Become NILA’s laser
Choose the number of lights
Ice sample collected
MISSION EMERGENCY
1011Mission emergency
1010Possible biological pattern
1010
1011
Add a watchdog light
Repeat the whole message
Spread valid messages apart
Budget exceeded
Make the total number of green lights even.
000011111010Message A
1011Message B
Assume every neighborhood packs perfectly.
Six flashes still run out far too early.
Each protected message occupies:
One flipped bit draws one edge.
Every seven-bit word appears once. Neighbors differ in exactly one position—one possible transmission error. Each bit gets its own direction in this symmetric projection.
Hover or tap a point. Can two amber points ever be neighbors?
0000000
Its seven one-flip neighbors are highlighted.
Every damaged position needs its own alarm pattern.
Three inspectors each answer yes or no. How many different patterns can they report?
Not proof of life—proof that Earth heard NILA correctly.
Hamming distance
- Compare the bits in the same positions.
- Count every position where the bits differ.
- Circle each pair that could belong to a one-error-correcting code.
10110101011000
00000001110000
11001101010101
A = 1, B = 3, C = 4
Pairs B and C are far enough apart. Pair A is only one flip apart.
One-flip neighbors
0101101
- Flip bit 1 and record the new word.
- Restore it, then repeat for bits 2 through 7.
- Count the original word and all its neighbors.
Your paper should contain seven different neighbors and one neighborhood size.
110110100011010111101
010010101010010101111
0101100
Inspector signatures
- For each position, decide whether P4, P2, and P1 watch it.
- Write the complaint pattern in the order P4 P2 P1.
- Read the pattern as a binary number.
| Position | P4 P2 P1 | Sum |
|---|---|---|
| 3 | ___ | ___ |
| 5 | ___ | ___ |
| 6 | ___ | ___ |
| 7 | ___ | ___ |
3 = 0115 = 101 6 = 1107 = 111
The complaint pattern is the binary address of the damaged position.
Guided encoding
- Choose P1 so positions 1, 3, 5, and 7 have even parity.
- Repeat for P2 on 2, 3, 6, and 7.
- Repeat for P4 on 4, 5, 6, and 7.
1100110
Audit the three inspector groups. Every group contains an even number of ones.
Independent encoding
1101
- Draw positions 1 through 7 and label the parity positions.
- Place the four data bits in positions 3, 5, 6, and 7.
- Choose all three parity bits, then audit every group.
Submit one seven-bit codeword and three parity checks.
1010101
Guided decoding
1000111
- Test P1 on positions 1, 3, 5, and 7.
- Test P2 and P4 in the same way.
- Add the labels of the complaining inspectors.
- Flip that position, then read data positions 3, 5, 6, and 7.
complaints: P1 + P4syndrome 51000011data 0011
Complete decode
0101100
- Find the syndrome without using a group diagram.
- Repair the indicated bit.
- Extract the four data bits.
- Verify the repaired word with all three parity checks.
Show the syndrome, repaired codeword, recovered data, and parity audit.
0111100data 1100
All three groups have even parity after bit 3 changes from 0 to 1.
Add one overall parity light
8 flashes can correct one error and detect two.
Pack better codes
Search for large sets of far-apart bit strings. Compare constructions with counting bounds.
Turn it into a graph
Connect confusable messages. Error-correcting codes become independent sets.
Burst errors
Several neighbouring flashes fail together. Can interleaving spread the damage?
Missing flashes
A light disappears and shifts everything. Explore deletion-correcting codes.
Soft decoding
The detector reports confidence, not just red/green. How should likelihood guide repair?
Quantum errors
Qubits cannot simply be copied. How can parity-like ideas protect quantum states?
QR codes
Still scan when parts are dirty or covered.
Storage
Detect and repair corrupted bits on disks and memory.
Wireless
Recover messages from interference and weak signals.
Space links
Protect data when retransmission is slow and costly.
Can Hamming code rescue a damaged page?
Damaged text will appear here.
Recovered text will appear here.
Will damaged HTML still behave like a webpage?
Can we repair all of War and Peace?
Loading book preview…
Damaged text will appear here.
Recovered text will appear here.
It made the message harder to destroy.
When in doubt, say it again.
Send one bit n times. Decode by majority vote.
111[3,1,3] corrects 1 error
11111[5,1,5] corrects 2 errors
1111111[7,1,7] corrects 3 errors
Every possible received word belongs to exactly one message.
IMAGE DATA
[24, 12, 8]
- Correct any 3 flipped bits.
- Detect up to 7 errors when only detecting.
- Golay-family decoding served real deep-space links.
2 · 6 · 1 · 9 · 8 · 9 · 1
We did not copy the message. We sent enough points to rebuild its rule.