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. Einstein's Riddle (A Challenging Logic Puzzle)

Einstein's Riddle (A Challenging Logic Puzzle)

Scheduled Pinned Locked Moved The Lounge
htmlcomquestion
46 Posts 25 Posters 0 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 J Dunlap

    :cool: ~20 mins for me... used Excel but not for anything I couldn't have done by drawing out some columns on a piece of paper (albeit slower - no copy n paste). Thanks for posting :-)

    A Offline
    A Offline
    AspDotNetDev
    wrote on last edited by
    #16

    Not bad, not bad at all!

    [Forum Guidelines]

    1 Reply Last reply
    0
    • L Lost User

      aspdotnetdev wrote:

      Or maybe that only 2% of people could prove their solution without making the simplifying assumption that only one solution exists?

      Or that only 2% of the population could do it entirely in their head? :)

      A Offline
      A Offline
      AspDotNetDev
      wrote on last edited by
      #17

      Doing it entirely in my head would probably take a good long while.

      [Forum Guidelines]

      1 Reply Last reply
      0
      • T Tom Lawton

        It helps if you do Sudoku regularly. Less than 30 mins on paper!

        N Offline
        N Offline
        Nergal_Perm
        wrote on last edited by
        #18

        I agree with you. Train your logic and it will be an easy riddle for you! By the way, Sudoku is a part of Japanese school program, as far as I remember.

        1 Reply Last reply
        0
        • A AspDotNetDev

          One of the emails CP sends out linked to this (don't scroll too far down or you'll see the answer). Usually, I would be most interested in the programming portion, but for this particular puzzle I found the logic to be the most interesting part, so I decided to solve it myself. I solved it in 1 to 2 hours, but I'm not entirely sure if I cheated or not. Basically, I solved as much of it as I could using logic, then I tried a few possible combinations until I got a result that satisfied all the criteria (I assumed there was only 1 solution). Since I did it by hand (well, using Excel to quickly copy/paste), I'm thinking it wouldn't be considered cheating. In any event, it's a fun puzzle and I encourage you all to attempt it when you have a bit of time to focus (and report the results back here!). Also, that 98% of people would not be able to solve this seems silly. Do you think he meant 98% of people would not be able to solve this within a certain timeframe? Or maybe that only 2% of people could prove their solution without making the simplifying assumption that only one solution exists? If you want to see a solution fully explained, see here. Also, Wikipedia explains the solution to a variant of the puzzle. I have not read either, but thought I'd include those links for you more, erm, productive individuals. ;)

          [Forum Guidelines]

          M Offline
          M Offline
          MikeD 2
          wrote on last edited by
          #19

          wow, grey cell exercise on a thursday morning 40 mins on paper including 2 client phone calls and the wife wanting an opinion with a client issue oh and an amount of crossing out : :laugh: Thank you (and einstein) for the challenge

          1 Reply Last reply
          0
          • A AspDotNetDev

            One of the emails CP sends out linked to this (don't scroll too far down or you'll see the answer). Usually, I would be most interested in the programming portion, but for this particular puzzle I found the logic to be the most interesting part, so I decided to solve it myself. I solved it in 1 to 2 hours, but I'm not entirely sure if I cheated or not. Basically, I solved as much of it as I could using logic, then I tried a few possible combinations until I got a result that satisfied all the criteria (I assumed there was only 1 solution). Since I did it by hand (well, using Excel to quickly copy/paste), I'm thinking it wouldn't be considered cheating. In any event, it's a fun puzzle and I encourage you all to attempt it when you have a bit of time to focus (and report the results back here!). Also, that 98% of people would not be able to solve this seems silly. Do you think he meant 98% of people would not be able to solve this within a certain timeframe? Or maybe that only 2% of people could prove their solution without making the simplifying assumption that only one solution exists? If you want to see a solution fully explained, see here. Also, Wikipedia explains the solution to a variant of the puzzle. I have not read either, but thought I'd include those links for you more, erm, productive individuals. ;)

            [Forum Guidelines]

            S Offline
            S Offline
            Stefan_Lang
            wrote on last edited by
            #20

            Took me a pencil, about half a page of hand-scribbled notes, and roughly 15 minutes to solve. My method involved figuring out a method to encode the statements into a Sudoko-like scheme (i. e. for every attribute I wrote down the list of house numbers they might be associated to) and then using the basic mechanics of exclusion to strike off every option that couldn't work until I ended up with an attribute that had only one option left. I created a table for the houses and attributes I already found out for each of them as an easy way to look up which of the attributes I already know of a house would conflict with a given statement. That is also how I would have solved it using Prolog. Not sure what the language was the author used, but the program looked awfully long and unneccessarily complicated. Would have been a lot shorter in Prolog! (although the neighbourhood relations might have been difficult to encode in Prolog as well) Regarding the 98% statement - I can easily believe that 90% of all people wouldn't know where to even start, as their skills to analyze a problem or logically reason is way below that of someone who came into contact with that kind of stuff beyond school. Any computer scientist, mathematician, and even most programmers without an academic degree know the basic tools required to solve this kind of problem, but very few other people have. The remaining 10% I would expect to be theoretically able to solve the problem, given enough time, but many might give up because they didn't come up with a suitable way to encode the problem, or kept on trying to solve it using direct implications, instead of looking at exclusion mechanisms. I'd still expect most of these people *could* solve it if their live depended upon it, and maybe after a good night's sleep ;)

            D 1 Reply Last reply
            0
            • L Lost User

              aspdotnetdev wrote:

              Or maybe that only 2% of people could prove their solution without making the simplifying assumption that only one solution exists?

              Or that only 2% of the population could do it entirely in their head? :)

              S Offline
              S Offline
              Stefan_Lang
              wrote on last edited by
              #21

              lol, I'm pretty good at doing stuff in my head (even played chess 'blindly' a few times when I was younger), but that would indeed have taken me quite some time :laugh: I like writing down things when I'm thinking, I found it helps getting a clearer picture of a problem when I try to formulate it, even if it's only on paper.

              D 1 Reply Last reply
              0
              • S Stefan_Lang

                lol, I'm pretty good at doing stuff in my head (even played chess 'blindly' a few times when I was younger), but that would indeed have taken me quite some time :laugh: I like writing down things when I'm thinking, I found it helps getting a clearer picture of a problem when I try to formulate it, even if it's only on paper.

                D Offline
                D Offline
                dvanderwerken
                wrote on last edited by
                #22

                There is no way I could do this in my head, but I did solve it with pencil and paper in under an hour. I didn't time it exactly.

                1 Reply Last reply
                0
                • A AspDotNetDev

                  One of the emails CP sends out linked to this (don't scroll too far down or you'll see the answer). Usually, I would be most interested in the programming portion, but for this particular puzzle I found the logic to be the most interesting part, so I decided to solve it myself. I solved it in 1 to 2 hours, but I'm not entirely sure if I cheated or not. Basically, I solved as much of it as I could using logic, then I tried a few possible combinations until I got a result that satisfied all the criteria (I assumed there was only 1 solution). Since I did it by hand (well, using Excel to quickly copy/paste), I'm thinking it wouldn't be considered cheating. In any event, it's a fun puzzle and I encourage you all to attempt it when you have a bit of time to focus (and report the results back here!). Also, that 98% of people would not be able to solve this seems silly. Do you think he meant 98% of people would not be able to solve this within a certain timeframe? Or maybe that only 2% of people could prove their solution without making the simplifying assumption that only one solution exists? If you want to see a solution fully explained, see here. Also, Wikipedia explains the solution to a variant of the puzzle. I have not read either, but thought I'd include those links for you more, erm, productive individuals. ;)

                  [Forum Guidelines]

                  J Offline
                  J Offline
                  Jeff Connelly
                  wrote on last edited by
                  #23

                  I solved it with pure logic and pencil and paper in 20 mins. As a logic puzzle, it's fine. As presented with all the trimmings, there are some problems. Einstein didn't write this as a boy as shown, because Pall Malls had not been created yet. How much of the background story is true is very debateable. There are many versions of this floating around, and no evidence that I know of that Einstein actually created it. Nor do we know what he meant by saying only 2% of the population could solve it, if he even did say that. If the puzzle as written was not his, then what was it? If he wrote it, it was at least slightly different - and it might have been more difficult. Maybe people had less practice doing logic back then (indeed, they probably were less educated in general.) Maybe he meant doing it in your head with no pencil/paper. Who knows. I really doubt that as much as 98% of the population could not solve it. Was he counting relatively educated Western civilization only, or the entire world population? Starting at what age? Who knows.

                  S 1 Reply Last reply
                  0
                  • A AspDotNetDev

                    One of the emails CP sends out linked to this (don't scroll too far down or you'll see the answer). Usually, I would be most interested in the programming portion, but for this particular puzzle I found the logic to be the most interesting part, so I decided to solve it myself. I solved it in 1 to 2 hours, but I'm not entirely sure if I cheated or not. Basically, I solved as much of it as I could using logic, then I tried a few possible combinations until I got a result that satisfied all the criteria (I assumed there was only 1 solution). Since I did it by hand (well, using Excel to quickly copy/paste), I'm thinking it wouldn't be considered cheating. In any event, it's a fun puzzle and I encourage you all to attempt it when you have a bit of time to focus (and report the results back here!). Also, that 98% of people would not be able to solve this seems silly. Do you think he meant 98% of people would not be able to solve this within a certain timeframe? Or maybe that only 2% of people could prove their solution without making the simplifying assumption that only one solution exists? If you want to see a solution fully explained, see here. Also, Wikipedia explains the solution to a variant of the puzzle. I have not read either, but thought I'd include those links for you more, erm, productive individuals. ;)

                    [Forum Guidelines]

                    M Offline
                    M Offline
                    Mark Randel
                    wrote on last edited by
                    #24

                    I have to agree with the comment that Sudoku helps. It really was just a matter of elimination. Like most others here, I used Excel just to visually provide a canvas. I laid out all the clues as if they were pieces of a puzzle. With exception of one possible variable (the dreaded water drinker) they all fit nicely together. All said, I was done in under 10 minutes.

                    ____________________________________________________ I'd rather have a frontal lobotomy than a bottle in front of me... Bill W

                    S 1 Reply Last reply
                    0
                    • L Lost User

                      I solved it in 1 minute ans 20 seconds. i popped next door (to the green house) and saw the fish

                      ___________________________________________ .\\axxx (That's an 'M')

                      M Offline
                      M Offline
                      Mark Randel
                      wrote on last edited by
                      #25

                      So you're on friendly terms with the German?

                      ____________________________________________________ I'd rather have a frontal lobotomy than a bottle in front of me... Bill W

                      1 Reply Last reply
                      0
                      • M Media2r

                        Took about 5 minutes with pen and paper. In fairness, I've solved this one about 20 years ago on napkins in the lunch room at school. Another fun "riddle" I remember from back then - albeit a much simpler one - is this one: A mathematics student in financial trouble sent a telegram to his (wealthy) father asking for money. Not having enough cash to send a long telegram, and knowing his father would appreciate a mathematical riddle, he sent the following: Dad, SEND + MORE =MONEY Thanks! How much did he need? To my knowledge there is only one logically sound solution to this. After solving it I made a pascal routine to solve it, and came up with a number (I seem to remember 24) of alternative solutions. Common to all of them was that they were somewhat logically flawed, although mathematically correct. //L

                        S Offline
                        S Offline
                        Stefan_Lang
                        wrote on last edited by
                        #26

                        If your pascal routine delivered flawed solutions then it wasn't mathematically correct. ;) 1085 (presuming you meant to ask how much more he did need :cool: )

                        1 Reply Last reply
                        0
                        • J Jeff Connelly

                          I solved it with pure logic and pencil and paper in 20 mins. As a logic puzzle, it's fine. As presented with all the trimmings, there are some problems. Einstein didn't write this as a boy as shown, because Pall Malls had not been created yet. How much of the background story is true is very debateable. There are many versions of this floating around, and no evidence that I know of that Einstein actually created it. Nor do we know what he meant by saying only 2% of the population could solve it, if he even did say that. If the puzzle as written was not his, then what was it? If he wrote it, it was at least slightly different - and it might have been more difficult. Maybe people had less practice doing logic back then (indeed, they probably were less educated in general.) Maybe he meant doing it in your head with no pencil/paper. Who knows. I really doubt that as much as 98% of the population could not solve it. Was he counting relatively educated Western civilization only, or the entire world population? Starting at what age? Who knows.

                          S Offline
                          S Offline
                          Stefan_Lang
                          wrote on last edited by
                          #27

                          The 'back then' argument sounds pretty convincing: nowadays every computer scientist knows the basics of logic reasoning, and most of them should be able to solve the riddle within at most a day. In Einstein's days, there was much less need to teach logic, and thus much less people familiar with techniques that are useful to solve these kind of riddles. I could easily believe that in the early 20th century only 2% of the world population could solve that. But today I'd expect something closer to 10%.

                          J 1 Reply Last reply
                          0
                          • S Stefan_Lang

                            The 'back then' argument sounds pretty convincing: nowadays every computer scientist knows the basics of logic reasoning, and most of them should be able to solve the riddle within at most a day. In Einstein's days, there was much less need to teach logic, and thus much less people familiar with techniques that are useful to solve these kind of riddles. I could easily believe that in the early 20th century only 2% of the world population could solve that. But today I'd expect something closer to 10%.

                            J Offline
                            J Offline
                            Jeff Connelly
                            wrote on last edited by
                            #28

                            I'm still curious about a number in useful terms. For example, in "advanced" cultures in the age group 20-60, what percentage could solve it in 2 hours? This would exclude subsistence populations that have never been to school, etc etc. A raw number like "world population" isn't useful.

                            S 1 Reply Last reply
                            0
                            • M Mark Randel

                              I have to agree with the comment that Sudoku helps. It really was just a matter of elimination. Like most others here, I used Excel just to visually provide a canvas. I laid out all the clues as if they were pieces of a puzzle. With exception of one possible variable (the dreaded water drinker) they all fit nicely together. All said, I was done in under 10 minutes.

                              ____________________________________________________ I'd rather have a frontal lobotomy than a bottle in front of me... Bill W

                              S Offline
                              S Offline
                              Stefan_Lang
                              wrote on last edited by
                              #29

                              The hard part (for me) was realizing that it's indeed really similar to Sudoko. The rest was a piece of cake. Funny, I once read that the only thing repeatedly doing a 'brain game' achieves, is to get better at solving that particular brain game, but nothing else. Here's the proof that a brain game that isn't even very difficult (i. e. can be solved by the majority of people) can help you solve quite a broad range of much more difficult problems! Of course, as indicated above, not everyone who's good at Sudoko might realize how the Einstein riddle is connected to it...

                              1 Reply Last reply
                              0
                              • A AspDotNetDev

                                Tom Lawton wrote:

                                It helps if you do Sudoku regularly

                                Haha, that's what my friend said.

                                [Forum Guidelines]

                                L Offline
                                L Offline
                                Lilith C
                                wrote on last edited by
                                #30

                                These kinds of logic problems can also be found in some crosswords books, although with fewer dimensions to deal with. They occasionally have tutorials that espouse the matrix approach to solving the puzzle.

                                I'm not a programmer but I play one at the office

                                1 Reply Last reply
                                0
                                • J Jeff Connelly

                                  I'm still curious about a number in useful terms. For example, in "advanced" cultures in the age group 20-60, what percentage could solve it in 2 hours? This would exclude subsistence populations that have never been to school, etc etc. A raw number like "world population" isn't useful.

                                  S Offline
                                  S Offline
                                  Stefan_Lang
                                  wrote on last edited by
                                  #31

                                  I don't know who made that statement in the first place, but I suspect someone added it later. Maybe they had a number of people do it, get the average IQ of those who could solve it, and then determine what percentage of people on the world have that high an IQ. That method would at least make some sense when talking of '2% of the world population', if indeed that was what the 2% were referring to. P.S.: just checked on the riddle again and it does indeed claim that Einstein himself made that '98% of the world population cannot solve it' statement. That makes my explanataion somewhat unlikely. My best guess is that is was an educated guess rather than accurate experimentally backed up fact.

                                  modified on Thursday, December 9, 2010 12:35 PM

                                  1 Reply Last reply
                                  0
                                  • A AspDotNetDev

                                    One of the emails CP sends out linked to this (don't scroll too far down or you'll see the answer). Usually, I would be most interested in the programming portion, but for this particular puzzle I found the logic to be the most interesting part, so I decided to solve it myself. I solved it in 1 to 2 hours, but I'm not entirely sure if I cheated or not. Basically, I solved as much of it as I could using logic, then I tried a few possible combinations until I got a result that satisfied all the criteria (I assumed there was only 1 solution). Since I did it by hand (well, using Excel to quickly copy/paste), I'm thinking it wouldn't be considered cheating. In any event, it's a fun puzzle and I encourage you all to attempt it when you have a bit of time to focus (and report the results back here!). Also, that 98% of people would not be able to solve this seems silly. Do you think he meant 98% of people would not be able to solve this within a certain timeframe? Or maybe that only 2% of people could prove their solution without making the simplifying assumption that only one solution exists? If you want to see a solution fully explained, see here. Also, Wikipedia explains the solution to a variant of the puzzle. I have not read either, but thought I'd include those links for you more, erm, productive individuals. ;)

                                    [Forum Guidelines]

                                    J Offline
                                    J Offline
                                    Jerry W Manweiler Ph D
                                    wrote on last edited by
                                    #32

                                    Not to make any feel bad but my 14 year old daughter had it solved in about 10 minutes. She is a big geek and scores in the 97%+ on assessments if that helps your ego.

                                    Jerry W. Manweiler, Ph.D. Fundamental Technologies, LLC

                                    A 1 Reply Last reply
                                    0
                                    • J Jerry W Manweiler Ph D

                                      Not to make any feel bad but my 14 year old daughter had it solved in about 10 minutes. She is a big geek and scores in the 97%+ on assessments if that helps your ego.

                                      Jerry W. Manweiler, Ph.D. Fundamental Technologies, LLC

                                      A Offline
                                      A Offline
                                      AspDotNetDev
                                      wrote on last edited by
                                      #33

                                      The great thing about logic and reasoning ability is that they can be attained very early on. You should be very proud!

                                      [Forum Guidelines]

                                      J 1 Reply Last reply
                                      0
                                      • A AspDotNetDev

                                        The great thing about logic and reasoning ability is that they can be attained very early on. You should be very proud!

                                        [Forum Guidelines]

                                        J Offline
                                        J Offline
                                        Jerry W Manweiler Ph D
                                        wrote on last edited by
                                        #34

                                        I am, she has a great future in front of her assuming she can get thru all of the teenage distractions.

                                        Jerry W. Manweiler, Ph.D. Fundamental Technologies, LLC

                                        1 Reply Last reply
                                        0
                                        • A AspDotNetDev

                                          One of the emails CP sends out linked to this (don't scroll too far down or you'll see the answer). Usually, I would be most interested in the programming portion, but for this particular puzzle I found the logic to be the most interesting part, so I decided to solve it myself. I solved it in 1 to 2 hours, but I'm not entirely sure if I cheated or not. Basically, I solved as much of it as I could using logic, then I tried a few possible combinations until I got a result that satisfied all the criteria (I assumed there was only 1 solution). Since I did it by hand (well, using Excel to quickly copy/paste), I'm thinking it wouldn't be considered cheating. In any event, it's a fun puzzle and I encourage you all to attempt it when you have a bit of time to focus (and report the results back here!). Also, that 98% of people would not be able to solve this seems silly. Do you think he meant 98% of people would not be able to solve this within a certain timeframe? Or maybe that only 2% of people could prove their solution without making the simplifying assumption that only one solution exists? If you want to see a solution fully explained, see here. Also, Wikipedia explains the solution to a variant of the puzzle. I have not read either, but thought I'd include those links for you more, erm, productive individuals. ;)

                                          [Forum Guidelines]

                                          D Offline
                                          D Offline
                                          DragonsRightWing
                                          wrote on last edited by
                                          #35

                                          As one of the commenters ("HMav") points out, there is no answer without making assumptions - none of the conditions requires that anyone owns a fish (four animals are specified - a dog, a cat, birds, and horses). It is an unsupported assumption that someone owns a fish. Also, the first commenter ("Alexey") notes that:

                                          The main point of the Einstein’s Riddle is that 98% of human beings are unable to hold in memory more than 9 information units simultaneously ( whatever they could be ). Indeed, try to solve it using only your brain, and NOT using any other means ( such as paper, pencil, computers, etc.).

                                          S 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