I don't mean to be rude, but you've practically accused me (and others) of not reading the links you posted to (which I did read!), and accused me of not understanding what you were talking about (which I didn't!) merely because I was being lazy. However, I happen to consider myself to have been very persistent and forgiving in this thread, because I felt that you weren't doing a good job explaining yourself, and I thought maybe you were on to something with your "everyone's a counter" theory, so I was very anxious to hear more.
Schrodinger's Dog said:
That's why I preceeded both posts with the new problem, if people didn't read it that's their problem surely?
Ok I don't get it. I DID read what you posted, AND what you linked to, multiple times. The problem listed at the beginning of this thread was:
Q: How can the prisoners tell, with certainty, that all 100 of them have visited the central living room with the light bulb.
The riddle: 100 prisoners are in solitary cells, unable to see, speak or communicate in any way from those solitary cells with each other. There's a central living room with one light bulb; the bulb is initially off. No prisoner can see the light bulb from his own cell. Everyday, the warden picks a prisoner at random, and that prisoner goes to the central living room. While there, the prisoner can toggle the bulb if he or she wishes. Also, the prisoner has the option of asserting the claim that all 100 prisoners have been to the living room. If this assertion is false (that is, some prisoners still haven't been to the living room), all 100 prisoners will be shot for their stupidity. However, if it is indeed true, all prisoners are set free. Thus, the assertion should only be made if the prisoner is 100% certain of its validity.
Before the random picking begins, the prisoners are allowed to get together to discuss a plan. So ---- what plan should they agree on, so that eventually, someone will make a correct assertion?
The problem that you posted later was a rewording of the above:
100 Prisoners and a Light Bulb
Some time ago, Ilia Denotkine has posted the following problem on the CTK Exchange
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?
He then added a background to his question:
I have seen this problem on the 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 exception 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?
Now, look at each question VERY CLOSELY:
From the first problem:
"what plan should they agree on, so that eventually, someone will make a correct assertion?"
From the second problem:
"What plan should they agree on, so that eventually, someone will make a correct assertion?"
The question is actually NOT about getting released at all! The question is about making a correct assertion. Plus, note the authors' use of the word "eventually", underscoring that yes, it may take a LONG time.
Now, admittedly, the second thing you posted asked ANOTHER question, which is "what is the optimal solution?", and posited (incorrectly) that "wait 3 years" was a solution, which it is NOT.
So, everyone involved in our discussion at the PF was answering "what is a solution?" and "what is the optimal solution?", and people were NOT answering "what is the best reasonable solution?", which is apparently what you thought everyone ought to be discussing. It wasn't until late in the discussion that I finally caught on that that's what you were really trying to get at, at which point I tried to offer you the distinction between what you were saying and what everyone else was saying.
Note that at the beginning, you said, in response to my analysis of waiting a fixed length of time:
Schrodinger's Dog said:
The chance has to be 100%, that's the point otherwise it's easy to solve. Now the only method I know that does this in an optimised and 100% situation is to have no counter, but everyone as a counter, the first person to get enough results to call the warden calls the warden, in the unlikely event that the counter is never chosen, here at least you will be 100% corrrect in your assumption not 99.9999996 but 100% as the question asks. This is the point.
Now, I was rather lost by your phrasing, but I verly clearly got the impression that you were saying "you can't be 100% certain if you wait for 5 years", which is totally true.
However, later, you said something totally contradictory:
Schrodinger's Dog said:
the method is in post 2, but instead of using 1 counter everyone is a counter so that the first person to get to 100 downs announces to the prison guards that they should go free, if however this takes longer than five years then they call the warden anyway and go free on the grounds of probability, this may not be exactly 100% either but I think given that choice I'd go for it or you can just say the 100 counters, or you can just say the length of time it takes all of them but 1 to die, either way it is a solution which is 100%.
Let me reiterate the important contradictory parts:
"this may not be exactly 100%"
"either way it is a solution which is 100%"
So, you were looking for a 100% accurate solution... but... you weren't looking for a 100% accurate solution? I was lost. But at least you finally made it clear to me that by "100%" I think you meant "99.9999999999999999999999999994%"
Schrodinger's Dog said:
The professor said I like these problems but their not right because of a, Anderton asked why?
Ok, you keep saying this, but that's not what I see when I read this. This guy (Alexander Bogomolny, who's a professor I guess?) answered with the following solution:
Alexander Bogomolny said:
The prisons select a fellow, say Alice, who will have a special responsibility. All other prisoners behave according to the same protocol: each turns the light off twice, i.e. they turn it off the first two times they find it on. They leave it untouched thereafter. Alice turns the light on if it was off and, additionally, counts the number of times she entered the room with the light off. When her count reaches 2n - 3 she may claim with certainty that all n prisoners have been to the room.
Then, Alexander was replied to by Stuart Andersen, stating:
Stuart Andersen said:
This would work of course, but is it optimal? For instance, this would also work, I think:
Alice counts the times she finds the light on, and ensures that it is always off when she leaves the room. Everyone else turns on the light the first time they find it off, and then never touches it again. This way, between visits of Alice, at most one prisoner will turn on the light, and no prisoner turns it on more than once. Therefore the number of times Alice finds the light on is no more than the number of different prisoners that have entered the room. Each prisoner knows he has been counted once he has turned the light on, since he is the only one who touched the switch since Alice last visited. When Alice counts to n-1, she knows everyone has visited the room.
So, Stuart is saying that Alexander's solution was CORRECT (and yes, it actually was a solution), but that it is not an OPTIMAL solution. Alexander's solution is clearly NOT an optimal solution because (as he proceeds to try and proove mathematically), Stuart's solution is faster.
However, Stuart continues in *playful jest* suggesting that they should just wait 5 years and probably get out much faster. Note that this is NOT a solution to the problem, and therefore, not an "optimal solution", because it is not a solution. It's also not "optimal" because "optimal" in this case is subjective.
Schrodinger's Dog said:
Because the problem was set so that it could only be answered in a realistic way.
Please re-read it again, because the problem is very clearly stipulating that the goal is NOT for the prisoners to be released, but instead to make a correct assertion that all 100 prisoners have been in the room. Further, it also does NOT suggest that you need an optimal solution, despite the fact that I agree it's an interesting question, and it's been addressed in this thread already (by pig as early as post #13) and also in Stuart Anderson's reply in the context you quoted.
Schrodinger's Dog said:
Essentially because, no one had read the original problems solution as layed out by the man who wrote it I was talking to myself
I have to say, I simply didn't understand a lot of what you were saying. It seems like you were doing a lot of thinking-while-typing, getting ahead of your words and communicating in tidbits and phrases that didn't make sense to anyone because you were assuming everyone understood all the tidbits. And it seemed like you didn't want to slow down for a minute and explain things all the way through. Further proof of that is in the fact that 14/15 of your posts in this thread were later edited by you.
If it seems like people aren't on the same page as you are, please, take a while to organize your thoughts, and then write them out completely.
Schrodinger's Dog said:
I wrongly obviously thought it might be a bit of fun to bring this to peoples attention,
Actually, I think it's quite a lot of fun to discuss things like this, but seriously, you've got to put the time into make sure people understand your ideas. Plus, you've also got to separate your ideas out. If you're talking about "solutions" versus "strategies", be sure to be clear about it. When you stop talking about one and start talking about the other, be sure to draw the distinction.
Schrodinger's Dog said:
it's not my fault if people don't understand what I mean because they are too lazy to read the links provided
As I stated, I DID read the links you provided as well as nearly the entire thread that was secondarily linked to on the "CTK Exchange". And I still didn't understand what you were saying, which I why I asked you three times to explain what you were talking about.
However, I will agree that in general people ARE lazy. So if you want to discuss things with them, especially in an online format, YOU'VE got to be the one to put in the time make sure you're clear and thorough.
DaveE