Our server costs ~$56 per month to run. Please consider donating or becoming a Patron to help keep the site running. Help us gain new members by following us on Twitter and liking our page on Facebook!
Current time: June 8, 2026, 8:53 pm

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
One Hundred Prisoners
#1
One Hundred Prisoners
OK, this isn't the standard 100 Prisoners problem that has become so YouTube famous that it obscures the solution to all other 100 Prisoner problems. There will be no boxes.

The Problem:

There are 100 Prisoners being condemned to prison for all eternity.

Everybody in this scenario behaves purely logically and flawlessly, including not dying unless told to by the rules.

Prior to being incarcerated, the Prisoners are allowed to strategize. They will have no direct communication once their sentence begins.

Once their sentence begins, one prisoner will be selected purely at random* each day. That prisoner will be taken to a room with a light and a switch. The light may be turned on or off, but may not be manipulated in any other manner**.

Once they are certain*** that every prisoner has been in the room at least once, they may ask to be released. If they're right then they'll be freed, but if they're wrong they'll be executed.



OK, that's it. I think that I have both a brute force and an optimized solution. The brute force approach works, but it takes geological time. The optimized strategy might be viable within a human lifespan, maybe faster. I was wondering if there were quicker approaches and if anybody with a math/computing background knew how to calculate the time for the strategy to succeed.

Brute Force Strategy:


Optimized Strategy:

Reply





Users browsing this thread: 1 Guest(s)