Challenge Questions Blog

Challenge Questions

Stop in and exercise your brain. Talk about this month's Challenge from Specs & Techs or similar puzzles.

So do you have a Challenge Question that could stump the community? Then submit the question with the "correct" answer and we'll post it. If it's really good, we may even roll it up to Specs & Techs. You'll be famous!

Answers to Challenge Questions appear by the last Tuesday of the month.

Previous in Blog: Dottown Deaths: Newsletter Challenge (November 2019)   Next in Blog: The Logician at the Crossroads: Newsletter Challenge (January 2020)
Close
Close
Close
49 comments
Rate Comments: Nested

Bewildering Boxes: Newsletter Challenge (December 2019)

Posted November 30, 2019 5:01 PM
Pathfinder Tags: box challenge question name prisoner

This month's IEEE GlobalSpec Newsletter Challenge is:

The names of 100 prisoners are placed in 100 wooden boxes, one name to a box, and the boxes are lined up on a table in a room. One by one, the prisoners are led into the room; each may look in at most 50 boxes, but must leave the room exactly as he found it and is permitted no further communication with the others.

The prisoners have a chance to plot their strategy in advance, and they are going to need it, because unless every single prisoner finds his own name all will subsequently remain in prison for life.

Find a strategy for them which which has probability of success exceeding 30%.

[A comment: If each prisoner examines a random set of 50 boxes, their probability of survival is an unenviable 1/2100 ∼ 0.0000000000000000000000000000008. They could do worse—if they all look in the same 50 boxes, their chances drop to zero. Achieving 30% seems ridiculously out of reach—but yes, you heard the problem correctly.]

And the answer is:

This problem, inspired by a 2003 paper written by Danish computer scientist Peter Bro Miltersen, has become known as the "100 prisoners problem."

To solve it, the prisoners must first agree on a random labeling of the boxes by their own names. (The point of making it random is that it makes it impossible for the warden to place names in boxes in such a way as to foil the protocol described next.)

When admitted to the room, each prisoner inspects his own box (that is, the box with which his own name has been associated). He then looks into the box belonging to the name he just found, and then into the box belonging to the name he found in the second box, etc. until he either finds his own name, or has opened 50 boxes.

That’s the strategy; now, why on earth should it work? The process which assigns to a box’s owner the name found in his box is a permutation of the 100 names, chosen uniformly at random from the set of all such permutations. Each prisoner is following a cycle of the permutation, beginning with his box and (if he doesn’t run over the 50-box limit) ending with his name on a piece of paper. If it happens that the permutation has no cycles of length greater than 50, this process will work every time and the prisoners will be spared.

In fact, the probability that a uniformly random permutation of the numbers from 1 to 2n contains no cycle of length greater than n is at least 1 minus the natural logarithm of 2—about 30.6853%.

To see this, let k > n and count the permutations having a cycle C of length exactly k. There are 2n/k ways to pick the entries in C, (k−1)! ways to order them, and (2n−k)! ways to permute the rest; the product of these numbers is (2n)!/k.

Since at most one k-cycle can exist in a given permutation, the probability that there is one is exactly 1/k. It follows that the probability that there is no long cycle is

1 − (1/n+) − (1/n+2) − · · · − (1/2n = 1) − H2n + Hn

where Hn is the sum of the reciprocals of the first n positive integers, approximately ln m. Thus our probability is about 1 − ln 2n + ln n = 1 − ln 2, and in fact is always a bit larger. For n = 50 we get that the prisoners survive with probability 31.1827821%.

Reply

Interested in this topic? By joining CR4 you can "subscribe" to
this discussion and receive notification when new comments are added.

Good Answers:

These comments received enough positive votes to make them "good answers".

"Almost" Good Answers:

Check out these comments that don't yet have enough votes to be "official" good answers and, if you agree with them, vote them!
Guru

Join Date: Mar 2007
Location: by the beach in Florida
Posts: 33392
Good Answers: 1817
#1

Re: Bewildering Boxes: Newsletter Challenge (December 2019)

11/30/2019 5:39 PM

The prisoners all agree beforehand to an agreed alphabetical order...and are assigned a number from 1 - 100...Then the first person in alphabetizes the first 50 boxes, the second person in alphabetizes the second 50, the third person in takes the first 25 boxes from each group and alphabetizes them, and so on and so on....So before it begins, everybody already knows their number, they just have to make names in the boxes appear in that order...

__________________
All living things seek to control their own destiny....this is the purpose of life
Reply
Guru

Join Date: Apr 2008
Location: Chicago
Posts: 3990
Good Answers: 144
#2
In reply to #1

Re: Bewildering Boxes: Newsletter Challenge (December 2019)

11/30/2019 9:12 PM

Rearrangement of names doesn't seem like leaving the room exactly as they found it.

They are allowed to look in the boxes.

Am I reading this to litterly?

__________________
High Tolerance is Beautiful
Reply Score 1 for Good Answer
Guru

Join Date: Mar 2007
Location: by the beach in Florida
Posts: 33392
Good Answers: 1817
#40
In reply to #2

Re: Bewildering Boxes: Newsletter Challenge (December 2019)

12/03/2019 1:34 PM

Prisoners can be very sneaky...One name in each box is no change...no change as in appearance...

__________________
All living things seek to control their own destiny....this is the purpose of life
Reply
Guru

Join Date: Apr 2008
Location: Chicago
Posts: 3990
Good Answers: 144
#41
In reply to #40

Re: Bewildering Boxes: Newsletter Challenge (December 2019)

12/03/2019 10:23 PM

So the guards are going to make sure they only look in 50 boxes each, but won't notice them being alphabetized?!?

Must be scumbag Epsteins guards.

That's just way to much slight of hand going unnoticed to be feasible..

__________________
High Tolerance is Beautiful
Reply
Guru

Join Date: Mar 2007
Location: by the beach in Florida
Posts: 33392
Good Answers: 1817
#42
In reply to #41

Re: Bewildering Boxes: Newsletter Challenge (December 2019)

12/04/2019 4:20 AM

I don't see anywhere in the rules that says they can't take the names out and rearrange them....the only requirement is that when they leave the room looks the same vis-a-vis box locations...and that no more than 50 boxes have been molested....

__________________
All living things seek to control their own destiny....this is the purpose of life
Reply
Guru

Join Date: Apr 2008
Location: Chicago
Posts: 3990
Good Answers: 144
#43
In reply to #42

Re: Bewildering Boxes: Newsletter Challenge (December 2019)

12/04/2019 7:38 AM

That may be so, but given you methodology, it sure wouldn't be a tough exercise to get to a 30% success.

I don't write the riddles, i just interpret.

I'd say "look in the boxes" is pretty clear.

__________________
High Tolerance is Beautiful
Reply
Guru

Join Date: Mar 2007
Location: by the beach in Florida
Posts: 33392
Good Answers: 1817
#44
In reply to #43

Re: Bewildering Boxes: Newsletter Challenge (December 2019)

12/04/2019 1:22 PM

Yes but let's not forget the handicap discrimination laws...What if one of the "prisoner's" is blind? ...therefore he must be able to touch, and if one is allowed, they must all be allowed...Ipso facto seeing and touching are one in the same....It's the law man.....Jurisprudence

__________________
All living things seek to control their own destiny....this is the purpose of life
Reply
Guru

Join Date: Apr 2008
Location: Chicago
Posts: 3990
Good Answers: 144
#46
In reply to #44

Re: Bewildering Boxes: Newsletter Challenge (December 2019)

12/06/2019 5:34 AM

Are you trying to get my goat!

A blind prisoner alphabetized list?

You jest!

__________________
High Tolerance is Beautiful
Reply
Guru

Join Date: Mar 2007
Location: by the beach in Florida
Posts: 33392
Good Answers: 1817
#47
In reply to #46

Re: Bewildering Boxes: Newsletter Challenge (December 2019)

12/06/2019 2:22 PM

I jest you not, the names must be in print and braille...

__________________
All living things seek to control their own destiny....this is the purpose of life
Reply
Guru

Join Date: Apr 2008
Location: Chicago
Posts: 3990
Good Answers: 144
#48
In reply to #47

Re: Bewildering Boxes: Newsletter Challenge (December 2019)

12/06/2019 4:10 PM

I guess blind guards would help with the equal opportunity.

Good thing there's no time limit.. life maybe.

__________________
High Tolerance is Beautiful
Reply
Guru

Join Date: Mar 2007
Location: by the beach in Florida
Posts: 33392
Good Answers: 1817
#49
In reply to #48

Re: Bewildering Boxes: Newsletter Challenge (December 2019)

12/06/2019 10:45 PM

Maybe it's based on the honor system...?

__________________
All living things seek to control their own destiny....this is the purpose of life
Reply
5
Guru

Join Date: Apr 2010
Location: About 4000 miles from the center of the earth (+/-100 mi)
Posts: 9910
Good Answers: 1141
#3
In reply to #1

Re: Bewildering Boxes: Newsletter Challenge (December 2019)

11/30/2019 9:31 PM

The prisoners are not allowed to do anything except to look into half of the boxes. They can't move them around. They must leave the room exactly as they found it.

Each prisoner has to memorize a list of all the names and their line number on the list. For example, John Smith might be #67 on the list.

The prisoner starts with his number box. (Boxes are numbered 1 to 100, and John Smith starts with box#67.)

If his name is not there, he goes to the number box of the name that he finds. He continues this process until he finds his own name or has looked in half the boxes.

I wrote a Matlab program to run 1000 iterations where all the prisoners try to find their names using the above algorithm, and in about 30 percent of the cases all the prisoners found their names looking in 50 boxes or less, plotted as '1' on the graph below. The red line is the overall average.

Reply Good Answer (Score 5)
Guru

Join Date: Mar 2007
Location: by the beach in Florida
Posts: 33392
Good Answers: 1817
#5
In reply to #3

Re: Bewildering Boxes: Newsletter Challenge (December 2019)

11/30/2019 11:29 PM

Prisoners can't memorize 100 names and their numbers....the odds on that occurring is zilch...

..."Many psychology experiments have shown that our short-term memory can hold only a limited number of separate items. The average is about 7 items, plus or minus 2, depending on the individual."..

https://thebrain.mcgill.ca/flash/capsules/experience_jaune03.html

__________________
All living things seek to control their own destiny....this is the purpose of life
Reply
Guru
Technical Fields - Technical Writing - New Member Engineering Fields - Piping Design Engineering - New Member

Join Date: May 2009
Location: Richland, WA, USA
Posts: 21017
Good Answers: 795
#9
In reply to #5

Re: Bewildering Boxes: Newsletter Challenge (December 2019)

12/01/2019 5:46 AM

The memory limitation may be true, but the rules don't prohibit having a crib sheet. Also, they seem to allow each prisoner to write down whatever he finds, which might help subsequent prisoners.

(And what if the prisoners include some likenesses of Rain Man?)

__________________
In vino veritas; in cervisia carmen; in aqua E. coli.
Reply
Guru

Join Date: Apr 2010
Location: About 4000 miles from the center of the earth (+/-100 mi)
Posts: 9910
Good Answers: 1141
#11
In reply to #9

Re: Bewildering Boxes: Newsletter Challenge (December 2019)

12/01/2019 7:25 AM

I agree with the crib sheets, but they are not allowed to communicate with other prisoners afterward.

Reply
Guru

Join Date: Mar 2007
Location: by the beach in Florida
Posts: 33392
Good Answers: 1817
#12
In reply to #9

Re: Bewildering Boxes: Newsletter Challenge (December 2019)

12/01/2019 1:19 PM

Any and all communication between prisoners, must take place before the exercise begins...besides prisoners are not allowed to have pencils, they could stab the guards and escape...

__________________
All living things seek to control their own destiny....this is the purpose of life
Reply
Guru
Technical Fields - Technical Writing - New Member Engineering Fields - Piping Design Engineering - New Member

Join Date: May 2009
Location: Richland, WA, USA
Posts: 21017
Good Answers: 795
#16
In reply to #12

Re: Bewildering Boxes: Newsletter Challenge (December 2019)

12/01/2019 6:30 PM

Excuuse me, but where do the rules stipulate any of that?

__________________
In vino veritas; in cervisia carmen; in aqua E. coli.
Reply Off Topic (Score 5)
Power-User

Join Date: Dec 2016
Posts: 205
Good Answers: 3
#19
In reply to #16

Re: Bewildering Boxes: Newsletter Challenge (December 2019)

12/01/2019 10:42 PM

"...must leave the room exactly as he found it and is permitted no further communication with the others."

Reply
Guru
Technical Fields - Technical Writing - New Member Engineering Fields - Piping Design Engineering - New Member

Join Date: May 2009
Location: Richland, WA, USA
Posts: 21017
Good Answers: 795
#21
In reply to #19

Re: Bewildering Boxes: Newsletter Challenge (December 2019)

12/02/2019 12:12 AM

I stand corrected. Thanks, and thanks to SE also.

__________________
In vino veritas; in cervisia carmen; in aqua E. coli.
Reply
Guru

Join Date: Aug 2012
Location: Land of Fruits and Nuts
Posts: 4481
Good Answers: 54
#23
In reply to #12

Re: Bewildering Boxes: Newsletter Challenge (December 2019)

12/02/2019 1:20 AM

Solar! That's the best answer I've heard! Go to the head of the class!

It really made me laugh!

__________________
Enjoy and be happy! Life is too short!
Reply
Guru

Join Date: Aug 2012
Location: Land of Fruits and Nuts
Posts: 4481
Good Answers: 54
#28
In reply to #3

Re: Bewildering Boxes: Newsletter Challenge (December 2019)

12/02/2019 1:59 AM

I just saw the answer and you're correct. The solution you came up with makes a lot of sense. GA to you!

__________________
Enjoy and be happy! Life is too short!
Reply
2
Guru

Join Date: Apr 2010
Location: About 4000 miles from the center of the earth (+/-100 mi)
Posts: 9910
Good Answers: 1141
#31
In reply to #3

Re: Bewildering Boxes: Newsletter Challenge (December 2019)

12/02/2019 12:21 PM

It's interesting to see why this works. If you assign a number to each prisoner, 1-100, then you have 100 numbered boxes, each pointing to one of 100 prisoners. So what you have is one or more closed loops. If there is more than 1 closed loop, the loops are completely disconnected, you can't get from one loop to another.

Here is a pair of examples with 8 nodes. On the left there are 3 closed isolated loops and on the right 2 loops, one of which has greater than N/2 nodes and would be bad news for the prisoners.

"Graph representations of the permutations (1 7 5)(2 4 8)(3 6) and (1 3 7 4 5 8 2)(6)"

By going to the box number corresponding to his name, the prisoner enters the loop he is on and if the loop length is less than 50 nodes, he finds his name.

Obviously, there can be only one loop with greater than 50 nodes if there are only 100 nodes in all.

The odds can be calculated that there are no loops greater than 50 nodes:

"The probability, that a (uniformly distributed) random permutation contains no cycle of length greater than 50 is calculated with the formula for single events and the formula for complementary events thus given by

where {\displaystyle H_{n}} is the {\displaystyle n}-th harmonic number. Therefore, using the cycle-following strategy the prisoners survive in a surprising 31% of cases."

https://en.wikipedia.org/wiki/100_prisoners_problem

Reply Good Answer (Score 2)
Guru

Join Date: Mar 2007
Location: by the beach in Florida
Posts: 33392
Good Answers: 1817
#33
In reply to #31

Re: Bewildering Boxes: Newsletter Challenge (December 2019)

12/02/2019 1:58 PM

Interesting, but still seems like rather slim odds that all prisoners will find their number...and why the choice of prisoners to play this cruel game, why not aristocrats....

__________________
All living things seek to control their own destiny....this is the purpose of life
Reply Score 1 for Good Answer
Power-User
Hobbies - Musician - New Member Technical Fields - Technical Writing - New Member

Join Date: Nov 2012
Posts: 431
Good Answers: 6
#35
In reply to #31

Re: Bewildering Boxes: Newsletter Challenge (December 2019)

12/02/2019 3:43 PM

And Rixter has the answer -- I'll post the solution anyway.

Note to self: post challenges that are less Google-able.

__________________
Nobody realizes that some people expend tremendous energy merely to be normal. -Camus
Reply
Guru

Join Date: Apr 2010
Location: About 4000 miles from the center of the earth (+/-100 mi)
Posts: 9910
Good Answers: 1141
#38
In reply to #35

Re: Bewildering Boxes: Newsletter Challenge (December 2019)

12/02/2019 9:49 PM

Great puzzle. Best one I've seen in a long time!

Reply
Power-User
Hobbies - Musician - New Member Technical Fields - Technical Writing - New Member

Join Date: Nov 2012
Posts: 431
Good Answers: 6
#39
In reply to #38

Re: Bewildering Boxes: Newsletter Challenge (December 2019)

12/03/2019 8:43 AM

Great to hear! We've been trying to mix up the puzzles a bit this year -- they're certainly generating some interesting guesses.

__________________
Nobody realizes that some people expend tremendous energy merely to be normal. -Camus
Reply
Guru

Join Date: Aug 2005
Location: Hemel Hempstead, UK
Posts: 5826
Good Answers: 322
#36
In reply to #31

Re: Bewildering Boxes: Newsletter Challenge (December 2019)

12/02/2019 8:45 PM

Interesting that the "worst" "good" scenario (for the prisoners) is two loops of 50.

Every single prisoner has to open all 50 of his allocation before he finds his number in the 50th. I think you'd be pretty nervous opening that last box.

At least when each has finished he knows they're going to get out: if there is one loop of 50 no other loop can ge longer.

__________________
If you spend all your time looking for people and things to complain about: trust me, you will find plenty to complain about.
Reply
Guru

Join Date: Aug 2012
Location: Land of Fruits and Nuts
Posts: 4481
Good Answers: 54
#45
In reply to #31

Re: Bewildering Boxes: Newsletter Challenge (December 2019)

12/05/2019 2:35 PM

When I saw the answer, it made a lot of sense. The loops give the entire group a much better chance of success.

Breaking it down into a simple 8 node loop should help everyone here understand. GA my friend!

__________________
Enjoy and be happy! Life is too short!
Reply
Guru
Engineering Fields - Electrical Engineering - Been there, done that. Engineering Fields - Control Engineering - New Member

Join Date: Dec 2008
Location: Long Island NY
Posts: 15600
Good Answers: 981
#34
In reply to #3

Re: Bewildering Boxes: Newsletter Challenge (December 2019)

12/02/2019 2:16 PM

I like this approach assuming all 100 prisoners can correlate names and box locations, probably with crib sheets made prior to searching. This brings me to the only unstated assumption to this approach, that the boxes' location are unique and unvarying. If the guards rerandomize the identifying box location between each prisoner entering to search then this also falls apart.

__________________
"Don't disturb my circles." translation of Archimedes last words
Reply
Guru
Engineering Fields - Marine Engineering - New Member

Join Date: May 2007
Location: Australia.
Posts: 1642
Good Answers: 81
#4

Re: Bewildering Boxes: Newsletter Challenge (December 2019)

11/30/2019 11:19 PM

Comment: If they all look in the same 50 boxes, their chances drops to zero. So my question is how many prisoners are lead into the room? 100 prisoners checking the same boxes to my reconning equalls 50% success.

PS: Or are we looking at the success rate for all being correct?

Reply
Guru
Engineering Fields - Marine Engineering - New Member

Join Date: May 2007
Location: Australia.
Posts: 1642
Good Answers: 81
#6
In reply to #4

Re: Bewildering Boxes: Newsletter Challenge (December 2019)

11/30/2019 11:41 PM

unless every single prisoner finds his own name all will subsequently remain in prison for life.

PS: Does all mean no individual. sorry.

Reply
Guru

Join Date: Mar 2007
Location: by the beach in Florida
Posts: 33392
Good Answers: 1817
#7
In reply to #6

Re: Bewildering Boxes: Newsletter Challenge (December 2019)

11/30/2019 11:55 PM

I interpret this to mean every prisoner must know the number of the box his name is in...This can't be done in a random fashion, they must have a plan worked out beforehand...

__________________
All living things seek to control their own destiny....this is the purpose of life
Reply
Guru
Engineering Fields - Marine Engineering - New Member

Join Date: May 2007
Location: Australia.
Posts: 1642
Good Answers: 81
#8
In reply to #7

Re: Bewildering Boxes: Newsletter Challenge (December 2019)

12/01/2019 1:28 AM

I Agree

Reply
Guru

Join Date: Apr 2010
Location: About 4000 miles from the center of the earth (+/-100 mi)
Posts: 9910
Good Answers: 1141
#10
In reply to #4

Re: Bewildering Boxes: Newsletter Challenge (December 2019)

12/01/2019 7:07 AM

To succeed, ALL prisoners must find their names. If they all check the same 50 boxes, then only half will find their names.

Reply
Guru

Join Date: Apr 2008
Location: Chicago
Posts: 3990
Good Answers: 144
#13

Re: Bewildering Boxes: Newsletter Challenge (December 2019)

12/01/2019 2:20 PM

I got it!

The prisoners have free access to legal representation and they all plea to have their names change to John Smith.

They aren't all granted a change of name, but enough to give them a better chance.

..call me wrong, but loopholes, lawyers and prison are synonymous.

__________________
High Tolerance is Beautiful
Reply Score 1 for Good Answer
Guru

Join Date: Mar 2007
Location: by the beach in Florida
Posts: 33392
Good Answers: 1817
#14
In reply to #13

Re: Bewildering Boxes: Newsletter Challenge (December 2019)

12/01/2019 3:47 PM

Sorry, but as with all prisoners, we have your fingerprints and DNA on file.....

__________________
All living things seek to control their own destiny....this is the purpose of life
Reply Score 1 for Off Topic
Guru

Join Date: Apr 2008
Location: Chicago
Posts: 3990
Good Answers: 144
#15
In reply to #14

Re: Bewildering Boxes: Newsletter Challenge (December 2019)

12/01/2019 5:38 PM

With so many John Smith's it doesn't matter. Case closed

What better name to have on the outside?

__________________
High Tolerance is Beautiful
Reply Score 1 for Off Topic
Guru

Join Date: Aug 2012
Location: Land of Fruits and Nuts
Posts: 4481
Good Answers: 54
#25
In reply to #15

Re: Bewildering Boxes: Newsletter Challenge (December 2019)

12/02/2019 1:28 AM

Or they could all change their name to Rahm Emmanuel ... well, at least the one who changed his name from Rod Blagojevich to Rahm Emmanuel would still be a crooked politician ... ooops, did I say something I wasn't suppose to?

__________________
Enjoy and be happy! Life is too short!
Reply
Guru

Join Date: Aug 2012
Location: Land of Fruits and Nuts
Posts: 4481
Good Answers: 54
#24
In reply to #13

Re: Bewildering Boxes: Newsletter Challenge (December 2019)

12/02/2019 1:25 AM

JE, I can tell you're from Chicago. Wasn't that where the phrase "Vote early and Vote often" came from.

Odd fact you probably know. "The Windy City" was given to Chicago, not because of the physical wind, though it is pretty strong. Instead, it was given because of the politicians being wind bags! It's true.

When I was in college, I heard a story about someone who voted using the Dan Ryan Expressway as his address. The address he used was a very old address that was on the street the Dan Ryan Expressway was later build on.

__________________
Enjoy and be happy! Life is too short!
Reply
Guru
Engineering Fields - Marine Engineering - New Member

Join Date: May 2007
Location: Australia.
Posts: 1642
Good Answers: 81
#17

Re: Bewildering Boxes: Newsletter Challenge (December 2019)

12/01/2019 6:43 PM

The only variables I can think off, is the time taken to check the boxes, and the agreement with the next person in line. So the agreement is (1) to check only even numbered or odd numbered boxes, (2) the time taken to indicate to the next person whether the following persons name was included in their check. If their name was included, they extend their time period, and the the next person checks the same boxes, else they check the next agreed boxes.

So mathematically, what is the odds of the first person being able to find their name?

Reply
Guru

Join Date: Mar 2007
Location: by the beach in Florida
Posts: 33392
Good Answers: 1817
#18
In reply to #17

Re: Bewildering Boxes: Newsletter Challenge (December 2019)

12/01/2019 10:05 PM

Sorry communication after the exercise has started is not allowed....

__________________
All living things seek to control their own destiny....this is the purpose of life
Reply
Guru
Engineering Fields - Marine Engineering - New Member

Join Date: May 2007
Location: Australia.
Posts: 1642
Good Answers: 81
#22
In reply to #18

Re: Bewildering Boxes: Newsletter Challenge (December 2019)

12/02/2019 12:16 AM

leave the room exactly as he found it and is permitted no further communication with the others.

The reference suggests to me, no communication when they leave the room? I respect your point, but I find the wording a bit suggestive. And, as they are lead into the room no visual communication may be possible, and does it suggest they leave the room the same way they entered it?

Reply
Guru

Join Date: Mar 2007
Location: by the beach in Florida
Posts: 33392
Good Answers: 1817
#29
In reply to #22

Re: Bewildering Boxes: Newsletter Challenge (December 2019)

12/02/2019 5:30 AM

I interpret that "leave the room exactly as it was" to mean one name in each box with the boxes lined up on a table in numerical order...that does not preclude switching names...It does prohibit any communication after starting though...There should be at least half the prisoners that can alphabetize names, and that should be enough...

__________________
All living things seek to control their own destiny....this is the purpose of life
Reply
Member

Join Date: Jul 2015
Posts: 5
#20

Re: Bewildering Boxes: Newsletter Challenge (December 2019)

12/02/2019 12:10 AM

All the prisoners are women. They are not bound by "but must leave the room exactly as he found it". Therefore, the strategy is for female prisoner 1 to open the first 50 boxes, remove the names and put on the table adjacent to the box the name came from. Prisoner 2 does the same for the remaining 50 boxes. prisoners 3-100 don't have to look in any box, they just look on the table and find their name and note the number on the corresponding box. Only prisoner 1 is in danger of not finding her name in the first 50 boxes. However, one presumes that at the end each prisoner would recite the box where their name was placed and 99 prisoners would get it right and prisoner 1 would be the unreported box.

Reply
Guru

Join Date: Aug 2012
Location: Land of Fruits and Nuts
Posts: 4481
Good Answers: 54
#26
In reply to #20

Re: Bewildering Boxes: Newsletter Challenge (December 2019)

12/02/2019 1:32 AM

Hahaha! You missed one key trait of women. The first would just open all 100 boxes and not listen to the rules, because she was on her iPhone when they were talking about the rules. In fact, every women was either doing her hair, make up or on her phone and none of them heard the rules. The only thing they heard is that they had to find their name and they would get out of prison if every gal found her name.

__________________
Enjoy and be happy! Life is too short!
Reply Score 2 for Off Topic
Guru

Join Date: Aug 2012
Location: Land of Fruits and Nuts
Posts: 4481
Good Answers: 54
#27

Re: Bewildering Boxes: Newsletter Challenge (December 2019)

12/02/2019 1:53 AM

I think I got it.

Prisoner #1 knows the person's name behind him and of course his own name. He looks in the first 50 boxes. If he sees the other person's name, he gets out of the room in less than 5 minutes. If he doesn't see the other person's name, he stalls for over 15 minutes. There's a 50% chance of Prisoner #1 finding his own name.

Prisoner #2 gets his cue from the time delay which is greater than 15 minutes. He then knows to check the first 50 or last 50 boxes to find his name and also to signal to the next person which group of boxes he should check.

Prisoner #3 does the same - all the way down the line.

Success rate is 50%. After the first prisoner (who has a 50% chance of success), each of the other prisoners will have a 100% success rate.

It's not really communicating, since they just came up with a simple rule to watch the time. Not one of their senses are being used to communicate - sight, hearing, taste, smell or touch.

__________________
Enjoy and be happy! Life is too short!
Reply
Guru

Join Date: Jan 2006
Location: Tamworth, UK.
Posts: 1782
Good Answers: 45
#30

Re: Bewildering Boxes: Newsletter Challenge (December 2019)

12/02/2019 8:08 AM

Good thing I am not one of the prisoners...I am no good at thinking 'outside the box'......but I will try...

Are boxes individually labeled?, and how will the guards know the correct named boxes have been found unless each prisoner has to tell the guard which box ....if not every prisoners could say they have found their named box amongst the 50 boxes (maybe a lie)(but therefore true for the next 50)(and as every box has one prisoner name) it follows they have all found their own name and all go free.

....alternatively a strategy where each prisoner places themselves in a group/queue to match the layout of the boxes, and the prisoner leaving the room goes to exact position to match the box (if found) - or back to their original place if not.

Each in turn do the same thing....I can't do the maths...but I guess the odds get better quickly .... assuming later prisoners have good memories....or keep going back to try again (if allowed) until they get it right...... I imagine they have time to do this!

__________________
When arguing, remember mud-slinging = lost ground.
Reply
Guru

Join Date: Apr 2008
Location: Chicago
Posts: 3990
Good Answers: 144
#32

Re: Bewildering Boxes: Newsletter Challenge (December 2019)

12/02/2019 1:47 PM

The first prisoner checks boxes 1-50

The second prisoner checks 2-51

3rd / 3-52 and so on until it loops at 100 and carry through ..

Should be able to achieve about 33%

__________________
High Tolerance is Beautiful
Reply
Guru

Join Date: Apr 2008
Location: Chicago
Posts: 3990
Good Answers: 144
#37

Re: Bewildering Boxes: Newsletter Challenge (December 2019)

12/02/2019 9:09 PM

Surprisingly, there is a strategy that provides a survival probability of more than 30%. The key to success is that the prisoners do not have to decide beforehand which drawers to open. Each prisoner can use the information gained from the contents of every drawer he already opened to help decide which one to open next. Another important observation is that this way the success of one prisoner is not independent of the success of the other prisoners, because they all depend on the way the numbers are distributed.[2]

To describe the strategy, not only the prisoners, but also the drawers are numbered from 1 to 100, for example row by row starting with the top left drawer. The strategy is now as follows:[3]

  1. Each prisoner first opens the drawer with his own number.
  2. If this drawer contains his number he is done and was successful.
  3. Otherwise, the drawer contains the number of another prisoner and he next opens the drawer with this number.
  4. The prisoner repeats steps 2 and 3 until he finds his own number or has opened 50 drawers.

By starting with his own number, the prisoner guarantees he is on a sequence of boxes eventually containing his number. The only question is whether this sequence is longer than 50 boxes.

_________________________________________________________

...Reading the last line, I can see that my "formula" is just as likely to yield similar results.

>>>>>>>>people should know not to google the answer.

__________________
High Tolerance is Beautiful
Reply
Reply to Blog Entry 49 comments

Good Answers:

These comments received enough positive votes to make them "good answers".

"Almost" Good Answers:

Check out these comments that don't yet have enough votes to be "official" good answers and, if you agree with them, vote them!
Copy to Clipboard

Users who posted comments:

Autobroker (7); Hannes (2); horace40 (1); jdretired (5); JE in Chicago (9); kravdave (1); Randall (1); redfred (1); Rixter (5); Sapling (1); SolarEagle (13); Tornado (3)

Previous in Blog: Dottown Deaths: Newsletter Challenge (November 2019)   Next in Blog: The Logician at the Crossroads: Newsletter Challenge (January 2020)

Advertisement