[Math] A gameshow logic puzzle

logicpuzzle

A friend posed this puzzle to me a few months ago, and it has tortured me ever since. The puzzle goes something like this:

Suppose you're on a gameshow, and there are three doors: two doors have a goat, and one door has a car. There are also two lights: one red, and one green. If you ask any yes or no question, one of the lights will go off indicating a yes/no answer. The problem is you don't know which light is "yes" and which light is "no." If you are able to ask two questions, what questions should you ask so that you always get the car?

I've come up with a few "strategies" to the problem. For instance, if I ask "does door 1 have a goat?" and "does door 2 have a goat?" and the same light goes off both times, the car must be behind door 3. This breaks though if different lights go off, since I'd then know the car must be behind door 1 or 2, but I can't be sure of which one. I could also use my first question to determine which light is yes and which is no by asking "is my name Glare?" but then it's not possible to locate the car with my remaining question (is it?).

A solution would be appreciated, but if there is something really obvious that I'm not seeing, a hint would be nice too.

EDIT: I know this is similar to the Monty Hall problem, but I assure you that this is how the problem was given to me. In the event that my friend was lying about the existence of a winning strategy, could someone prove that a solution does not exist (for my peace of mind)?

Best Answer

You can ask, "If someone asked if the car is behind door 1, would the green light light up?"

If green means yes and the car is behind door 1, then the green light will light up. If green means yes, but the car is behind another door, the red light will light up.

If green means no and the car is behind door 1, the green light will light up for no. If green means no and the car is behind another door, the red light will light up for yes.

Thus with this question we can figure out if the car is behind door 1 or not. Then we can ask, "If someone asked if the car is behind door 2, would the green light light up?" This will give us all the information we need.

Related Question