The Three Switches
-
Downstairs in a house are three identical on-off switches. One of them controls the lamp in the attic. The puzzle is to work out which switch controls the lamp. The rules are as follows. You are allowed to manipulate the switches all you like, and then you are allowed a single trip to the attic. How do you do it? To clarify: When you are downstairs there is no way to see into the attic, or see reflected light from the attic. Once you have gone to the attic you are not allowed back to the switches. <edit>you can also assume original state of all switches to be off.</edit><hint>Otherwise it won't work</hint> Note: If you already know the answer, or reads the newspaper where I nicked the puzzle from, then please don’t write it up immediately in the comments! Give those who have never heard it before a chance to suffer, I mean enjoy finding the solution.
Wrong is evil and must be defeated. - Jeff Ello
It's an analog solution, don't think in digital terms...unless you are well-versed in three-state logic. And yes the solution will work with CFL or LED bulbs, none of them are 100% efficient.
-
Wouldn't work in this house: some of the switches are "top for off", others are "bottom for off"...:sigh: One of these days I'll sort it out, but I'm afraid the writing won't take changes and I don't want to have to redecorate... :laugh:
Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...
The "correct" answer requires knowing when a switch is "on" or "off".
Truth, James
-
Downstairs in a house are three identical on-off switches. One of them controls the lamp in the attic. The puzzle is to work out which switch controls the lamp. The rules are as follows. You are allowed to manipulate the switches all you like, and then you are allowed a single trip to the attic. How do you do it? To clarify: When you are downstairs there is no way to see into the attic, or see reflected light from the attic. Once you have gone to the attic you are not allowed back to the switches. <edit>you can also assume original state of all switches to be off.</edit><hint>Otherwise it won't work</hint> Note: If you already know the answer, or reads the newspaper where I nicked the puzzle from, then please don’t write it up immediately in the comments! Give those who have never heard it before a chance to suffer, I mean enjoy finding the solution.
Wrong is evil and must be defeated. - Jeff Ello
The definite CORRECT solution (It's not the "official" solution) http://ericlippert.com/2011/02/14/what-would-feynman-do/[^]
Truth, James
-
Downstairs in a house are three identical on-off switches. One of them controls the lamp in the attic. The puzzle is to work out which switch controls the lamp. The rules are as follows. You are allowed to manipulate the switches all you like, and then you are allowed a single trip to the attic. How do you do it? To clarify: When you are downstairs there is no way to see into the attic, or see reflected light from the attic. Once you have gone to the attic you are not allowed back to the switches. <edit>you can also assume original state of all switches to be off.</edit><hint>Otherwise it won't work</hint> Note: If you already know the answer, or reads the newspaper where I nicked the puzzle from, then please don’t write it up immediately in the comments! Give those who have never heard it before a chance to suffer, I mean enjoy finding the solution.
Wrong is evil and must be defeated. - Jeff Ello
That was one of the three questions I was asked during an interview with a firm in Westlake Village. I got the job, so I guess I gave the answer that they wanted. Really, it's about common sense. The other question was to solve an equation for variables. It was perhaps solvable or not, but if you experimented by putting in some values, you figured out that any variables where y was x*2 and z was x*3 would work. I thought they were good tests. Common sense and problem solving.
-
Downstairs in a house are three identical on-off switches. One of them controls the lamp in the attic. The puzzle is to work out which switch controls the lamp. The rules are as follows. You are allowed to manipulate the switches all you like, and then you are allowed a single trip to the attic. How do you do it? To clarify: When you are downstairs there is no way to see into the attic, or see reflected light from the attic. Once you have gone to the attic you are not allowed back to the switches. <edit>you can also assume original state of all switches to be off.</edit><hint>Otherwise it won't work</hint> Note: If you already know the answer, or reads the newspaper where I nicked the puzzle from, then please don’t write it up immediately in the comments! Give those who have never heard it before a chance to suffer, I mean enjoy finding the solution.
Wrong is evil and must be defeated. - Jeff Ello
Okay, I had to think threw it a bit. Of course, my first reaction to the solution was my father yelling at me! And the hint is that you have to change 1 inspection to inspect for 2 potential details, to overcome the 3:1 input:output problem Nice puzzle
-
Downstairs in a house are three identical on-off switches. One of them controls the lamp in the attic. The puzzle is to work out which switch controls the lamp. The rules are as follows. You are allowed to manipulate the switches all you like, and then you are allowed a single trip to the attic. How do you do it? To clarify: When you are downstairs there is no way to see into the attic, or see reflected light from the attic. Once you have gone to the attic you are not allowed back to the switches. <edit>you can also assume original state of all switches to be off.</edit><hint>Otherwise it won't work</hint> Note: If you already know the answer, or reads the newspaper where I nicked the puzzle from, then please don’t write it up immediately in the comments! Give those who have never heard it before a chance to suffer, I mean enjoy finding the solution.
Wrong is evil and must be defeated. - Jeff Ello
correct answer assuming all the switches are in the OFF position to begin with is, since you only can make one trip and you dont know which one it is. You turn them ALL on, and then can go. This is a waste of electricity but NOT a waste of time. so depending on the time frame, you can play with switches and guess/deduce with one it "probably" is but .... turning them ALL on, solves the puzzle. :)
-
Took me a couple minutes, but I remembered the answer... It's a nice warm-up problem... :)
Proud to have finally moved to the A-Ark. Which one are you in?
Author of the Guardians Saga (Sci-Fi/Fantasy novels) -
The classic solution (which I won't give away) may not work too well with modern LED globes! CFLs maybe. Cheers, Peter
Software rusts. Simon Stephenson, ca 1994. So does this signature. me, 2012
-
Downstairs in a house are three identical on-off switches. One of them controls the lamp in the attic. The puzzle is to work out which switch controls the lamp. The rules are as follows. You are allowed to manipulate the switches all you like, and then you are allowed a single trip to the attic. How do you do it? To clarify: When you are downstairs there is no way to see into the attic, or see reflected light from the attic. Once you have gone to the attic you are not allowed back to the switches. <edit>you can also assume original state of all switches to be off.</edit><hint>Otherwise it won't work</hint> Note: If you already know the answer, or reads the newspaper where I nicked the puzzle from, then please don’t write it up immediately in the comments! Give those who have never heard it before a chance to suffer, I mean enjoy finding the solution.
Wrong is evil and must be defeated. - Jeff Ello
Had this question at a job interview. It's a lateral thinking exercise. My experience with software development over 35 years is that lateral thinking is virtually never a part of the mental toolkit for software development. Oh, by the way, the solution requires that the bulb be an incandescent bulb. It won't work with an LED bulb or electroluminescent night light.
-
Downstairs in a house are three identical on-off switches. One of them controls the lamp in the attic. The puzzle is to work out which switch controls the lamp. The rules are as follows. You are allowed to manipulate the switches all you like, and then you are allowed a single trip to the attic. How do you do it? To clarify: When you are downstairs there is no way to see into the attic, or see reflected light from the attic. Once you have gone to the attic you are not allowed back to the switches. <edit>you can also assume original state of all switches to be off.</edit><hint>Otherwise it won't work</hint> Note: If you already know the answer, or reads the newspaper where I nicked the puzzle from, then please don’t write it up immediately in the comments! Give those who have never heard it before a chance to suffer, I mean enjoy finding the solution.
Wrong is evil and must be defeated. - Jeff Ello
-
Downstairs in a house are three identical on-off switches. One of them controls the lamp in the attic. The puzzle is to work out which switch controls the lamp. The rules are as follows. You are allowed to manipulate the switches all you like, and then you are allowed a single trip to the attic. How do you do it? To clarify: When you are downstairs there is no way to see into the attic, or see reflected light from the attic. Once you have gone to the attic you are not allowed back to the switches. <edit>you can also assume original state of all switches to be off.</edit><hint>Otherwise it won't work</hint> Note: If you already know the answer, or reads the newspaper where I nicked the puzzle from, then please don’t write it up immediately in the comments! Give those who have never heard it before a chance to suffer, I mean enjoy finding the solution.
Wrong is evil and must be defeated. - Jeff Ello
Here's my problem with the accepted solution -- How do you know that these aren't 3-way switches?? "One of them controls the lamp in the attic" -- which says nothing about whether the other two switches also control the lamp in the attic.
-
Downstairs in a house are three identical on-off switches. One of them controls the lamp in the attic. The puzzle is to work out which switch controls the lamp. The rules are as follows. You are allowed to manipulate the switches all you like, and then you are allowed a single trip to the attic. How do you do it? To clarify: When you are downstairs there is no way to see into the attic, or see reflected light from the attic. Once you have gone to the attic you are not allowed back to the switches. <edit>you can also assume original state of all switches to be off.</edit><hint>Otherwise it won't work</hint> Note: If you already know the answer, or reads the newspaper where I nicked the puzzle from, then please don’t write it up immediately in the comments! Give those who have never heard it before a chance to suffer, I mean enjoy finding the solution.
Wrong is evil and must be defeated. - Jeff Ello
-
Downstairs in a house are three identical on-off switches. One of them controls the lamp in the attic. The puzzle is to work out which switch controls the lamp. The rules are as follows. You are allowed to manipulate the switches all you like, and then you are allowed a single trip to the attic. How do you do it? To clarify: When you are downstairs there is no way to see into the attic, or see reflected light from the attic. Once you have gone to the attic you are not allowed back to the switches. <edit>you can also assume original state of all switches to be off.</edit><hint>Otherwise it won't work</hint> Note: If you already know the answer, or reads the newspaper where I nicked the puzzle from, then please don’t write it up immediately in the comments! Give those who have never heard it before a chance to suffer, I mean enjoy finding the solution.
Wrong is evil and must be defeated. - Jeff Ello
Its so simple.. you turn ON ALL switches
-
Downstairs in a house are three identical on-off switches. One of them controls the lamp in the attic. The puzzle is to work out which switch controls the lamp. The rules are as follows. You are allowed to manipulate the switches all you like, and then you are allowed a single trip to the attic. How do you do it? To clarify: When you are downstairs there is no way to see into the attic, or see reflected light from the attic. Once you have gone to the attic you are not allowed back to the switches. <edit>you can also assume original state of all switches to be off.</edit><hint>Otherwise it won't work</hint> Note: If you already know the answer, or reads the newspaper where I nicked the puzzle from, then please don’t write it up immediately in the comments! Give those who have never heard it before a chance to suffer, I mean enjoy finding the solution.
Wrong is evil and must be defeated. - Jeff Ello
I'd say I'll use logic gates for this one. Not sure if it will be valid, don't care either if it is or not. :laugh: :laugh: Say we are talking about OR gates, we can have a single switch be turned differently from the other two switches. We will then have 1+0+0=1 or 1+1+0=1. Then the lamp is on.
-
Downstairs in a house are three identical on-off switches. One of them controls the lamp in the attic. The puzzle is to work out which switch controls the lamp. The rules are as follows. You are allowed to manipulate the switches all you like, and then you are allowed a single trip to the attic. How do you do it? To clarify: When you are downstairs there is no way to see into the attic, or see reflected light from the attic. Once you have gone to the attic you are not allowed back to the switches. <edit>you can also assume original state of all switches to be off.</edit><hint>Otherwise it won't work</hint> Note: If you already know the answer, or reads the newspaper where I nicked the puzzle from, then please don’t write it up immediately in the comments! Give those who have never heard it before a chance to suffer, I mean enjoy finding the solution.
Wrong is evil and must be defeated. - Jeff Ello
Assuming the bulb is incandescent and the switches are 1 -2 - 3 turn on switches 1 and 3 - wait 10 minutes - turn off switch three go to the attic - if the light is on, switch one activates the lamp if the light is off, feel the bulb if it is warm, switch 3 activates the lamp if it is cold, switch 2 activates the lamp. SushiSlayer
-
Downstairs in a house are three identical on-off switches. One of them controls the lamp in the attic. The puzzle is to work out which switch controls the lamp. The rules are as follows. You are allowed to manipulate the switches all you like, and then you are allowed a single trip to the attic. How do you do it? To clarify: When you are downstairs there is no way to see into the attic, or see reflected light from the attic. Once you have gone to the attic you are not allowed back to the switches. <edit>you can also assume original state of all switches to be off.</edit><hint>Otherwise it won't work</hint> Note: If you already know the answer, or reads the newspaper where I nicked the puzzle from, then please don’t write it up immediately in the comments! Give those who have never heard it before a chance to suffer, I mean enjoy finding the solution.
Wrong is evil and must be defeated. - Jeff Ello
-
Downstairs in a house are three identical on-off switches. One of them controls the lamp in the attic. The puzzle is to work out which switch controls the lamp. The rules are as follows. You are allowed to manipulate the switches all you like, and then you are allowed a single trip to the attic. How do you do it? To clarify: When you are downstairs there is no way to see into the attic, or see reflected light from the attic. Once you have gone to the attic you are not allowed back to the switches. <edit>you can also assume original state of all switches to be off.</edit><hint>Otherwise it won't work</hint> Note: If you already know the answer, or reads the newspaper where I nicked the puzzle from, then please don’t write it up immediately in the comments! Give those who have never heard it before a chance to suffer, I mean enjoy finding the solution.
Wrong is evil and must be defeated. - Jeff Ello
I haven't looked at the other posts yet, so I'm throwing my solution in before I go reading. Turn on the first switch. Wait a while. Turn off the first switch. Turn on the second switch. Go upstairs. If the light is on, it's the second switch. If the light off, feel the bulb. If it's hot, it's the first switch, otherwise it's the third switch.
-
Downstairs in a house are three identical on-off switches. One of them controls the lamp in the attic. The puzzle is to work out which switch controls the lamp. The rules are as follows. You are allowed to manipulate the switches all you like, and then you are allowed a single trip to the attic. How do you do it? To clarify: When you are downstairs there is no way to see into the attic, or see reflected light from the attic. Once you have gone to the attic you are not allowed back to the switches. <edit>you can also assume original state of all switches to be off.</edit><hint>Otherwise it won't work</hint> Note: If you already know the answer, or reads the newspaper where I nicked the puzzle from, then please don’t write it up immediately in the comments! Give those who have never heard it before a chance to suffer, I mean enjoy finding the solution.
Wrong is evil and must be defeated. - Jeff Ello
I attempted to prove the solution is viable but in the attempt I broke my ankle stumbling over all the junk in the pitch black attic as I tried to get to the light. :(( >>> Mental note: Only attempt this during the daytime and only for attics with windows <<< :laugh:
- Kelly