Posts: 22,381
   
Threads: 6,364
    
Likes Received: 4,126 in 3,233 posts
Likes Given: 487
(10-07-2022, 07:14 PM)WhatDoYouThink? Wrote: could be this modified cycle following algorithm:
if your number is x, open box(x), if box(x) = x, then you stop and stay alive. else open box(box(x)), and repeat the cycle.
Very impressive if you thought of this independently.
I did not come close...because it is not apparent it will give a better probability of survival on first look
I, being poor, have only my dreams; I have spread my dreams under your feet; Tread softly because you tread on my dreams.
>
(This post was last modified: 10-07-2022, 07:21 PM by
sgbuffett.)
Posts: 8,063
   
Threads: 17
    
Likes Received: 1,565 in 1,317 posts
Likes Given: 525
(10-07-2022, 07:17 PM)sgbuffett Wrote: Very impressive if you thought of this independently.
I did not come close...because it is not apparent it will give a better probability of survival on first look
aiya quite common when doing memory search.
if by random search, you hv to keep track of those numbers searched, so as not to waste your search time and reduce yr chances of survival. if the database is huge, then the overhead is substantial.
using cycle following the overhead is reduced substantially, but still hv to remember the starting number of each cycle.
by modifying the cycle following method, you only need to do 1 cycle, and there's no overhead at all
Posts: 12,967
   
Threads: 1,448
    
Likes Received: 3,217 in 2,414 posts
Likes Given: 9,326
Already said Monty Hall puzzle
Is this so difficult to digest?
Posts: 22,381
   
Threads: 6,364
    
Likes Received: 4,126 in 3,233 posts
Likes Given: 487
(11-07-2022, 12:47 AM)Sentinel Wrote: Already said Monty Hall puzzle
Is this so difficult to digest?
This is not the Monty Hall puzzle lah. In Monty hall contestant is to choose one of 3 doors behind which is a prize behind one door.
The contestant choose one door then the host opens one door that is empty and ask him if he wants to switch. The correct answer is always switch.
I could solve Monty Hall quite easily when it came out either using logic or conditional probabilities.
This prisoner puzzle I could not solve. The answer is unexpected.
I, being poor, have only my dreams; I have spread my dreams under your feet; Tread softly because you tread on my dreams.
>
Posts: 17,797
   
Threads: 198
    
Likes Received: 4,479 in 4,014 posts
Likes Given: 6,134
The answer is to strip naked and get bukkake by the guards to survive
Wherever you go, no matter what the weather, always bring your own sunshine
>
Posts: 22,381
   
Threads: 6,364
    
Likes Received: 4,126 in 3,233 posts
Likes Given: 487
Here is a full explanation of the puzzle and solution.
A research paper by a computer scientist with the algorithm was published a few yrs ago. The solution can be extended to infinite number of prisoners. 10M prisoners will also have 30% chance to survive using the strategy.
Watch and enjoy.
I, being poor, have only my dreams; I have spread my dreams under your feet; Tread softly because you tread on my dreams.
>
Posts: 12,967
   
Threads: 1,448
    
Likes Received: 3,217 in 2,414 posts
Likes Given: 9,326
(11-07-2022, 07:10 AM)sgbuffett Wrote: This is not the Monty Hall puzzle lah. In Monty hall contestant is to choose one of 3 doors behind which is a prize behind one door.
The contestant choose one door then the host opens one door that is empty and ask him if he wants to switch. The correct answer is always switch.
I could solve Monty Hall quite easily when it came out either using logic or conditional probabilities.
This prisoner puzzle I could not solve. The answer is unexpected.
Same lah
Both are counter-intuitive but the mathematical logic is the same
The probability is altered by info obtained inherent in the situation
The Monty Hall puzzle, the opening of one door to reveal what is inside changes the probability
The Prisoners puzzle, linking the prisoner number to the box number form a chain that is finite by the number of boxes, thus changing the probability
Posts: 8,063
   
Threads: 17
    
Likes Received: 1,565 in 1,317 posts
Likes Given: 525
if you start with a random number, you may hv to find your own number in multiple loops.
but if you start with yr own number, you'll definitely find yr own number in a single loop
Posts: 12,967
   
Threads: 1,448
    
Likes Received: 3,217 in 2,414 posts
Likes Given: 9,326
If I can solve this puzzle with a strategy that guarantees the 100 prisoners will live every time, then I've reached ascension completely
Posts: 12,967
   
Threads: 1,448
    
Likes Received: 3,217 in 2,414 posts
Likes Given: 9,326
The fact of the matter is that God does not play dice, so probability is a manifest of lower dimensions of existence
At a much higher plane, nothing happens by chance
Case closed
Posts: 475
   
Threads: 4
    
Likes Received: 215 in 160 posts
Likes Given: 517
(10-07-2022, 06:48 PM)sgbuffett Wrote: No you have to leave the room and boxes exactly the same as when you enter the room..all boxes have to be closed after you look for your number.
just place the correct number to the correct box , then the next should do the same. the Problem is what if the first one cannot
find his own correct number. then game over for the rest of 99. likewise for the subsequents
Posts: 11,536
   
Threads: 785
    
Likes Received: 3,607 in 2,956 posts
Likes Given: 486
(11-07-2022, 09:49 AM)Sentinel Wrote: The fact of the matter is that God does not play dice, so probability is a manifest of lower dimensions of existence
At a much higher plane, nothing happens by chance
Case closed
I don't believe in god creating this world but yes, in Buddhism it's the same - nothing happens by chance.
Anyway, this is just a fun riddle, no need to involve the 'higher plane'
Posts: 4,842
   
Threads: 113
    
Likes Received: 1,648 in 1,267 posts
Likes Given: 1,203
In the end, sadly the prisoners only have a 30% of surviving using the loop strategy.
70% probability die.
Tang See?
Posts: 8,063
   
Threads: 17
    
Likes Received: 1,565 in 1,317 posts
Likes Given: 525
for an individual prisoner, his chance of survival is 50% no matter what strategy he uses.
for the entire group to survive together, the chances are almost zero. if they follow the cycle following method, the survival rate increases to 30%
Posts: 8,063
   
Threads: 17
    
Likes Received: 1,565 in 1,317 posts
Likes Given: 525
actually the maths behind this puzzle is rather straightforward. let me try to work it out.
as long as a cycle length is > 50, the whole group will die. so the probability for the entire group to die is simply:
1/51 + 1/52 + .... 1/100
= H100 - H50
use a scientific calculator to find the harmonic numbers:
= 5.18738 - 4.49921
= 0.68817
so the group survival rate is 1 - 0.68817 = 31% QED
Posts: 4,842
   
Threads: 113
    
Likes Received: 1,648 in 1,267 posts
Likes Given: 1,203
(16-07-2022, 11:35 PM)WhatDoYouThink? Wrote: actually the maths behind this puzzle is rather straightforward. let me try to work it out.
as long as a cycle length is > 50, the whole group will die. so the probability for the entire group to die is simply:
1/51 + 1/52 + .... 1/100
= H100 - H50
use a scientific calculator to find the harmonic numbers:
= 5.18738 - 4.49921
= 0.68817
so the group survival rate is 1 - 0.68817 = 31% QED
Correct. About 30% survival rate. But if they don't use this strategy, it is much much lower.
It is just a silly problem thst won't happen in real life anyway.
Users browsing this thread: 2 Guest(s)