The Optimal Solution to an Impossible Problem

  Рет қаралды 2,553

Wrath of Math

Wrath of Math

Күн бұрын

Пікірлер: 46
@WrathofMath
@WrathofMath 18 сағат бұрын
Join Wrath of Math to get exclusive videos, music, and more: kzbin.info/door/yEKvaxi8mt9FMc62MHcliwjoin More math chats: kzbin.info/aero/PLztBpqftvzxXQDmPmSOwXSU9vOHgty1RO For anyone wishing I'd have explained more why a permutation must be made up of cycles, consider the alternative. If 1 maps to 1 then that is a trivial 'cycle'. Otherwise, 1 maps to something else, say a. Then a maps to b, then b to c, and so on. The claim is that eventually some number in this sequence, say x, will map back to 1, thus forming a cycle. There is hardly any other possibility. Could it go on forever without looping back? No, because we have only finitely many numbers (1-100 in our case). Could it loop back to some other number in the sequence, like b, c, or d? Rather than 1? No, because - for examples - b maps to c, so x cannot. Also, a maps to b, so x cannot map to b. But nothing (as of yet) is mapped to 1, and so indeed x may map to 1. This is why the cycles are unavoidable.
@godfreypigott
@godfreypigott 10 сағат бұрын
That formula works only if L > 50. It doesn't affect the solution, but you made it sound as though it works for ALL values of L.
@WrathofMath
@WrathofMath 7 сағат бұрын
@@godfreypigott What formula?
@godfreypigott
@godfreypigott 3 сағат бұрын
@@WrathofMath What do you mean "what formula"? There was only one formula in your video that contained an L.
@samgordon9756
@samgordon9756 16 сағат бұрын
You are a prisoner. The challenge before you is convincing 99 other prisoners from the population of regular prisoners to listen to you. What is the probability of having 99 other prisoners who can understand and believe this proof.
@MATOMTU
@MATOMTU 9 сағат бұрын
Probably less than just picking at random
@WrathofMath
@WrathofMath 8 сағат бұрын
Depends on your relationship with the prisoners, but I would think, facing such a ludicrous situation, the crowd may be likely to follow the suggestion a well-spoken leader who sounds like he knows what he's talking about. So perhaps it would come down to your presentation.
@davidhall7275
@davidhall7275 4 сағат бұрын
Getting 99 misfits to follow your instructions? Have you ever taught children?
@mal2ksc
@mal2ksc 32 минут бұрын
@@WrathofMath Also you could easily prove picking randomly _won't work,_ and that you have a better idea -- and if nobody else comes up with a better plan, you're probably good. You don't have to prove your idea is optimal, just better than anyone else in that group can do.
@GameJam230
@GameJam230 17 сағат бұрын
A smart (and evil) warden would just place the numbers in the drawers so it forms one massive circular chain. Every prisoner would get halfway around and never find their number, and the warden would sit and watch with a bag of popcorn as they struggle to claw their way to victory in a game rigged against them from the start.
@dashyz3293
@dashyz3293 16 сағат бұрын
While true, the premise indicates a random scramble.
@GameJam230
@GameJam230 16 сағат бұрын
@dashyz3293 Yeah, a smart and evil warden WOULD want you to think that 😂
@mal2ksc
@mal2ksc 7 минут бұрын
No, that game would end quickly. First person fails, game over. You want a 51-cycle to guarantee failure, but you also want to send in the 49 prisoners _not_ in the 51-cycle first to give the prisoners false hope. If the game isn't rigged, then having the first 49 prisoners exit the room alive would be an extremely good sign. Instead you set them up with false hope only to have it all come crashing down with the first prisoner you pick from the 51-cycle.
@GameJam230
@GameJam230 2 минут бұрын
@mal2ksc That assumes you end the game on the first failure, but it could instead be done so that none of them know the result of the game until AFTER they’ve all gone through, so they all have hope until they can’t find their number, then they’re sent into the next room where it ends all at once
@spitsmuis4772
@spitsmuis4772 11 сағат бұрын
20:20 I would have added that ln(100)-ln(50)=ln(2), making the solution more or less independent of the amount of prisoners.
@WrathofMath
@WrathofMath 8 сағат бұрын
A great comment! I would have addressed that if I intended to discuss the problem as the number of prisoners increases, but I decided to leave it as it was.
@qsquared8833
@qsquared8833 Сағат бұрын
1) Prisoner checks their number, if correct number, done 2) If wrong number open number of next prisoner,. 3) if right number swaps their number from their spot to the next prisoner's spot and takes thier number finishing 4) If wrong #, flips numbers of their number and next prisoner. 5) opens the number they just moved to their own number, and swaps the correct number into it's space and the resulting number to their own, then checking their own again to see if matched and they may end.
@IndyGibb
@IndyGibb 17 сағат бұрын
Alas, Kevin from VSauce already taught me how to win.
@vampire_catgirl
@vampire_catgirl 16 сағат бұрын
Alas, Derek from Veritasium already taught me how to win.
@psiphiorg
@psiphiorg 15 сағат бұрын
@@vampire_catgirl Every math KZbinr eventually gets to this riddle. What makes it fun is each one's unique presentation of the riddle and explanation of the solution.
@vampire_catgirl
@vampire_catgirl 10 сағат бұрын
@@psiphiorg Very true
@WrathofMath
@WrathofMath 8 сағат бұрын
Yeah, I saw that some others had made videos on this problem; I decided not to watch them to not influence my presentation. Though perhaps I saw them several years ago or whenever they were uploaded. Regardless, hopefully my video can introduce this fun problem to some new people!
@punditgi
@punditgi 17 сағат бұрын
Fascinating! Does the solution depend on a fixed permutation that does not change for any of the prisoners?
@lincolnrimmer8615
@lincolnrimmer8615 16 сағат бұрын
I can't prove it but I think it would not work nearly as well. The 30% is based on the largest cycle being less than it equal to 50, and if the permutation changes each time you would 'reroll' this chance every time. If the individual probabilities were made independent by each prisoner by rerolling the permutation, then (30/100)^50 is much less than (50/100)^50.
@platinummyrr
@platinummyrr 13 сағат бұрын
Yes. The strategy used here ties the prisoner success together. The best an individual can do is 50%, since they dont know where their number is, and it is randomly assigned. But by using this strategy, either they all fail or all succeed. This avoids the compounding effect of each prisoner trying randomly.
@eirh
@eirh 12 сағат бұрын
Yes, if you change the permutation for each prisoner this no longer works. The strategy in the video relies on there being a pretty good chance that a random permutation has the "largest cycle size
@WrathofMath
@WrathofMath 8 сағат бұрын
Yup, good question and good replies!
@davidhall7275
@davidhall7275 4 сағат бұрын
So a binomial is (100 L) . I figured that out when I was 12 or 13 but I didn't know what it was called. I was looking for ways to win at cards. Your explanation of this interesting problem is really good. Brings back memories.
@rogerkearns8094
@rogerkearns8094 12 сағат бұрын
The key hiding in a chess board is a harder prisoner problem.
@mal2ksc
@mal2ksc 20 минут бұрын
I always wonder what you're supposed to do in the following situation: the prisoners aren't numbered 1 to 100 but rather a number that was handed out by the order in which they arrived -- and some people have left the prison (by serving their term, or by dying) so there are numbers missing, and prisoner #1 is long gone. I suppose everyone could put their heads together and make their own list that ties every prisoner number to a number from 1 to 100, and when they open a drawer and find #83627 they have to look that up on their list to translate it back to a number from 1-100 to continue the cycle (unless they pick their own number of course). This would be mathematically equivalent, but in reality it would open up a whole lot more opportunities to screw up. Of course if I were the evil prison warden, I'd leave the rules exploitable... but I'd cheat and make sure the "random" arrangement in the drawers always contains a 51-cycle, and send in prisoners _not_ in the 51-cycle first, so that they can get almost halfway into a run before they fail. It's so much spicier when they think it's going to work, right up until it doesn't.
@zinc_magnesium
@zinc_magnesium 7 сағат бұрын
Me pulling out my abstract algebra textbook trying to explain cycle notation to my cell mate
@WrathofMath
@WrathofMath 6 сағат бұрын
😂
@georgecarr9561
@georgecarr9561 15 сағат бұрын
But, even if there was an existing cycle of more than 50, would they really be guaranteed dead? Couldn't the prisoners, at vanishingly low odds mind you, happen to choose close to their number in the cycle? He'll technically they could each walk out and choose 1 drawer only right?
@JavedAlam-ce4mu
@JavedAlam-ce4mu 13 сағат бұрын
No, this isn't possible, because every prisoner chooses their own room number as the starting draw, there are no odds involved. This is because due to the fact that they each choose their room number as the first draw, each prisoner therefore has a unique sequence of draws that they will open, and this means that by definition there will always be one prisoner who will open the full cycle length of draws before finding their number. There aren't any odds involved, this is guaranteed to happen.
@WrathofMath
@WrathofMath 8 сағат бұрын
No, because there is no 'happen to choose' in the strategy. Prisoner A will open drawer A, and by definition the cycle will not be complete until he finds his number, and thus he will have to traverse the entire cycle, as will every prisoner along the cycle. Good question!
@Amazing-Charles
@Amazing-Charles 9 сағат бұрын
Yo veritasium made a video about this lol
@technicroblox
@technicroblox 17 сағат бұрын
cool
@fuseblower8128
@fuseblower8128 10 сағат бұрын
I didn't hear the term "bijection" even once. I'm so disappointed! 😉
@WrathofMath
@WrathofMath 8 сағат бұрын
I tried to dance my way around the jargon 😂
@iblameomdeep
@iblameomdeep 12 сағат бұрын
Veritasium already taught this
@WrathofMath
@WrathofMath 8 сағат бұрын
oh, i guess nobody should ever speak of it again then
@mementomori7160
@mementomori7160 4 сағат бұрын
@@WrathofMath Tbh, my first thought was the same, but wtf, if someone big made a vid about something then suddenly no one else can? You did it your own way, and that's what matters. You did a good job!
@lincolnrimmer8615
@lincolnrimmer8615 16 сағат бұрын
10:54 "The prisoners would definitely die." This is wrong, the stated problem has them guess 50 times, so any competent prisoners would open every drawer and win. I get that it's meant to be half the number of boxes, but it was never expressly stated. The whole point of mathematics as football logic is not too leave ambiguity like this. I've seen this same oversight in every video on the topic that I've watched and it always annoys me.
@lincolnrimmer8615
@lincolnrimmer8615 16 сағат бұрын
Let's see what sort of dislike ratio I get on this ;)
@godfreypigott
@godfreypigott 10 сағат бұрын
@@lincolnrimmer8615 When was the last time you saw a dislike count on a comment?
@WrathofMath
@WrathofMath 8 сағат бұрын
I state explicitly, when beginning the discussion on permutations of 1-8, that the prisoners may open 4 drawers, half the total. This point of 'half' the total is repeated several other times in the video. 6:06
The Puzzling Gold Chain Problem
14:55
Wrath of Math
Рет қаралды 4 М.
Euler's Proof of the Infinitude of Primes
17:56
Wrath of Math
Рет қаралды 8 М.
How to Fight a Gross Man 😡
00:19
Alan Chikin Chow
Рет қаралды 20 МЛН
Long Nails 💅🏻 #shorts
00:50
Mr DegrEE
Рет қаралды 19 МЛН
Players push long pins through a cardboard box attempting to pop the balloon!
00:31
Accompanying my daughter to practice dance is so annoying #funny #cute#comedy
00:17
Funny daughter's daily life
Рет қаралды 25 МЛН
This Card Trick Shouldn't Be Possible
25:40
Wrath of Math
Рет қаралды 11 М.
This pattern breaks, but for a good reason | Moser's circle problem
16:13
The Technical Side of My Redstone Computer
1:25:57
fastsquare46
Рет қаралды 7 М.
Why 4d geometry makes me sad
29:42
3Blue1Brown
Рет қаралды 996 М.
The Oldest Unsolved Problem in Math
31:33
Veritasium
Рет қаралды 12 МЛН
The Unlikeliness of Numbers Sharing Factors
18:48
Wrath of Math
Рет қаралды 21 М.
You Will Never Escape These Sequences
17:49
Wrath of Math
Рет қаралды 7 М.
The Strange Physics Principle That Shapes Reality
32:44
Veritasium
Рет қаралды 7 МЛН
How to Expand x+1 Raised to an Irrational Power
11:10
Zundamon's Theorem
Рет қаралды 137 М.
How to Fight a Gross Man 😡
00:19
Alan Chikin Chow
Рет қаралды 20 МЛН