BBO Discussion Forums: My Favorite Riddle - BBO Discussion Forums

Jump to content

  • 3 Pages +
  • 1
  • 2
  • 3
  • You cannot start a new topic
  • You cannot reply to this topic

My Favorite Riddle

#21 User is offline   mike777 

  • PipPipPipPipPipPipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 16,739
  • Joined: 2003-October-07
  • Gender:Male

Posted 2007-November-07, 18:28

Even the 2 color solution is more tricky than people realize.

Tell ten people the solution....line them up to be killed, I bet more than one dies......the Math/adding or subtraction......etc..... is just too hard.

You need to combine alot of math/color skills here...harder than you teachers think. :(
0

#22 User is offline   jtfanclub 

  • PipPipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 3,937
  • Joined: 2004-June-05

Posted 2007-November-07, 18:39

jonottawa, on Nov 7 2007, 07:25 PM, said:

I'll try to redeem myself and take a stab at the 3-colors problem.

Works for one, doesn't work for the next.

First guy called out "Red" (must be looking at OEE or OOO).
Second guy calls out "Red" (must be looking at EEE or EOO)

Third guy is looking at Even Even Odd.

What color should he take?
0

#23 User is offline   jonottawa 

  • PipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 1,025
  • Joined: 2003-March-26
  • Gender:Male
  • Location:Ottawa, ON

Posted 2007-November-07, 18:56

Right, my answer is off. Sigh. More hidden below.

Spoiler

"Maybe we should all get together and buy Kaitlyn a box set of "All in the Family" for Chanukah. Archie didn't think he was a racist, the problem was with all the chinks, dagos, niggers, kikes, etc. ruining the country." ~ barmar
0

#24 User is offline   jonottawa 

  • PipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 1,025
  • Joined: 2003-March-26
  • Gender:Male
  • Location:Ottawa, ON

Posted 2007-November-07, 20:20

I'm still not sure if this is right, but I'm gonna post it now just in case it is.

Spoiler

"Maybe we should all get together and buy Kaitlyn a box set of "All in the Family" for Chanukah. Archie didn't think he was a racist, the problem was with all the chinks, dagos, niggers, kikes, etc. ruining the country." ~ barmar
0

#25 User is offline   andych 

  • PipPipPipPip
  • Group: Full Members
  • Posts: 353
  • Joined: 2003-July-24

Posted 2007-November-07, 21:38

My answer hidden below
Spoiler

:) :)
0

#26 User is offline   jonottawa 

  • PipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 1,025
  • Joined: 2003-March-26
  • Gender:Male
  • Location:Ottawa, ON

Posted 2007-November-07, 22:47

Okay, this isn't as elegant as I would have liked, but I think it's a solution for specifically 10 dwarves. I took a completely different tack this time:

Spoiler

"Maybe we should all get together and buy Kaitlyn a box set of "All in the Family" for Chanukah. Archie didn't think he was a racist, the problem was with all the chinks, dagos, niggers, kikes, etc. ruining the country." ~ barmar
0

#27 User is offline   jonottawa 

  • PipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 1,025
  • Joined: 2003-March-26
  • Gender:Male
  • Location:Ottawa, ON

Posted 2007-November-07, 23:11

Okay, my last kick at the cat:

Spoiler

"Maybe we should all get together and buy Kaitlyn a box set of "All in the Family" for Chanukah. Archie didn't think he was a racist, the problem was with all the chinks, dagos, niggers, kikes, etc. ruining the country." ~ barmar
0

#28 User is offline   helene_t 

  • The Abbess
  • PipPipPipPipPipPipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 17,101
  • Joined: 2004-April-22
  • Gender:Female
  • Location:UK

Posted 2007-November-07, 23:28

Suppose there are three colors. We call them color zero, color one and color two, Now the lastmost dwarf encodes the 3-parity of the sum of the colors: say there are 6 dwarfs and the five he can see are colors 1-0-1-2-1, then the sum is 5.
- If the sum of the colors is dividable by 3 (0, 3, 6, 9....) he says "color zero"
- If the sum of the colors is one above dividable by 3 (1, 4, 7, 10....) he says "color one"
- If the sum of the colors is two above dividable by 3 (2, 5, 7, 10....) he says "color two"

Now the second-backmost dwarf can compute the parity of the caps he can see. If it is the same parity as was indicated by the color he just heared from the backmost dwarf, he knows his own cap is color zero etc.

This is easily generalized to more than three colors.
The world would be such a happy place, if only everyone played Acol :) --- TramTicket
0

#29 User is offline   jonottawa 

  • PipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 1,025
  • Joined: 2003-March-26
  • Gender:Male
  • Location:Ottawa, ON

Posted 2007-November-07, 23:36

How did I know it would be a simple and elegant solution that I never would have thought of in a million years? :)
"Maybe we should all get together and buy Kaitlyn a box set of "All in the Family" for Chanukah. Archie didn't think he was a racist, the problem was with all the chinks, dagos, niggers, kikes, etc. ruining the country." ~ barmar
0

#30 User is offline   jtfanclub 

  • PipPipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 3,937
  • Joined: 2004-June-05

Posted 2007-November-08, 00:26

helene_t, on Nov 8 2007, 12:28 AM, said:

Suppose there are three colors. We call them color zero, color one and color two,

I knew somebody would post it...I finally figured it out in the freakin' car on the way home. It had not occurred to me until that moment that I could encrypt it 2-1-0 mod 3. I should have recognized it, because that's how the new RAID systems work.

This is completely applicable to bridge...instead of using binary signals to determine if a suit is odd or even, I can use a fourpart signal to encode all four suit lengths. No wonder they don't allow them to be used!
0

#31 User is offline   helene_t 

  • The Abbess
  • PipPipPipPipPipPipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 17,101
  • Joined: 2004-April-22
  • Gender:Female
  • Location:UK

Posted 2007-November-08, 00:31

I think they do (at least here in NL it wont be a problem), the problem is that you don't always have a card of the parity you want to signal. Odd/even can be a pain already.
The world would be such a happy place, if only everyone played Acol :) --- TramTicket
0

#32 User is offline   Codo 

  • PipPipPipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 6,373
  • Joined: 2003-March-15
  • Location:Hamburg, Germany
  • Interests:games and sports, esp. bridge,chess and (beach-)volleyball

Posted 2007-November-08, 01:57

helene_t, on Nov 8 2007, 02:28 PM, said:

Suppose there are three colors. We call them color zero, color one and color two, Now the lastmost dwarf encodes the 3-parity of the sum of the colors: say there are 6 dwarfs and the five he can see are colors 1-0-1-2-1, then the sum is 5.
- If the sum of the colors is dividable by 3 (0, 3, 6, 9....) he says "color zero"
- If the sum of the colors is one above dividable by 3 (1, 4, 7, 10....) he says "color one"
- If the sum of the colors is two above dividable by 3 (2, 5, 7, 10....) he says "color two"

Now the second-backmost dwarf can compute the parity of the caps he can see. If it is the same parity as was indicated by the color he just heared from the backmost dwarf, he knows his own cap is color zero etc.

This is easily generalized to more than three colors.

A wonderful problem and solution.
Kind Regards

Roland


Sanity Check: Failure (Fluffy)
More system is not the answer...
0

#33 User is offline   kfay 

  • PipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 2,208
  • Joined: 2007-July-01
  • Gender:Male
  • Location:Michigan
  • Interests:Science, Sports

Posted 2007-November-08, 11:19

helene_t, on Nov 8 2007, 12:28 AM, said:

Suppose there are three colors. We call them color zero, color one and color two, Now the lastmost dwarf encodes the 3-parity of the sum of the colors: say there are 6 dwarfs and the five he can see are colors 1-0-1-2-1, then the sum is 5.
- If the sum of the colors is dividable by 3 (0, 3, 6, 9....) he says "color zero"
- If the sum of the colors is one above dividable by 3 (1, 4, 7, 10....) he says "color one"
- If the sum of the colors is two above dividable by 3 (2, 5, 7, 10....) he says "color two"

Now the second-backmost dwarf can compute the parity of the caps he can see. If it is the same parity as was indicated by the color he just heared from the backmost dwarf, he knows his own cap is color zero etc.

This is easily generalized to more than three colors.

This is actually the way that I solved the original problem when I first heard it. Although on later contemplation I realized it's basically the same as saying which color has an even or odd population amongst the dwarves. I never considered more than 2 colors so that is pretty neat.
Kevin Fay
0

#34 User is offline   Mbodell 

  • PipPipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 2,871
  • Joined: 2007-April-22
  • Location:Santa Clara, CA

Posted 2007-November-08, 17:15

I guess having a computer science education makes one think this way automatically as it seems the "obvious" solution to me. I was surprised to see so many incorrect attempts after my "use mod K adding" hint which seems not to have been read/understood until helene explained that with a full example in the K=3 case.
0

#35 User is offline   nige1 

  • 5-level belongs to me
  • PipPipPipPipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 9,128
  • Joined: 2004-August-30
  • Gender:Male
  • Location:Glasgow Scotland
  • Interests:Poems Computers

Posted 2007-December-07, 04:34

kfay, on Nov 7 2007, 02:28 PM, said:

If they guess incorrectly, they die (by beheading... an axe).

mike777, on Nov 7 2007, 07:28 PM, said:

Even the 2 color solution is more tricky than people realize. Tell ten people the solution....line them up to be killed, I bet more than one dies......the Math/adding or subtraction......etc..... is just too hard.

Johnny Mercer / Harold Arlen said:

Accentuate the positive!
Eliminate the negative!

IMO, in the 2-color case, provided that at least one of the dwarves behind you is an accurate arithmetician, then you can save yourself, even if the others behind you make random mistakes :( ignoring the fate of the backmost dwarf, each subsequent swish of the axe flips the parity :)
0

#36 User is offline   slothy 

  • PipPipPipPipPip
  • Group: Full Members
  • Posts: 690
  • Joined: 2003-October-14

Posted 2007-December-07, 05:30

And there was me thinking that death by execution, never mind discrimination of vertically-challenged people, was outlawed in many of the United States....

a more interesting variation of this puzzle is where the 10 people are siamese twins and colour-blind, with each one of the twins suffering from chronic dandruff, their height being irrelevant
gaudium est miseris socios habuisse penarum - Misery loves company.
0

#37 User is offline   Fluffy 

  • World International Master without a clue
  • PipPipPipPipPipPipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 17,404
  • Joined: 2003-November-13
  • Gender:Male
  • Location:madrid

Posted 2007-December-07, 06:40

Alex this has nothing to do with United States, otherwise all dorfs would be killed for wearing caps.
0

#38 User is offline   kenberg 

  • PipPipPipPipPipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 11,067
  • Joined: 2004-September-22
  • Location:Northern Maryland

Posted 2007-December-22, 07:55

I came late to this but let me suggest a modest variation where it's important that the number of dwarfs be even.

First I want to change the rules in another way: If all dwarfs except the rear dwarf get the right answer then all dwarfs will be spared. This seems more in the spirit of the season and also gives the rear dwarf proper motivation.


Now suppose the game is as follows: The Executioner announces that each hat will be of one of two colors but he doesn't say what the colors are. Now if we say that there are only finitely many different colors, 500 perhaps, the dwarfs could make a list of the colors and treat it as a 500 color problem (solved). So let's say the Ex will place one of two objects on their heads but doesn't say what the objects are.


The game begins:

Dwarf 10 (in the rear) looks at the nine dwarfs in front of him and sees an odd number of heads with, say, apples on them. He says Apple.

Dwarf 9 either sees an even number of apples, and so says Apple, or he sees an odd number of apples and then knows that the object on top of his head is not an apple. But Dwarf 9 is looking at 8 heads and so, when he sees an odd number of apples he also sees an odd number, in particular not zero, of the other object (a banana, say) and so he can say Banana.



For Dwarf 8, the same solution works because he really "sees" 8 heads. He sees the 7 heads in front of him and he trusts that dwarf 9 in back of him has correctly identified the object on top of his head. And so on down the line.

This doesn't work with 11 dwarfs since dwarf 11 will either see two odds or two evens when he counts objects.



This thinking leads to still another possible game with 10 (or any even number) of dwarfs:
The Ex says that he will place one of two identifiable objects on each head and he does not give the dwarfs time to discuss their strategy. Credit the dwarfs with the following reasoning: Each dwarf imagines a strategy that he would suggest if they had time to discuss it. In fact, when the dwarfs do not know what the objects will be then, I am pretty sure, the "announce the object you see an odd number of" is the only strategy that will work and so is the strategy they would come to IF they had the opportunity to discuss. So each dwarf trusts the other dwarfs to follow this uniquely defined strategy.


Interestingly (if any of this is interesting) if the dwarfs are told the two colors but not given time to discuss, then uniqueness of discussed strategy fails and the dwarfs will not be able to be sure each of the other dwarfs, undiscussed, has chosen the same strategy.
Ken
0

#39 User is offline   han 

  • Under bidder
  • PipPipPipPipPipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 11,797
  • Joined: 2004-July-25
  • Gender:Male
  • Location:Amsterdam, the Netherlands

Posted 2007-December-22, 12:58

There is never uniqueness, even in the original problem. In fact, there are many different correct solutions (can you count them?).
Please note: I am interested in boring, bog standard, 2/1.

- hrothgar
0

#40 User is offline   kenberg 

  • PipPipPipPipPipPipPipPipPipPip
  • Group: Advanced Members
  • Posts: 11,067
  • Joined: 2004-September-22
  • Location:Northern Maryland

Posted 2007-December-22, 14:28

There is not uniqueness in the original problem, for example dwarf 10 could either announce whichever color that appears an odd number of times or the color that appears an even number of times. Since both colors are known, announcing one leads to knowledge of both.

With the rules I suggest, where two unknown objects are to be placed on heads, I believe that uniqueness of the discussed strategy holds. In the original game if dwarf 10 informs his friends that an even number of dwarfs have red hats then they know that an odd number have a black hat. In the modified game they would know only that an odd number of dwarfs all have the same object on their heads and that object is not a red hat.

With 10 dwarfs, here is the argument.


Dwarf 10 looks to see how many of each object are there. For starters, say he sees one apple and 8 bananas. If their agreement is that he will say banana, the dwarf with the apple on his head is in trouble no matter where he is in the line. Say dwarf 3 has an apple on his head, the rest have bananas. Suppose that as a result of dwarf 10 saying banana, dwarfs 9 through 4 have correctly said banana. Even if dwarf 3 somehow knows that he dopes not have a banana on his head, how is he to know he has an apple rather than a cupcake, a green hat, or a roll of toilet paper?

Thus, when dwarf 10 sees 8 bananas and 1 apple, he must say Apple if the dwarf with an apple atop his head is going to get the right answer.

Similarly (well, inductively) with how ever many objects of each type there are. For example, suppose dwarf 10 sees 2 apples and 6 bananas. Maybe dwarfs 2 and 6 have bananas. Suppose dwarfs 9,8,7 get it right, and dwarf 6 is up. He knows that if he has a banana on his head then dwarf 10 would have said Apple (the argument above shows that he must, because he would be looking at only 1 apple). But if dwarf 10 would also say apple sometimes when he sees two apples, the dwarf 6 has a guess to make. The strategy must be that when dwarf 10 sees exactly two apples then he says Banana. And so on.

Changing the problem from two known colors to two objects that are not known in advance is what produces the uniqueness. Knowing the two colors, or the two objects, destroys uniqueness, Not knowing what the two objects will be produces a solvable game with a unique strategy.


This change also requires an even number of dwarfs. Try it with three dwarfs: Dwarf 3 sees an pineapple on dwarf 1 and a peach on dwarf 2. If dwarf 3 says Pineapple then even if, through their agreement, this information suffices to tell dwarf 2 that he does not have a pineapple on his head it will not help him in deciding that he has a peach on his head. Similar problems for dwarf 1 if dwarf 3 says Peach.

With an even number of dwarfs and the Odd strategy, these problems don't appear. Dwarf 9 knows that one of the objects must appear an odd number of times. If he sees an even number of them he knows the remaining one is on his head. If he sees an odd number then, since he is looking at 8 dwarfs, he must be looking at an odd number of the other object as well and can not only tell he has the "other object" (other than what dwarf 10 called) he can also know what that object is by looking at it.

Anyway, I seriously doubt that you can supply either an alternative strategy for ten dwarfs or any strategy for 3 dwarfs (or 11) under these modified rules: Two previously unknown objects, one or the other on each of the heads (possibly 0 of one type, all of the other type). I've been wrong before, but this seems right.
Ken
0

  • 3 Pages +
  • 1
  • 2
  • 3
  • You cannot start a new topic
  • You cannot reply to this topic

2 User(s) are reading this topic
0 members, 2 guests, 0 anonymous users