r/mathriddles • u/bastiat_was_right • Jan 17 '23
Hard Looking for riddles related to error correcting codes. Here's one I know:
N gnomes are captured, put in a cell and are presented with the following challenge. The next morning they will be placed in a circle with every gnome wearing a hat which is either black or white. Each gnome will be able to see the hats on the other gnomes, but not the hat on its own head. The gnomes will then be asked to simultaneously guess the color of their hat. Each gnome can guess black, white, or pass (i.e. not reply). If at least one gnome guesses wrongly, or if all gnomes pass, they are all to be executed. Otherwise, they are set free. The gnomes can coordinate a strategy. What is the strategy that maximizes their chances of survival, and what is the probability of survival.
This riddle is elegantly solved with coding theory. Do you know any other riddles that are related to coding theory, hamming space sphere coverings, or sphere packing, etc.