CTK Exchange
CTK Wiki Math
Front Page
Movie shortcuts
Personal info
Awards
Terms of use
Privacy Policy

Interactive Activities

Cut The Knot!
MSET99 Talk
Games & Puzzles
Arithmetic/Algebra
Geometry
Probability
Eye Opener
Analog Gadgets
Inventor's Paradox
Did you know?...
Proofs
Math as Language
Things Impossible
My Logo
Math Poll
Other Math sites
Guest book
News sites

Recommend this site

Manifesto: what CTK is about Search CTK Buying a book is a commitment to learning Table of content Products to download and subscription Things you can find on CTK Chronology of updates Email to Cut The Knot Recommend this page

CTK Exchange

Subject: "100 prisoners and a light bulb"     Previous Topic | Next Topic
Printer-friendly copy    
Conferences The CTK Exchange This and that Topic #634
Reading Topic #634, reply 0
iliaden
Member since Aug-14-05
Aug-14-05, 05:18 PM (EST)
Click to EMail iliaden Click to send private message to iliaden Click to view user profileClick to add this user to your buddy list  
"100 prisoners and a light bulb"
 
   A few years ago, I have encountered this problem, and ever since I haven't been able to find the most optimal solution.

This is the problem:

There are 100 prisoners in solitary cells. There's a central living room with one light bulb; this bulb is initially off. No prisoner can see the light bulb from his or her own cell. Everyday, the warden picks a prisoner equally at random, and that prisoner visits the living room. While there, the prisoner can toggle the bulb if he or she wishes. Also, the prisoner has the option of asserting that all 100 prisoners have been to the living room by now. If this assertion is false, all 100 prisoners are shot. However, if it is indeed true, all prisoners are set free and inducted into MENSA, since the world could always use more smart people. Thus, the assertion should only be made if the prisoner is 100% certain of its validity. The prisoners are allowed to get together one night in the courtyard, to discuss a plan. What plan should they agree on, so that eventually, someone will make a correct assertion?

I have seen this problem on othe forums, and here are some of the best solutions (to my opinion):

1) At the beginning, the prisoners select a leader. Whenever a person (with the exeption of the leader) comes into a room, he turns the lights on. If the lights are already on, he does nothing. When the leader goes into the room, he turns off the lights. When he will have turned off the lights 99 times, he is 100% sure that everyone has been in the room.

2)wait 3 years, and with a great probability say that everyone has been in the room.

Does anyone know The optimal solution???

I have taken this problem from the www.ocf.berkeley.edu site, but I believe that you can find it on many others.


  Alert | IP Printer-friendly page | Reply | Reply With Quote | Top

  Subject     Author     Message Date     ID  
100 prisoners and a light bulb iliaden Aug-14-05 TOP
   RE: 100 prisoners and a light bulb alexbadmin Aug-14-05 1
      RE: 100 prisoners and a light bulb mr_homm Aug-17-05 2
          RE: 100 prisoners and a light bulb alexbadmin Aug-17-05 3
              RE: 100 prisoners and a light bulb Sheridan Aug-18-05 4
              RE: 100 prisoners and a light bulb mr_homm Aug-18-05 5
                  RE: 100 prisoners and a light bulb alexbadmin Aug-18-05 6
                      RE: 100 prisoners and a light bulb mr_homm Aug-19-05 7
                      RE: 100 prisoners and a light bulb sfwc Aug-21-05 8
                          RE: 100 prisoners and a light bulb mr_homm Aug-29-05 9
                              RE: 100 prisoners and a light bulb mr_homm Aug-29-05 10
                                  RE: 100 prisoners and a light bulb sfwc Sep-21-05 12
          RE: 100 prisoners and a light bulb alexbadmin Nov-03-05 24
              RE: 100 prisoners and a light bulb mr_homm Nov-04-05 25
                  RE: 100 prisoners and a light bulb alexbadmin Nov-04-05 26
                      RE: 100 prisoners and a light bulb mr_homm Nov-05-05 27
                          RE: 100 prisoners and a light bulb alexbadmin Nov-08-05 28
      RE: 100 prisoners and a light bulb alexbadmin Sep-08-05 11
          RE: 100 prisoners and a light bulb Rod H. Sep-28-05 13
              RE: 100 prisoners and a light bulb ramsey2879 Sep-29-05 14
                  RE: 100 prisoners and a light bulb Rod H. Oct-03-05 18
              RE: 100 prisoners and a light bulb iliaden Sep-29-05 15
                  RE: 100 prisoners and a light bulb Ramsey2879 Sep-30-05 16
                      RE: 100 prisoners and a light bulb iliaden Sep-30-05 17
                  RE: 100 prisoners and a light bulb Rod H. Oct-04-05 19
                      RE: 100 prisoners and a light bulb iliaden Oct-16-05 20
                          RE: 100 prisoners and a light bulb ramsey2879 Oct-27-05 21
                              RE: 100 prisoners and a light bulb iliaden Oct-30-05 23
   RE: 100 prisoners and a light bulb Mendozas Oct-30-05 22
      RE: 100 prisoners and a light bulb Ghigginson Feb-04-07 29
      RE: 100 prisoners and a light bulb Ghigginson Feb-04-07 30
          RE: 100 prisoners and a light bulb The Dog Feb-05-07 31
   RE: 100 prisoners and a light bulb ryani Apr-23-07 32
   RE: 100 prisoners and a light bulb mmc May-31-07 33
   RE: 100 prisoners and a light bulb maryam Jul-28-07 34
   RE: 100 prisoners and a light bulb mpdlc Jul-31-07 35
   100 prisoners and a light bulb: trivial solution al_q Aug-02-07 36
   RE: 100 prisoners and a light bulb Arup Roy Sep-25-07 37
   RE: 100 prisoners and a light bulb spags Mar-28-08 38
      RE: 100 prisoners and a light bulb Kerry Oct-12-09 39
          RE: 100 prisoners and a light bulb alexbadmin Oct-14-09 40


Conferences | Forums | Topics | Previous Topic | Next Topic

You may be curious to have a look at the old CTK Exchange archive.
Please do not post there.

Copyright © 1996-2011 Alexander Bogomolny

Search:
Keywords:

Google
Web CTK