Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. The Lounge
  3. The Three Switches

The Three Switches

Scheduled Pinned Locked Moved The Lounge
htmllampcomquestion
47 Posts 37 Posters 1 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • J Offline
    J Offline
    Jorgen Andersson
    wrote on last edited by
    #1

    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

    OriginalGriffO Richard DeemingR D I Richard Andrew x64R 26 Replies Last reply
    0
    • J Jorgen Andersson

      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

      OriginalGriffO Offline
      OriginalGriffO Offline
      OriginalGriff
      wrote on last edited by
      #2

      Two ways I can think of: 1) Look at the effect of each switch on other lights in the house. The one that doesn't have any effect is the attic one (or a bulb is blown) 2) Send the wife up to the attic and tell her to yell when the light goes on!

      Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

      "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
      "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

      J J 2 Replies Last reply
      0
      • J Jorgen Andersson

        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

        Richard DeemingR Offline
        Richard DeemingR Offline
        Richard Deeming
        wrote on last edited by
        #3
        1. Turn all the switches off;
        2. Go to the attic;
        3. Remove the bulb from the lamp;

        The correct answer is now "none of them". :-D


        "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

        "These people looked deep within my soul and assigned me a number based on the order in which I joined" - Homer

        OriginalGriffO 1 Reply Last reply
        0
        • J Jorgen Andersson

          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

          D Offline
          D Offline
          dandy72
          wrote on last edited by
          #4

          Do you know, before you start flipping switches, whether the light is already on?

          J 1 Reply Last reply
          0
          • J Jorgen Andersson

            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 Offline
            I Offline
            Ian Shlasko
            wrote on last edited by
            #5

            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)

            V 1 Reply Last reply
            0
            • Richard DeemingR Richard Deeming
              1. Turn all the switches off;
              2. Go to the attic;
              3. Remove the bulb from the lamp;

              The correct answer is now "none of them". :-D


              "These people looked deep within my soul and assigned me a number based on the order in which I joined." - Homer

              OriginalGriffO Offline
              OriginalGriffO Offline
              OriginalGriff
              wrote on last edited by
              #6

              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...

              "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
              "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

              J J 2 Replies Last reply
              0
              • D dandy72

                Do you know, before you start flipping switches, whether the light is already on?

                J Offline
                J Offline
                Jorgen Andersson
                wrote on last edited by
                #7

                Well spotted.

                Wrong is evil and must be defeated. - Jeff Ello

                1 Reply Last reply
                0
                • OriginalGriffO OriginalGriff

                  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...

                  J Offline
                  J Offline
                  Jorgen Andersson
                  wrote on last edited by
                  #8

                  Well, he didn't state top or bottom, he stated off. :)

                  Wrong is evil and must be defeated. - Jeff Ello

                  OriginalGriffO 1 Reply Last reply
                  0
                  • OriginalGriffO OriginalGriff

                    Two ways I can think of: 1) Look at the effect of each switch on other lights in the house. The one that doesn't have any effect is the attic one (or a bulb is blown) 2) Send the wife up to the attic and tell her to yell when the light goes on!

                    Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

                    J Offline
                    J Offline
                    Jorgen Andersson
                    wrote on last edited by
                    #9

                    Those are practical solutions, not adjusted for silly puzzles. My wife wouldn't go up to the attic in any case.

                    Wrong is evil and must be defeated. - Jeff Ello

                    OriginalGriffO _ 2 Replies Last reply
                    0
                    • J Jorgen Andersson

                      Those are practical solutions, not adjusted for silly puzzles. My wife wouldn't go up to the attic in any case.

                      Wrong is evil and must be defeated. - Jeff Ello

                      OriginalGriffO Offline
                      OriginalGriffO Offline
                      OriginalGriff
                      wrote on last edited by
                      #10

                      I'm a practical person! :laugh:

                      Jörgen Andersson wrote:

                      My wife wouldn't go up to the attic in any case.

                      Too many spiders? (Can't stand the venomous little buggers, myself)

                      Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

                      "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
                      "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

                      J 1 Reply Last reply
                      0
                      • J Jorgen Andersson

                        Well, he didn't state top or bottom, he stated off. :)

                        Wrong is evil and must be defeated. - Jeff Ello

                        OriginalGriffO Offline
                        OriginalGriffO Offline
                        OriginalGriff
                        wrote on last edited by
                        #11

                        If you don't know what they control, you don't know which way is on... ;)

                        Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

                        "I have no idea what I did, but I'm taking full credit for it." - ThisOldTony
                        "Common sense is so rare these days, it should be classified as a super power" - Random T-shirt

                        J 1 Reply Last reply
                        0
                        • OriginalGriffO OriginalGriff

                          I'm a practical person! :laugh:

                          Jörgen Andersson wrote:

                          My wife wouldn't go up to the attic in any case.

                          Too many spiders? (Can't stand the venomous little buggers, myself)

                          Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

                          J Offline
                          J Offline
                          Jorgen Andersson
                          wrote on last edited by
                          #12

                          Mice traps, or rather the reason for them.

                          Wrong is evil and must be defeated. - Jeff Ello

                          1 Reply Last reply
                          0
                          • OriginalGriffO OriginalGriff

                            If you don't know what they control, you don't know which way is on... ;)

                            Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

                            J Offline
                            J Offline
                            Jorgen Andersson
                            wrote on last edited by
                            #13

                            OriginalGriff wrote:

                            If you don't know what they control, you don't know which way is on

                            So if you know that they control a lamp in the attic... :doh:

                            Wrong is evil and must be defeated. - Jeff Ello

                            1 Reply Last reply
                            0
                            • J Jorgen Andersson

                              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

                              Richard Andrew x64R Offline
                              Richard Andrew x64R Offline
                              Richard Andrew x64
                              wrote on last edited by
                              #14

                              What's the purpose of going to the attic if you cannot go back to the switches afterward?

                              The difficult we do right away... ...the impossible takes slightly longer.

                              1 Reply Last reply
                              0
                              • J Jorgen Andersson

                                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

                                R Offline
                                R Offline
                                R Giskard Reventlov
                                wrote on last edited by
                                #15

                                I send a drone to the attic with a camera so I can see which switch switches the light on.

                                1 Reply Last reply
                                0
                                • J Jorgen Andersson

                                  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

                                  P Offline
                                  P Offline
                                  Peter_in_2780
                                  wrote on last edited by
                                  #16

                                  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

                                  R G D S I 6 Replies Last reply
                                  0
                                  • J Jorgen Andersson

                                    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

                                    M Offline
                                    M Offline
                                    Member 11762424
                                    wrote on last edited by
                                    #17

                                    if the light is incandescent or halogen, it will get hot if left on. so switch on the first switch, and get distracted for 10 minutes, switch it off, switch on the next one and race upstairs. If the light is on, it is that 2nd switch. If it is off but hot, it was the first switch. Else it is the third switch. If it's an energy-efficient bulb, this won't work.

                                    J M 2 Replies Last reply
                                    0
                                    • OriginalGriffO OriginalGriff

                                      Two ways I can think of: 1) Look at the effect of each switch on other lights in the house. The one that doesn't have any effect is the attic one (or a bulb is blown) 2) Send the wife up to the attic and tell her to yell when the light goes on!

                                      Bad command or file name. Bad, bad command! Sit! Stay! Staaaay...

                                      J Offline
                                      J Offline
                                      JimmyRopes
                                      wrote on last edited by
                                      #18

                                      OriginalGriff wrote:

                                      Send the wife up to the attic and tell her to yell when the light goes on!

                                      :thumbsup:

                                      Once you lose your pride the rest is easy. In the end, only three things matter: how much you loved, how gently you lived, and how gracefully you let go of things not meant for you. – Buddha

                                      1 Reply Last reply
                                      0
                                      • J Jorgen Andersson

                                        Those are practical solutions, not adjusted for silly puzzles. My wife wouldn't go up to the attic in any case.

                                        Wrong is evil and must be defeated. - Jeff Ello

                                        _ Offline
                                        _ Offline
                                        _Asif_
                                        wrote on last edited by
                                        #19

                                        Yup, same goes to my wife, she wont do it in any case :)

                                        1 Reply Last reply
                                        0
                                        • J Jorgen Andersson

                                          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

                                          L Offline
                                          L Offline
                                          Lost User
                                          wrote on last edited by
                                          #20

                                          Our AI teacher on CS faculty gave us this assignment (and other of similar type about 15 years ago) to promote analog type of thinking ... meaning that not everything is about zeros and ones in computer science.

                                          1 Reply Last reply
                                          0
                                          Reply
                                          • Reply as topic
                                          Log in to reply
                                          • Oldest to Newest
                                          • Newest to Oldest
                                          • Most Votes


                                          • Login

                                          • Don't have an account? Register

                                          • Login or register to search.
                                          • First post
                                            Last post
                                          0
                                          • Categories
                                          • Recent
                                          • Tags
                                          • Popular
                                          • World
                                          • Users
                                          • Groups