Tilted Forum Project Discussion Community  

Go Back   Tilted Forum Project Discussion Community > The Academy > Tilted Knowledge and How-To


 
 
LinkBack Thread Tools
Old 03-19-2004, 05:55 PM   #1 (permalink)
 
KnifeMissile's Avatar
 
Location: Waterloo, Ontario
A subtle puzzle...

You're a kid and you've been sent to math camp as punishment from your parents for getting poor grades.

Now, this camp is trying to foster problem solving skills so, to motivate you, they give you this problem to solve.

You're in a meeting with 9 other kids and a card that's white on one side and black on the other. You're told that, during your stay at camp, you'll be playing a game. Every day, one of you will be picked at random to come back to this room where you can flip the card over, if you want to. You will also be given a chance to declare that everyone has visited this room during the game, at least, once. If you are correct, you can all go home immediately! If you guess incorrectly, your parents will send you back to camp for another 12 years! So, you definitely don't want to guess wrong...

So, how will you kids plan your strategy? Remember, you will be picked at random, so some kids may visit the room several times before another's first visit. You're all staying at different camp grounds so, after this meeting, the only communication between you kids will be the flipping (or non-flipping) of this card...
KnifeMissile is offline  
Old 03-20-2004, 03:51 AM   #2 (permalink)
On the lam
 
rsl12's Avatar
 
Location: northern va
I assume you can't choose to put the card on different spots on the table or write anything on it or chip it or rotate it...

this is an interesting problem too. This is the best solution I could think of so far:

Before anyone starts, the card shows black. It's decided that, for the first 9 days, the only person who wil flip the card to white will be the first person to go to the room twice. If no-one goes to the room twice in 9 days, then the 9th person, seeing the card is black, can immediately declare that it's everyone's been in the room. Otherwise, after 9 days, the 9 people can be divided into 4 groups: the ones that, the first time they came into the room, saw that the card was black; those that saw it was white the first time they came in; the person who flipped the card from black to white, and those who never got to the room in the 1st 9 days. The person who flipped the card will be the one who collects information from the others. When he flips the card on Day X (i'll assume it's a boys camp), he knows that at least X-1 people (the people who saw black, including himself) will have entered the room by day 9. The people who saw black have nothing else to do--they've already been counted by the information gatherer. The other people (those who saw white or didn't enter the room at all) need to be counted now. Starting with the person who enters on Day 9, here's the procedure:

If those who haven't been counted see that the card is white, they flip it to black. Once they flip it one time, any subsequent time they enter the room they do nothing, no matter what they see.

Those who have been counted never do anything.

The information gatherer flips the card to white whenever he sees that it is black.

The information gatherer will count the number of times he sees the card is black after day 9. If he sees the card is black 9-(x-1) days, then he knows that everyone has been in the room!

But this is potentially a LONG procedure--if camp is only 3 months, I think you'd be lucky if you cut your time in camp by half. I will try to think of a better solution.
__________________
oh baby oh baby, i like gravy.

Last edited by rsl12; 03-20-2004 at 03:56 AM..
rsl12 is offline  
Old 03-21-2004, 05:47 PM   #3 (permalink)
Insane
 
can you trust the other kids to cooperate?
mulletJeb is offline  
Old 03-21-2004, 05:48 PM   #4 (permalink)
Insane
 
::edit:: nm.
mulletJeb is offline  
Old 03-21-2004, 09:08 PM   #5 (permalink)
Crazy
 
See what you do, is you give every kid in the room the first day a black eye on their left eye, then the next day you give every kid in the room a black eye on their right eye. Then the next day you mark everybody on the nose, maybe with the card, since that's how you're supposed to communicate. Continue this, marking everyone in the room in one way every day, on any day where everyone in the room has the same mark somewhere, you win!

So it's violent. :P
__________________
Someday someone may kill you with your own gun, but they should have to beat you to death with it because it is empty.
ChickenNinja is offline  
Old 03-22-2004, 09:02 AM   #6 (permalink)
Junkie
 
kutulu's Avatar
 
You're supposed to communicate with the kids via the card. I see no reason why you can't use the placement of the card as a means of communication. If so, just pick 4 spots in the room to put the card in. Everyone flips the card one time.
If the card is white first, the first visitor flips it to black. The next unique visitor makes it white again and moves it to the second position. When somone sees the card on the black side in the 4th position, he knows that everyone has been there.

If you can't use the placement of the card, I'd go with rsl12's info gatherer approach.
kutulu is offline  
Old 03-22-2004, 12:36 PM   #7 (permalink)
 
KnifeMissile's Avatar
 
Location: Waterloo, Ontario
I think rsl12 is the only person who understands the question.

No, you may not move the card as a form of communication. The idea is that there is only one bit of information that can be transfered at a time. You can assume the camp counsellors (or whatever they're called) will always centre the card on the table after you've flipped it (for neatness)...

ChickenNinja, perhaps it's pointless to say this but your scheme is both violent and useless. You still can't solve the problem using your "solution" but, at least, you'll have a bunch of kids with black eyes, if that's your cup of tea...

Quote:
Originally posted by rsl12
When he flips the card on Day X (i'll assume it's a boys camp), he knows that at least X-1 people (the people who saw black, including himself) will have entered the room by day 9. The people who saw black have nothing else to do--they've already been counted by the information gatherer. The other people (those who saw white or didn't enter the room at all) need to be counted now. Starting with the person who enters on Day 9, here's the procedure:

...

The information gatherer will count the number of times he sees the card is black after day 9. If he sees the card is black 9-(x-1) days, then he knows that everyone has been in the room!
I don't understand the significance of day 9 (not to mention that there are ten kids, but that's arbitrary and unimportant). Suppose the the first kid to see the room twice is on the third day. I'm confused about how to proceed using your algorithm.

Other than that, it sounds like you understand the problem and, in fact, are on your way to one of the more efficient methods of doing so. There are two others, more effecient, but neither are terribly obvious...
KnifeMissile is offline  
Old 03-22-2004, 01:08 PM   #8 (permalink)
On the lam
 
rsl12's Avatar
 
Location: northern va
whoops, read the problem wrong. change all references from day 9 to day 10.

The idea of the 1st part of my algorithm is to take advantage of the fact that you know that only one person will see the card on each day. If the a kid comes back on the 3rd day, you don't get much benefit from the plan. Then that kid knows that can really only count on 2 kids (him and another) and has to go through the 2nd part of the algorithm for 8 other kids. BUT if a kid doesn't get repeated until day 5 or so, then he's already got 4 kids counted (including himself) and needs to go through the 2nd part for 6 of the kids.

To clarify with an example: Let's call them kids 1-10.

1st day. Kid 1 (black)
D2: K2 (black)
D3: K3 (black)
D4: K2 (white, knows that 3 kids, including himself, have entered)
D5: K4 (white)
D6: K1 (white)
D7: K5 (white)
D8: K5 (white)
D9: K2 (white)
D10: K4 (black, so that next time K2 enters, he knows that at least 4 kids have entered. It was necessary to establish a day when you switch to the 2nd algorithm, because if you start immediately after Day 4, the card gets flipped to black on Day 5 by K4, and on Day 6, K1 might think he's the 1st person to enter twice and is therefore the information gatherer.)
From here on out, you continue with the 2nd part of the algorithm. You could solve the problem with JUST the 2nd part of the algorithm, but, on average, you get a more efficient answer by adding the 1st part. Still trying to think of other solutions.

EDIT: also, like I said, the 1st part of the algorithm takes advantage of the fact that you know only 1 kid is entering per day, so you can count kids entering by counting the days. If the time interval between which kids are entering is unknown, then that 1st part of the algorithm is useless. ALSO: it might be more efficient, on average, to use a cutoff day other than Day 10. Using Day 10 as the cutoff allows the possibility of getting out of camp as early as Day 10, but if you use something like Day 5 or Day 6 it might be more efficient on average, even though you would never get out after 10 days. When using Day 5 as the cutoff, then if the kid entering on Day 5 sees that the card is black, he flips it to white even if it's his first time entering and becomes the information gatherer (and knows that 5 kids have entered the room as of Day 5 if it's his 1st time, or that 4 kids have entered if it's his 2nd time).

2nd EDIT: I guess this also assumes that all the kids know that the 1st day that a kid will enter the room is June 1st, or something like that, so that they can count days.
__________________
oh baby oh baby, i like gravy.

Last edited by rsl12; 03-22-2004 at 01:22 PM..
rsl12 is offline  
Old 03-24-2004, 04:26 AM   #9 (permalink)
On the lam
 
rsl12's Avatar
 
Location: northern va
knifemissile, i give up! what are the other solutions?
__________________
oh baby oh baby, i like gravy.
rsl12 is offline  
Old 03-24-2004, 08:22 AM   #10 (permalink)
Wehret Den Anfängen!
 
Location: Ontario, Canada
{deleted by me}
__________________
Last edited by JHVH : 10-29-4004 BC at 09:00 PM. Reason: Time for a rest.

Last edited by Yakk; 03-24-2004 at 08:28 AM..
Yakk is offline  
Old 03-24-2004, 12:37 PM   #11 (permalink)
Tone.
 
shakran's Avatar
 
hmmm. This sounds like the old barmoeter question:
http://wearcam.org/barometer.html


Namely, there are better ways to solve it than the way that the jerks who made the problem want you to. Were I in that camp, I'd just ask each kid if he'd been in the room. The threat of 12 years of math camp would keep them honest. Once all of them said yes, I'd declare and we'd go home.
shakran is offline  
Old 03-24-2004, 01:16 PM   #12 (permalink)
Junkie
 
kutulu's Avatar
 
In my first day of Process Design class my professor had that question. He had about two pages of answers for it. One of my favorites was to drop it off the side of the building and measure the time that it took to reach the ground.
kutulu is offline  
Old 03-24-2004, 02:06 PM   #13 (permalink)
Muffled
 
Kadath's Avatar
 
Location: Camazotz
Quote:
Originally posted by shakran
hmmm. This sounds like the old barmoeter question:
http://wearcam.org/barometer.html


Namely, there are better ways to solve it than the way that the jerks who made the problem want you to. Were I in that camp, I'd just ask each kid if he'd been in the room. The threat of 12 years of math camp would keep them honest. Once all of them said yes, I'd declare and we'd go home.
Quote:
You're all staying at different camp grounds so, after this meeting, the only communication between you kids will be the flipping (or non-flipping) of this card...
__________________
it's quiet in here
Kadath is offline  
Old 03-24-2004, 04:45 PM   #14 (permalink)
Curious
 
Shpoop's Avatar
 
Location: NJ (but just for college)
well ive heard a riddle like this before, but for some reason i cant remember the answer, so i made up a new one... would this work? they start all 9 black up... the person who sees all black is told to flip them all over, the person who sees all white is told to flip 8 over, the person who sees 8 black is told to flip 7 over...etc... by following that logic, the person who sees 3 white (i think) would know that he is teh final person
Shpoop is offline  
Old 03-24-2004, 05:46 PM   #15 (permalink)
Tilted
 
Location: Bremerton, WA
One person would be the information gatherer just like RSl12 said, when some one goes into the room if it is there first time or they haven't fliped the card up yet and the card is black then they flip the card to white, else they leave it alone, then the information gatherer when he goes in if he sees white then he turns it over to black and it goes on when the information gatherer counts 9 whites then everyone has been in there.

I know that would take forever but it is simple and no one would be able to get confused to wether or not they should flip the card or not.
__________________
(;þ "You can't change what has happened, but you can make the best of it, and make better decisions from the past." (Unless there is a quick edit button.)

Last edited by SirGoreaxe; 03-24-2004 at 05:49 PM..
SirGoreaxe is offline  
Old 03-25-2004, 11:28 AM   #16 (permalink)
On the lam
 
rsl12's Avatar
 
Location: northern va
shakran, the sentiment of coming up with creative solutions is wonderful. if you can think of one for this problem, i'd love to hear it.
__________________
oh baby oh baby, i like gravy.
rsl12 is offline  
Old 03-25-2004, 11:51 AM   #17 (permalink)
Crazy
 
You rip the card into pieces, on your first visit to the room you take a riped piece. Once all of the ripped pieces of card are gone you can assume everyone has been in the room
Ryan is offline  
Old 03-25-2004, 04:45 PM   #18 (permalink)
Thats MR. Muffin Face now
 
losthellhound's Avatar
 
Location: Everywhere work sends me
I understand the question, but I cant solve it past a certain point. Im going to give it to my best Math student at UofWaterloo tonight at WIlliams and let him "at it"
__________________
"Life is possible only with illusions. And so, the question for the science of mental health must become an absolutely new and revolutionary one, yet one that reflects the essence of the human condition: On what level of illusion does one live?"
-- Ernest Becker, The Denial of Death
losthellhound is offline  
Old 03-25-2004, 07:17 PM   #19 (permalink)
Thats MR. Muffin Face now
 
losthellhound's Avatar
 
Location: Everywhere work sends me
Alright here is a solution.. Rock solid, but it will take awhile...

First, assign every kid a number and make sure they know thier number.. between 1 and 10.

- child1 is assigned to any day ending in 1. (Includes 1, 11, 21, 31 ...)
- subsequently all other children are assigned the days ending in thier number child2 gets 2, 12, 22 etc etc
- card starts black
- If child1 comes in on any day ending in 1, he flips the card from black to white
- If child2 comes in on his assigned day and sees the card white, he knows that child1 has been in the room the day before
- If any child enters the room on a day that they are not assigned to, and the card is white, they flip the card to black or leave it black
- Any child except for child1 who enters the room on thier assigned day and sees the card black, they leave it black
- Until such time as they come in and see the card is white on thier assigned day, from that point on they leave the card white, or flip it white on any assigned day after that...

- so... for example (days are arbitrary)

day 31 - child1 comes in and flips it white
32 - child2 comes in sees that it is white, now knows that child1 has been in the room and from then on will ensure they leave the card white or flips the card white on any day that ends in 2
..
..
..
as an example:
day 72 - child2, knowing for the last few months that child1 has visited the room, leaves the card white, or flips it white
day 73 - child3 sees the card white and knows from now on that both child1 and child2 have been in the room and from that point on leaves the card white or flips the card white on any of his assigned days.. Before this point, child3, not having proof of child 2 and 1, would have been leaving the card black or flipping to black..

so.. fast forward to day 2000 child10 enters the room. (he's pissed, his parents have abandoned him to the evil dictators of the math camp) sees the card white.. he knows that child9 was in the day before, and has proof that all other children have visited the room.. He then shoves the card down the counsellors throat and sues his parents..

BUT.. he gets to go home..

How's that Knifemissile?
__________________
"Life is possible only with illusions. And so, the question for the science of mental health must become an absolutely new and revolutionary one, yet one that reflects the essence of the human condition: On what level of illusion does one live?"
-- Ernest Becker, The Denial of Death
losthellhound is offline  
Old 03-25-2004, 10:59 PM   #20 (permalink)
 
KnifeMissile's Avatar
 
Location: Waterloo, Ontario
Yeah, that was my first solution. When I mentioned this to a colleague of mine, they suggested an optimisation where you flip the card white, not only on your day but, on the days of the kids you already know have gone through. This will propogate the information faster...

For all of you who are looking for a more in-depth treatise of this problem, check out this PDF file of a problem with a hundred prisoners...


EDIT: Damnit, I forgot to double-check my link. It's been corrected now...

Last edited by KnifeMissile; 03-26-2004 at 10:50 AM..
KnifeMissile is offline  
Old 03-26-2004, 08:19 AM   #21 (permalink)
Riiiiight........
 
Corrected link
http://www.ocf.berkeley.edu/~wwu/pap...sLightBulb.pdf
dimbulb is offline  
Old 03-26-2004, 10:26 AM   #22 (permalink)
On the lam
 
rsl12's Avatar
 
Location: northern va
btw knifemissile--my exact solution is in that document...Section 2.2. I knew there had to be a way to get everybody to be a counter, but couldn't figure it out. Thanks for the very interesting puzzel...
__________________
oh baby oh baby, i like gravy.
rsl12 is offline  
Old 03-26-2004, 11:16 AM   #23 (permalink)
Wehret Den Anfängen!
 
Location: Ontario, Canada
The best part about the puzzle is the first reaction, which is "no way you can do that! You have 1 bit." =)

Fun variants: (at least one isn't possible)
The prisoners are in solitary, and have no clocks. They don't know what day it is when they are brought to the room.

Every prisoner is given a number. Someone has to report the sum of all the numbers (or, roughly equivilently, list all of the numbers, if you can bound each.)

Every prisoner has to say "I know everyone has been in the room" before anyone is let free.

Every prisoner has to say "I know everyone has been in the room" before everyone is let free, but once you say it, you are moved to another cell block.

All prisoners have to say "I know everyone has been in the room" at once.

The warden listens in. Based off your algorithm, he can change which prisoner goes in when. However, every prisoner will visit an infinite number of times in an infinite period of time.
__________________
Last edited by JHVH : 10-29-4004 BC at 09:00 PM. Reason: Time for a rest.
Yakk is offline  
Old 03-26-2004, 02:06 PM   #24 (permalink)
Thats MR. Muffin Face now
 
losthellhound's Avatar
 
Location: Everywhere work sends me
Quote:
The warden listens in. Based off your algorithm, he can change which prisoner goes in when. However, every prisoner will visit an infinite number of times in an infinite period of time.
My solution works for this
__________________
"Life is possible only with illusions. And so, the question for the science of mental health must become an absolutely new and revolutionary one, yet one that reflects the essence of the human condition: On what level of illusion does one live?"
-- Ernest Becker, The Denial of Death
losthellhound is offline  
Old 03-26-2004, 07:10 PM   #25 (permalink)
On the lam
 
rsl12's Avatar
 
Location: northern va
losthellhound: not really, if he systematically sends people in this order:

1, 3, 2, 4, 5, 6, 7, 8...99, 100, 1, 3, 2, 4, 5, etc, etc, you will never get out.

on the other hand, MY solution ought to work.
__________________
oh baby oh baby, i like gravy.
rsl12 is offline  
Old 03-26-2004, 08:28 PM   #26 (permalink)
Tone.
 
shakran's Avatar
 
Quote:
Originally posted by rsl12
shakran, the sentiment of coming up with creative solutions is wonderful. if you can think of one for this problem, i'd love to hear it.

d'oh. I should really learn to read one of these days
shakran is offline  
 

Tags
puzzle, subtle


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -8. The time now is 12:57 PM.

Tilted Forum Project

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Search Engine Optimization by vBSEO 3.6.0 PL2
© 2002-2012 Tilted Forum Project

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 138 139 140 141 142 143 144 145 146 147 148 149 150 151 152 153 154 155 156 157 158 159 160 161 162 163 164 165 166 167 168 169 170 171 172 173 174 175 176 177 178 179 180 181 182 183 184 185 186 187 188 189 190 191 192 193 194 195 196 197 198 199 200 201 202 203 204 205 206 207 208 209 210 211 212 213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 263 264 265 266 267 268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 291 292 293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 322 323 324 325 326 327 328 329 330 331 332 333 334 335 336 337 338 339 340 341 342 343 344 345 346 347 348 349 350 351 352 353 354 355 356 357 358 359 360