Who owns the Zebra?
On an odd little street in the town of Somewhere, there are five house in a row. Each house is a different colour, each is inhabited by a woman of different nationality, and the owner of the houses also have their differences: each owner has a different pet, prefers a different drink and works in a different profession. A detective, charged with the task of discovering who drinks water and who owns the Zebra, gathered the following information, itemized for your convenience:
- The Englishwoman lives in the red house.
- The Spaniard owns a dog.
- Coffee is drunk in the green house
- The Ukrainian drinks tea.
- The green house is immediately to the right of the Ivory house.
- The engineer owns the snail.
- The diplomat lives in the yellow house.
- Milk is drunk in the middle house.
- The Norwegian lives in the first house on the left.
- The doctor lives next to the owner of the fox.
- The diplomat lives next to the owner of the horse.
- The teacher drinks orange juice.
- The carpenter is Japanese.
- The Norwegian lives next to the blue house.
Replies
-
Kaustubh KatdareI think that is called the 'Einstein's Puzzle', am I right?
-
PraveenKumar Purushothaman
Its a kind of detective puzzle! π Answer? Don't google please... πThe_Big_KI think that is called the 'Einstein's Puzzle', am I right? -
Dancer_EngineerI tried solving the 14 pointers in the following order:
9, 14, 8
took a guess on 5th one and then followed the order 3, 1, 7, 11, 6.
Stuck here.. so took another guess on 13th point.
Stuck again!
Give Up! π -
Gandalf
Contradictory to your qoute you quitDancer_EngineerI tried solving the 14 pointers in the following order:
9, 14, 8
took a guess on 5th one and then followed the order 3, 1, 7, 11, 6.
Stuck here.. so took another guess on 13th point.
Stuck again!
Give Up! π
π
Never Quit Anything In Life - To Get Something That You Never Had, You Have To Do Something That You Never Did.
-
Dancer_EngineerGandalfContradictory to your qoute you quit
π
Yeah, I sat with it the puzzle for quite a long time (2hrs :-(), and then I really really had to let it go π
I had once solved a similar puzzle, I was sure to crack this one. -
PraveenKumar PurushothamanShall I say the answer?
-
Dancer_EngineerNo don't say now.
-
PraveenKumar PurushothamanOKay... You have kind of going in the right way... π
-
Dancer_Engineer
Yes I'm on the right solution.Praveen-KumarOKay... You have kind of going in the right way... π
Ok, you sure there is no data missing? -
simplycoder@Dancer_Engineer, make a matrix type structure and fill in the boxes and eliminate the wrong choices with logic. Its slightly complex and you have to think atleast 2-3 steps ahead. I will wait for your reply before writing the full solution in steps.
-
Dancer_EngineerOopss!
I forgot about the Zebra. π³
Ok will post my answer (i.e if I get one) before the end of the day. π -
PraveenKumar PurushothamanWaiting for your answers guys! π
-
Dancer_EngineerThe Diplomat?
Please please please say YES! π -
PraveenKumar PurushothamanEr... Nopes! π
-
Dancer_EngineerNOOOOOOOOOOOOOOOOOOOOOOOOOO! π‘
-
simplycoderI don't want to spoil fun so I am not posting here, but I have posted the solution for the same over here.
#-Link-Snipped-# -
Dancer_Engineer
This is how I solved (the 3rd trial). Stuck at 11, then checked the other possibilities 2, 4, 6, 12, 13 and landed at Diplomat. π -
simplycoder@Dancer Engineer: findout what diplomat can drink if in your previous post you wrote for water then I agree with your answer. then findout nationality,occupation,drink of second house which I think is not too complicated.
Final effort will be where in house3,4,5 in which you have to try to assume things, (just two three steps ahead) and you would see that if you make wrong assumption, it will fail so go back and correct it, eliminate other choices. Finding zebra is more complicated than finding water. -
Dancer_Engineersimplycoder@Dancer Engineer: findout what diplomat can drink if in your previous post you wrote for water then I agree with your answer. then findout nationality,occupation,drink of second house which I think is not too complicated.
Final effort will be where in house3,4,5 in which you have to try to assume things, (just two three steps ahead) and you would see that if you make wrong assumption, it will fail so go back and correct it, eliminate other choices. Finding zebra is more complicated than finding water.
Okay. I took both the person who drinks water and who owns the Zebra to be one.
So I found out the Diplomat drinks water, so concluded he owns the Zebra.
Oopss, I made a boo-boo π³ -
PraveenKumar Purushothaman
Still giving the link is like a spoiler! πsimplycoderI don't want to spoil fun so I am not posting here, but I have posted the solution for the same over here.
#-Link-Snipped-# -
PraveenKumar PurushothamanOkay guys, shall I post the solution or still to decipher??? π Simply coder is right! π
-
PraveenKumar Purushothaman
Yeah man!!! Just got it... Its the Einstein's Puzzle!!! πThe_Big_KI think that is called the 'Einstein's Puzzle', am I right? -
Kaustubh Katdare
Ha! See! The real genius lies in knowing where to find the answer πPraveen-KumarYeah man!!! Just got it... Its the Einstein's Puzzle!!! π -
PraveenKumar Purushothaman
That's why you are a Good Administrator! πThe_Big_KHa! See! The real genius lies in knowing where to find the answer π -
simplycoder@All: I know that this is a logical puzzle and it would be a sad thing if we write a code for this to solve it.
Did any one try to write a code for this for verification of answer?
If not give it a try, its pretty simple and my program written in java, pops out solution in less than a second.
Give it a try, its pretty straightforward. -
PraveenKumar Purushothaman
Code in the sense? I don't get you?simplycoder@All: I know that this is a logical puzzle and it would be a sad thing if we write a code for this to solve it.
Did any one try to write a code for this for verification of answer?
If not give it a try, its pretty simple and my program written in java, pops out solution in less than a second.
Give it a try, its pretty straightforward. -
simplycoder@Praveen: treat it as a problem in programing, and write code for it to print out who owns zebra and who drinks water.
-
PraveenKumar Purushothaman
Won't it be too complex?simplycoder@Praveen: treat it as a problem in programing, and write code for it to print out who owns zebra and who drinks water. -
simplycoder@Praveen: no not at all.
-
PraveenKumar Purushothaman
Gimme some idea, I'll test drive! πsimplycoder@Praveen: no not at all. -
simplycoder@Praveen: The best way, is the way we solve it by paper and pencil. Some how realize this in data-structures and try the possiblities. Then use the machine power.
Even a bad design should pop the answer in 10-15 mins.(which does beat me when I solved it by hand..π ) -
PraveenKumar Purushothaman
Well, solving by machines will be not more than a second or two! πsimplycoder@Praveen: The best way, is the way we solve it by paper and pencil. Some how realize this in data-structures and try the possiblities. Then use the machine power.
Even a bad design should pop the answer in 10-15 mins.(which does beat me when I solved it by hand..π ) -
simplycoder@Praveen: its possible only if you design it that way. But then if you just layout the rules, its bound to take lot of time.
-
PraveenKumar Purushothaman
Yeah, if we are clear on the logic, how long does a machine need to process them? Just transistors and logic gates right?simplycoder@Praveen: its possible only if you design it that way. But then if you just layout the rules, its bound to take lot of time. -
simplycoder@Praveen: Yea you are correct, but its only possible if we are clear on the logic. Else we spend up writing highly inefficient code which will not be fast as we wish even if we use very fast machine,most of the work done by machine would be worth less and not required.
-
PraveenKumar Purushothaman
I guess you are talking about scalability, in that case, yeah... πsimplycoder@Praveen: Yea you are correct, but its only possible if we are clear on the logic. Else we spend up writing highly inefficient code which will not be fast as we wish even if we use very fast machine,most of the work done by machine would be worth less and not required. -
simplycoderI was talking more on optimization. Hint in writing such program is avoiding impossible conditions which can be gatherd from the clues.
-
Dancer_EngineerWill this code solve problems of similar kinds?
I had come across another similar problem some time back. -
simplycoder@Dancer Engineer: It depends, I think such programs can solve any kind einstein puzzles or their derivatives but then we must be careful about clues, and more over the language.If I replace clues, I have to code them again in updated form. Say if norwegian lives in the last house in place of first house, then the riddle change, all I have to do is understand the clues and write them.
I can explain better if you can post the puzzle you came across. -
Dancer_Engineer
I had come across such a puzzle in a campus placement round. So I don't have the correct problem with the right clues.simplycoder@Dancer Engineer: It depends, I think such programs can solve any kind einstein puzzles or their derivatives but then we must be careful about clues, and more over the language.If I replace clues, I have to code them again in updated form. Say if norwegian lives in the last house in place of first house, then the riddle change, all I have to do is understand the clues and write them.
I can explain better if you can post the puzzle you came across.
Though I had solved the problem, I don't know whether it was right or wrong. -
simplycoder@Dancer_Engineer: KK. Well if you are from CS/IT or interested in CS/IT, give this a try.
-
Dancer_Engineer
Yeah, I'm from CS.simplycoder@Dancer_Engineer: KK. Well if you are from CS/IT or interested in CS/IT, give this a try.
But then a Code to such a puzzle!?
Would it serve its purpose well?
There could be changes in the clues, the order of the clues. -
simplycoder@Dancer Engineer: You can always modify it.
Moreover it feels pretty good after the computer shows the solution.. π -
Dancer_EngineerNope. A Good code should give you the required output with the same valid input (in any order).
So, you'll have to code it for all possibilities. π
Yes, I agree! πsimplycoderMoreover it feels pretty good after the computer shows the solution.. π -
simplycoderChanging of order wouldnt matter If I swap clue 1 and clue 5 it wouldnt make any difference. But if I the contents of puzzle change for example if coffee is drunk in blue house, then the puzzle itself changes, then we need to modify it.
-
Dancer_Engineer
Hmmm!simplycoderBut if I the contents of puzzle change for example if coffee is drunk in blue house, then the puzzle itself changes, then we need to modify it.
So we will have to modify it everytime for minor changes too. π -
simplycoder@DancerEngineer: yea thats a sad part, but I dont think that we can avoid this until we teach computer to analyze the english language, to interpret the clues. I think at my current skill level, I am too far from this. However some one might just enlighten us and if this is possible, then we can sit back and dictate terms to computer and bang,it will do (Something similar to VICKI from small wonder!) But I am happy that we havent yet really reached to this state of computing as then world will experience highlevel recession and unemployment.
-
Dancer_EngineerHow about Natural Language Processing? ( #-Link-Snipped-# )
VICKI πsimplycoder(Something similar to VICKI from small wonder!) But I am happy that we havent yet really reached to this state of computing as then world will experience highlevel recession and unemployment. -
PraveenKumar PurushothamanThere's something called as VIKI too!!! Virtual Interactive Kinetic Intelligence from I, Robot! π
You are reading an archived discussion.
Related Posts
Guys, Go to Google Translate - Set the left side as "Detect Language" and the right side as "Tamil". Now type in, TN - See what comes on the right...
Data transfer through optic fiber and cables is achieving newer speeds every day. I however believe that the future surely belongs to the wireless. It's apparent that the data transfer...
Engineers opting for masters in sciences; tell us which is your dream University and why? Also tell us which course you wish to enroll in π
Sony's come up with a latest development in their sugar-battery project; the engineers were successful creating a paper based battery: https://www.crazyengineers.com/sony-paper-battery-to-allow-better-use-of-toilet-paper-1480/ capable enough of powering a small electric motor. Does...
Bhagavad-gita As Is , is under the threat of being banned in Russian.βThere is court hearing early monday morning, so we must all act by sunday.βplease sign this petition online....