The Ten Prisoners & Parity Hat Line
Save 9 out of 10 prisoners—and maybe all 10—using one bit of binary parity communication.
10 prisoners stand in single file facing forward; each wears a random red or blue hat they cannot see, while seeing every hat ahead of them. From back to front, each must guess their own hat color aloud (saying only 'Red' or 'Blue'). With an agreed strategy beforehand, how many prisoners can they GUARANTEE survive?
Why This Puzzle Matters: Intuition vs. Proof
This celebrated puzzle directly mirrors parity-check bits used in ECC computer memory and QR codes: a single checksum bit enables deterministic error recovery across an entire sequence.
Takeaway Pattern for Similar Teasers
Pause before calculating blindly when reading paradoxes like The Ten Prisoners & Parity Hat Line. Check hidden invariants, information asymmetries, and edge boundaries—the exact habits that turn tough riddles into clear insights.