Codepiko · Computer science: Error detection: parity magic
Card magician
Goal: Use added extra information to find damaged data.
Time: 30 min · You need: Pencil; for class play, 36 cards coloured on one side
1. Add the magic cards
Every row and every column must have an even number of coloured squares. Fill in the right-hand column and the bottom row to make this true: colour a square if needed, leave it empty if not. Do not forget the corner square.
2. Which card was flipped?
Magic cards were added to this grid, then one card was flipped. Find the row and the column with an odd number of coloured squares. The flipped card is where they cross; circle it.
3. Think
Write short answers.
How did the magician find the flipped card? Explain in your own words.
What would happen if two cards were flipped?
codepiko.com