18 mathematicians break my secret santa method

  Рет қаралды 283,661

Stand-up Maths

Stand-up Maths

Күн бұрын

Пікірлер: 1 100
@standupmaths
@standupmaths 18 күн бұрын
Thanks again to Jane Street! jane-st.co/SUM-internships Yes, fatal flaws in my new system have already been found. Comment with more flaws or fixes below!
@traywor
@traywor 18 күн бұрын
If everybody or no one shunts, than D can detect that and choose who to buy for. I think. I am not a hundred percent sure.
@traywor
@traywor 18 күн бұрын
Actually doesn't they always know the number of shunts? They could theoretically choose anyway, because they know the order of people who added their number, and the difference between the shunts reveals who is buying for who, since your own number is an anchor. The number of shunt between the difference of your two numbers. EDIT: And this is not only the case for d but for anyone. It is probably detectable if they choose to swap with someone to far away, as they know how many shunts can happen and see that the distance would have been impossible.
@MrAlexmaccy
@MrAlexmaccy 18 күн бұрын
@@traywor Since you can see the number of shunts and then you see the names associated with all of the receivers you should also be able to see all of the buying relationships. It appers to me that it is not anonomised at all.
@HunterJE
@HunterJE 18 күн бұрын
Clever trick using "pi factorial" to make the mug technically correct
@scottytremaineplays9461
@scottytremaineplays9461 18 күн бұрын
@@HunterJEmy thoughts exactly!
@SteveMould
@SteveMould 18 күн бұрын
Several people pointing out that tau is in fact less than pi factorial. Now I hate the mug even more, thanks.
@robertaries2974
@robertaries2974 18 күн бұрын
Sounds like another pi win 🎉
@lank_asif
@lank_asif 18 күн бұрын
Lololol! @SteveMould I hope you see this. Sending big festive hugs from South Africa. You and @standupmaths are such legends and reputable role models. Thanks for your good vibes!!
@scottytremaineplays9461
@scottytremaineplays9461 18 күн бұрын
This mug must appear in your next video :)
@dfw-k6z
@dfw-k6z 18 күн бұрын
I hope Matt sends you a second, less snarky gift. But the mug is right though :)
@tom7
@tom7 18 күн бұрын
@@SteveMould it’s beautiful!
@AndrewTaylorPhD
@AndrewTaylorPhD 18 күн бұрын
Nobody ever goes for my "Stochastic Santa" system where you just buy a present for someone at random and trust that everyone will get about the right number of presents in the long run
@trainzelda1428
@trainzelda1428 18 күн бұрын
I mean I guess it is true that everyone will get one present on average
@Numbabu
@Numbabu 18 күн бұрын
But what if I accidentally get myself a present! I can’t stand the one in a billion chance 😔
@solsystem1342
@solsystem1342 18 күн бұрын
​@@Numbabu It's very vulnerable to bad actors and people picking their favorite person to buy a gift for
@HildeTheOkayish
@HildeTheOkayish 18 күн бұрын
​@@solsystem1342i think that may actually work both ways. The "favourite" in the group getting more presents but also the "im worried they will be forgotten about" getting more presents. Meaning the "normal" friends (for lack of a better word) have the biggest chance to recieve nothing. Or that would be my guess :p i wonder if there have been studies done on this.
@AKuTepion
@AKuTepion 18 күн бұрын
Works for me, I wouldn't buy any present for anyone. But I don't have to be anonymous to do that, I'm very public about hating gift giving.
@vigilantcosmicpenguin8721
@vigilantcosmicpenguin8721 16 күн бұрын
As a computer scientist, I think this is a fantastic representation of how vulnerabilities in a system can be exploited, even when the designer plans ahead. As a computer scientist, I also think this is a great example of how mathematicians inexplicably focus on finding an optimal solution to a problem instead of just using a computer to automate it like a normal person.
@lucarr1041
@lucarr1041 15 күн бұрын
As a security nerd in particular, I also love how mathematicians toying around with ideas like this can then become part of the protocol that later automates the entire process. I don't know why n mutually-distrusting computers would ever need to define a random directed cycle between themselves with zero knowledge beyond their own node, but it's cool to see the maths nerds trying to figure it out.
@goodfortunetoyou
@goodfortunetoyou 15 күн бұрын
​@@lucarr1041 I have an application: Semi-anonymous Content recommendation algorithm/spam prevention in a distributed youtube clone.
@potato4dawin1
@potato4dawin1 14 күн бұрын
mathematicians are just trying to pre-emptively find optimizations to computer problems nobody has had yet.
@shanedeiley6671
@shanedeiley6671 13 күн бұрын
Is there a way to have a central server that performs these actions but isnt vulnerable to being hacked and having the state observed? It feels like that would devolve to this same problem
@somnvm37
@somnvm37 11 күн бұрын
well, I guess in this case they are looking for a solution that doesn't require a special authority if we make a program use it, then that program becomes that separate person.
@hughjack5066
@hughjack5066 18 күн бұрын
Everyone: *Finding some elaboratly stupid ways of generating random numbers* Brady: *Looks up random number generator*
@ThePlacehole
@ThePlacehole 18 күн бұрын
The only safe option.
@20yearsofsnowfalling
@20yearsofsnowfalling 18 күн бұрын
he took the cgp grey approach
@Toleeka
@Toleeka 18 күн бұрын
pseudo random, i giggled
@DarrylWPerry1789
@DarrylWPerry1789 18 күн бұрын
mildly dissapointed someone didn't use lava lamps!
@LeonardGreenpaw
@LeonardGreenpaw 18 күн бұрын
I'd just roll some d10
@MedlifeCrisis
@MedlifeCrisis 18 күн бұрын
I felt worried the gift I bought wouldn’t compare to some of the others but seeing that someone bought *a piece of cellophane* makes me feel a whole lot better 😂
@felixdawson8497
@felixdawson8497 18 күн бұрын
You bought the cellophane didn’t you … very clever
@therealelement75
@therealelement75 18 күн бұрын
OK what
@LeoStaley
@LeoStaley 18 күн бұрын
Hey why were you included in this? You're a doctor, not a math guy! I'm pretty sure you've never even said a number out loud.
@bl4cksp1d3r
@bl4cksp1d3r 18 күн бұрын
​@@LeoStaley medical statistics
@AckerQ.
@AckerQ. 18 күн бұрын
@@LeoStaley, don’t make him pronounce your demise.
@tom7
@tom7 18 күн бұрын
As I told Matt 4 minutes before he posted the video, I think the new version proposed around <a href="#" class="seekto" data-time="1380">23:00</a> is quite flawed. The algorithm always produces a cyclic permutation where player Xn is giving to player X(n + m), with 0 < m < num_players. That's good, but since we don't shuffle after that and the ordered list is eventually public, everyone can figure out what m is: Just computing the difference between your own position in the list and your own recipient. That means you can figure out the entire graph!
@fletchercobb4398
@fletchercobb4398 18 күн бұрын
Oh, absolutely!
@TheSephiCloud
@TheSephiCloud 18 күн бұрын
You could probably fix this by having D shuffle after replacing their number at the end of first cycle and A shuffling at the start of the second cycle. This however doesn't fix the exploit of taking yourself out of the game.
@standupmaths
@standupmaths 18 күн бұрын
For the record, I saw Tom7’s email five seconds after I set the video live. This is absolutely correct. We’d need to put shuffles back in somewhere before the names round, but this will allow the same shenanigans as the first system again. This new idea might be a bust. We might need to go back a version and use public-keys instead of names.
@dungeonrobot
@dungeonrobot 18 күн бұрын
@@standupmathsI knew this problem was screaming cryptography
@irgyn
@irgyn 18 күн бұрын
couldn't you simply shuffle the rows as you put in your name? that way, the list doesn't directly correlate to the cycle you're building anymore, but you're not changing anything about the assignments
@SchutzmarkeGMBH
@SchutzmarkeGMBH 16 күн бұрын
The most impressive thing in all of this is that you managed to schedule a call with 18 maths youtubers and everyone had time
@mstreich
@mstreich 13 күн бұрын
Let’s get a video about THAT algorithm!
@maxine_q
@maxine_q 4 күн бұрын
Especially when you factor in time zones.
@geofftech2
@geofftech2 18 күн бұрын
Wait, does this make me a Maths KZbinr now? 😂 thanks Matt, thanks everyone, delighted to have taken part. Merry Christmas all 😊
@robertaries2974
@robertaries2974 18 күн бұрын
Yep, your videos definitely have enough interesting stats
@DaC10101
@DaC10101 18 күн бұрын
A maths KZbinr in Training
@rodcampbell8231
@rodcampbell8231 18 күн бұрын
To be honest Geoff when I saw you there I thought the same. You DID help Matt with a parkrun related stopwatch Bingo maths video that time though so I guess that counts doesn't it? (Annoyingly I've been stuck at 59/60 for ages on that)
@OntarioTrafficMan
@OntarioTrafficMan 18 күн бұрын
Your method of generating random numbers is not random because the probability of each number decreases. Train numbers are given sequentially per train class so every class has a 001 but hardly any class would ever have 999
@unic0de-yvr
@unic0de-yvr 18 күн бұрын
American here: It's actually pronounced "Matthew-tuber."
@ryanokane1312
@ryanokane1312 18 күн бұрын
<a href="#" class="seekto" data-time="938">15:38</a> Everybody finding random numbers in interesting ways, and Brady just using a random integer generator gave me a good chuckle
@seejay_through_life
@seejay_through_life 18 күн бұрын
a good chuckle? lol in my case it was an entire cackle
@Mngalahad
@Mngalahad 18 күн бұрын
Wished there was a clip of a guy on a green screen just going "eeeeeh... 2... 7... 1"
@redyau_
@redyau_ 16 күн бұрын
You wouldn't have thought he'd be the odd one out
@MPSpecial
@MPSpecial 18 күн бұрын
<a href="#" class="seekto" data-time="1888">31:28</a> the face of Matt Parker appearing on screen as soon as it's revealed he bought Steve's gift is comedy gold
@rmvdhaak
@rmvdhaak 18 күн бұрын
What are you talking about ?
@RobinSyl
@RobinSyl 18 күн бұрын
@@rmvdhaak The end card subscribe button
@emareaf
@emareaf 18 күн бұрын
@@rmvdhaak It might not show up for you because it's not part of the video itself but youtube put a link to Matt's channel (with his face as the icon) right on top of the video at that moment for me too.
@ace.of.space.
@ace.of.space. 12 күн бұрын
+
@sebastianarmstrong5726
@sebastianarmstrong5726 18 күн бұрын
matt completely ruining it by sharing the tracking info is very funny after all of that effort lol
@HanabiraKage
@HanabiraKage 18 күн бұрын
Might have been intentional. If he's going to troll someone by pushing their buttons, he's going to want them to know he's the one who did it.
@robertellis6853
@robertellis6853 18 күн бұрын
Given the sentiment on the mug, there was no way Steve wouldn't know, lol
@KengCo7
@KengCo7 18 күн бұрын
Would you not assume it was someone else pretending to be Matt as an extra level of Mystery? That's what I thought.
@NihlusKryik
@NihlusKryik 18 күн бұрын
It’s a Paker Santa
@geekjokes8458
@geekjokes8458 18 күн бұрын
true... but like, arent you supposed to reveal yourself to the person _when_ you give the gift? naturally you dont want to reveal it beforehand, and maybe it's a cultural difference, but ive always had to reveal it to everyone in fact when giving the gift
@abioticstew7375
@abioticstew7375 6 күн бұрын
<a href="#" class="seekto" data-time="864">14:24</a> “it’s your time you’re wasting. Nobody leaves until it works” i love when matts teacher voice comes through
@ShinySwalot
@ShinySwalot 18 күн бұрын
<a href="#" class="seekto" data-time="563">9:23</a> the amount of people I recognize from the Extended Parker Universe is quite staggering tbh
@mws16sparks
@mws16sparks 18 күн бұрын
How many Parker squares are in the Parker universe?
@OntarioTrafficMan
@OntarioTrafficMan 18 күн бұрын
What is the mass of the people you recognize?
@I_Love_Learning
@I_Love_Learning 18 күн бұрын
Seeing Tom7 there threw me for a bit of a loop!
@Ouvii
@Ouvii 17 күн бұрын
And many of them are more successful KZbinrs than Matt.
@AntonoirJacques
@AntonoirJacques 17 күн бұрын
Weirdly the ones I recognise the most are the ones that aren't Mathematicians...
@paulthompson382
@paulthompson382 18 күн бұрын
The unboxing is why there should always be a price guide because I imagine cellophane and a fairly large lego set cost very different amounts 😅
@SparksMaths
@SparksMaths 18 күн бұрын
😐
@aikumaDK
@aikumaDK 18 күн бұрын
The lego set is ~$140 in my area. Cellophane on Amazon is under 10 cents per square feet, for 100 feet rolls.
@its_w4yne
@its_w4yne 18 күн бұрын
tbf considering the money they're making, it surely makes no difference and a fun gift might be better than an expensive one...
@bee_irl
@bee_irl 17 күн бұрын
@its_w4yne bold assumption about their income
@its_w4yne
@its_w4yne 17 күн бұрын
@@bee_irl I know what people with way less clicks make and I'm pretty sure it's easy to find some data about that. and I'm pretty sure they all monetize their videos since there are ads *and* there even are sponsors. so that assumption isn't that bold.
@fieora
@fieora 18 күн бұрын
I'm just shocked we didn't get any crappy python code to test this
@hancocki
@hancocki 18 күн бұрын
Or a spreadsheet!
@renecura
@renecura 16 күн бұрын
If they use programming, then this is a short instead of a half hour overthinker video
@thenamen935
@thenamen935 16 күн бұрын
Well the code would follow all the algorithms and thus always produce a fully functioning array. However the struggle with the problem is not how the algorithm could be wrong but rather how someone could deter from the algorithm without getting noticed or someone finding any informations about who could give to whom.
@ioannisloukas4131
@ioannisloukas4131 18 күн бұрын
I really like that you showed the process of explaining to everybody the system and almost none of them understood it the first time. When you don´t see the behind the scene stuff you think that all mathematicians just get everything math related first try. Which obviously is not true
@originellerNickname
@originellerNickname 17 күн бұрын
There is this rule in (secure) software engineering that I always held in high regards: "Don't roll your own crypto". This video perfectly illustrates why :)
@Shotgunspixie
@Shotgunspixie 8 күн бұрын
Insecure software engineering involves more questioning your own self-worth as a programmer.
@addison1024
@addison1024 Күн бұрын
​@@Shotgunspixieso... Software engineering?
@pinkraven4402
@pinkraven4402 16 күн бұрын
Santa is a quantum entity. Nobody has ever observed him so he's able to give presents to all houses simultaneously
@TheJamesM
@TheJamesM 18 күн бұрын
So thrilled to see Tom7 in this. His incredibly infrequent uploads are such a highlight.
@johnchessant3012
@johnchessant3012 18 күн бұрын
<a href="#" class="seekto" data-time="1897">31:37</a> It's factually accurate! τ is less than π factorial
@SteveMould
@SteveMould 18 күн бұрын
I grudgingly accept this logic.
@landsgevaer
@landsgevaer 18 күн бұрын
Is factorial defined for non-integers? It isn't quite Gamma...
@weewolfg4231
@weewolfg4231 18 күн бұрын
@@landsgevaer not exactly, but there is i believe a function/algorithm that mimics the behavior of the factorial function that still works for non integer numbers
@jmr5125
@jmr5125 18 күн бұрын
This gets into the ticky-tacky question of "What is the definition of factorial?" If you define it as "n! = n*(n-1)!" plus "0!=1" then no. However, if you define it as "A function that meets the above definition for all natural numbers" then maybe yes. I think we have to defer to calculators on this -- if you enter 1.25 and press the factorial button, it produces a number as a result, not an error. Thus, the Gamma function is the *true* definition of the factorial operator and the natural number definition is a "that's neat" type of thing. I can see people arguing the converse, though. After all, factorial existed long before the gamma function was discovered, so if you go back far enough then factorial was only defined on the natural numbers. Plus the gamma function is its own thing with its own name -- it seems suspect that there would be two _different_ operators defined for a single operator. The later argument can be countered by pointing out that gamma _isn't_ equal to factorial, but "(n-1)! = gamma(n)" is close enough to say "The gamma function *is* the factorial function." Too deep of a question for me, I'm afraid. 😂
@columbus8myhw
@columbus8myhw 18 күн бұрын
@@landsgevaerWhile there are in principle infinitely many ways to extend the factorial function to noninteger values, if you add in a few extra conditions, the only possible extension is x!=Gamma(x+1). The conditions I'm thinking of are - x!/(x-1)!=x, and - the function f(x)=(x+c)!/x! is an increasing function for fixed c, for positive c and sufficiently large x It's a matter of opinion if you think these are reasonable restrictions. (If I've done my job right, the second condition should be equivalent to "log convexity", which states that log(x!) is a convex function for sufficiently large x)
@Rubrickety
@Rubrickety 18 күн бұрын
The radioactive banana method was absurdly overengineered by normal standards, but disappointingly straightforward for Tom7. I hope he at least turned the banana into a NES emulator afterwards.
@AntiVectorTV
@AntiVectorTV 18 күн бұрын
And then used that emulator to make chess algorithms.
@MrDanlancelot
@MrDanlancelot 18 күн бұрын
"is there an e in Christmas?" I genuinely thought that 3Blue1Brown had sent "Maths Christmas" and then thrown a random e in there, just cause he likes when e randomly shows up in places
@TomHigson1
@TomHigson1 18 күн бұрын
Wow, the thumbnail and title of this video didn't prepare me for the avengers assembling. What a Christmas treat!
@mmicoski
@mmicoski 18 күн бұрын
😂
@cristianherrera443
@cristianherrera443 16 күн бұрын
“I recorded the radioactive decay of potassium in a banana” is something i was not expecting to hear on a christmas day
@ivanjermakov
@ivanjermakov 18 күн бұрын
<a href="#" class="seekto" data-time="930">15:30</a> Banana alpha decay... Tom is a genius!
@undeniablySomeGuy
@undeniablySomeGuy 18 күн бұрын
Is that the harder drives guy?! Edit: IT IS! I love this guy
@valerionappi7839
@valerionappi7839 16 күн бұрын
If you look for "banana random number generator" on google, there is a whole device I designed exactly for that: generating random numbers from potassium decay in bananas
@valerionappi7839
@valerionappi7839 16 күн бұрын
BTW potassium 40 does not decay in alpha particles, but rather in beta
@erencan.s
@erencan.s 12 күн бұрын
Hahahaha, I laughed that at the top of my lungs 🤣🤣🤣
@cedricksusername
@cedricksusername 18 күн бұрын
ah, The Parker Protocol. At least he gave it a go.
@kayleighlehrman9566
@kayleighlehrman9566 18 күн бұрын
When Steve revealed the tau < pi mug I *knew* it was Matt who bought it lol
@landsgevaer
@landsgevaer 18 күн бұрын
It is parker-smaller-than ,you mean? That is, smaller-than, but you are allowed to be a bit off?
@mindblow4248
@mindblow4248 17 күн бұрын
​@@landsgevaer tau < pi factorial, factually correct!
@andrewbloom7694
@andrewbloom7694 16 күн бұрын
tau > pi, but hey, at least tau < pi!
@Ayliean
@Ayliean 18 күн бұрын
Merry Christmaths All!✨ and thank you to the editor who cut out the several minutes where I couldn’t figure out why someone would gift me such a tiny scarf. It is a very cute dog bandana, thanks Santa! 💗
@merseyviking
@merseyviking 18 күн бұрын
I was expecting several more folds when you held it up, and got confused. 😅
@LukeSumIpsePatremTe
@LukeSumIpsePatremTe 18 күн бұрын
Obviously your dog hacked the system!
@LunaAlphaKretin
@LunaAlphaKretin 18 күн бұрын
leave it to tom7 to have a ridiculously overengineered method to generate random numbers
@unvergebeneid
@unvergebeneid 18 күн бұрын
Very on-brand!
@stephenj9470
@stephenj9470 18 күн бұрын
Followed by Brady just using a random number generator.
@MorRobots
@MorRobots 18 күн бұрын
Gota get that sucker pinch in.
@GregMcNamer
@GregMcNamer 17 күн бұрын
I was super surprised to see him and 0 surprised by his insanity.
@leedanilek5191
@leedanilek5191 18 күн бұрын
I deeply appreciate the color choices being colorblind friendly ❤
@Rydn
@Rydn 18 күн бұрын
The fact that this is flawed again it's making everyone happier I think.
@TheOwlman
@TheOwlman 18 күн бұрын
Which makes this the Parker Santa, just like the Parker Square, in honour of "those methods that just fall short."
@vigilantcosmicpenguin8721
@vigilantcosmicpenguin8721 16 күн бұрын
You found the true meaning of Christmas!
@blanktester
@blanktester 18 күн бұрын
The real gift here is getting to hear all these math folks discussing this with passion.
@noahblack914
@noahblack914 18 күн бұрын
Wherher Matt getting Steve was sabotage or chance, it was perfect
@HunterJE
@HunterJE 18 күн бұрын
What's Steve so mad about, the mug clearly states "τ < π!", which is patently true at least if if you accept using the gamma function to extend the factorial operation to non-integers (in which case π! ≈ 7.188)
@thaichicken0210
@thaichicken0210 15 күн бұрын
oh my goodness, all of these very intentional ways to pick random numbers… This brings me such joy, and I really love the insight into this community and these friendships and the faith everybody has in Matt to make this work somehow
@steviewonder9209
@steviewonder9209 17 күн бұрын
"We've ruined the sanctity of the 'no central authority' - it was just the easiest way to do it" On one hand- you crushed my spirit with that remark. On the other- I'm and engineer, so I'm fully on-board!
@PC_YouTube_Channel
@PC_YouTube_Channel 18 күн бұрын
I never thought I'd see the day of a Tom7 and standupmaths collab. I'm in heaven.
@smartereveryday
@smartereveryday 17 күн бұрын
Feeling Jolly! Merry Christmas everyone. Peace and Love to all.
@NBFman1991
@NBFman1991 17 күн бұрын
Merry Christmas, Destin! I went to Covenant College. Very cool to see you were there!
@somejeff
@somejeff 18 күн бұрын
<a href="#" class="seekto" data-time="939">15:39</a> After all these random number techniques, I totally expected Brady to lean over and scream: "Kylie!!! Give me 4 numbers! Kylie!!??!?"
@jsdcool3401
@jsdcool3401 18 күн бұрын
When everyone was selecting their random numbers, they were extremely quiet. Got an ad in the middle and nearly went def
@darkshoxx
@darkshoxx 18 күн бұрын
Me just enjoying the community he invited at <a href="#" class="seekto" data-time="560">9:20</a>, casually reading through the na.. HOLY SHORTS I'TS TOM SEVEN!?!?!?!
@darkshoxx
@darkshoxx 18 күн бұрын
HE PLAYS A CARRYING ROLE
@tom7
@tom7 18 күн бұрын
Imagine how *I* felt, casually watching @Standupmaths!
@darkshoxx
@darkshoxx 18 күн бұрын
@@tom7 Genuinely happy to see the cameo, and patiently waiting for more videos.
@Lorgres
@Lorgres 18 күн бұрын
I find it incredibly funny how Matt went through all this trouble to hide who gave the gift, just to accidentally leak who he gifted to himself 🤣
@stevenspencer306
@stevenspencer306 18 күн бұрын
My mind definitely went to public key cryptography as a method for anonymization. Glad you mentioned it!
@ggaattyy2
@ggaattyy2 18 күн бұрын
yoooo it’s matt, love that guy
@Scubadooper
@Scubadooper 18 күн бұрын
Thanks 😁
@Flomotion8000
@Flomotion8000 16 күн бұрын
And yet again I went through the three phases of a new Stand-up Maths video: 1. Excitement - Matt made a new video, yay 2. Disappointment - No this topic can't possibly be interesting or entertaining 3. Amazment - this was soooo good. Again. Have a wonderful holiday season yourself.
@lawrencejob
@lawrencejob 16 күн бұрын
My family has no trouble achieving derangement on Xmas day
@mstreich
@mstreich 13 күн бұрын
😂
@van_Streek
@van_Streek 18 күн бұрын
@<a href="#" class="seekto" data-time="1330">22:10</a>, the multiple shunts have no effect because at the end you can match your receiving and giving number to find out how many shunts have been applied, right? So you can reverse as many shunts you want as long as you don’t match your own ID’s
@kiraaaaaa
@kiraaaaaa 18 күн бұрын
I think this is what I'm getting hung up on as well. I'm kind of assuming I'm missing something here, but especially in the initial version, in Peter's "simulated" list at 18:55, I don't understand why their recipient and sender ID can even be in those positions. Since the first participant shunted once and then no more shuffles were applied, isn't the recipient ID at index _n_ in the list not always the same person as the sender ID at index _n+1_ ? And then also, as you said, the shunts seem to be easily reversed anyway- very confused here tbh :/
@xxfillex
@xxfillex 18 күн бұрын
​@@kiraaaaaa wasn't the list shuffled afterwards during that stage? If the list is shuffled after shunting they can be separated by any amount, where the shunt accomplishes pairing a receiver with a random sender (the shuffle makes it so that any of the other receivers can be in the next position), though maybe there wasn't shuffles at that stage, I didn't pay that much attention, I know there wasn't shuffling at the very end but I feel like there was still shuffling there
@xxfillex
@xxfillex 18 күн бұрын
Thinking a little more about it, shuffling when shunting would have a chance to break the cycle, so I guess this is an issue. It could possibly be resolved with some kind of shuffling algorithm that keeps the derangement. The thing that is most important to prevent is a self-contained loop, that is for someone to be matched with themselves, so as long as a shuffle kept all of the IDs separated enough, it would be fine. You could only to a limited amount of shuffling and shunting like this, for example, if you were to move one set of numbers down two spots you could be sure the next shunt is fine, but the one after that wouldn't be. If you moved it further and the next shuffle moved it back, it also might not be fine, which is why it would be important to have the shuffles happen in a very specific way in order to guarantee it works regardless of randomness with other shunts and shuffles
@romanspiwak
@romanspiwak 18 күн бұрын
Yeah, that's what's been bugging me. Like, am I misunderstanding the algorithm, or do the shunts simply do nothing? At 19:00, Peter knows what his receiver and sender IDs are, so he knows that the shunt was seven spaces (unless there is shuffling post-shunt (which I don't believe there is)). This means he knows who Sophie is buying for since he only has to count seven spaces. Unless I'm mistaken, she'd be buying for Mithuna, sender ID 607.
@Python-yq3gm
@Python-yq3gm 18 күн бұрын
Great video, bit a little sad that not everyone appeared in the unboxing, just enjoyed to see what kind of gifts they all got eachother and would have loved to see them all :)
@captainchaos3667
@captainchaos3667 18 күн бұрын
Just casually being able to set up a call with _all_ of mathematical KZbin at once is quite the flex.
@Darkstar2342
@Darkstar2342 18 күн бұрын
<a href="#" class="seekto" data-time="1745">29:05</a> This looks like an optical grating foil. You can make neat things with that, like melt chocolate on it to give it the same rainbow-like patters. A really neat trick :)
@SparksMaths
@SparksMaths 18 күн бұрын
It is indeed.
@shadeblackwolf1508
@shadeblackwolf1508 16 күн бұрын
in a standard trust based environment, "If you draw yourself, call out and, we go again" is good enough
@rara58524
@rara58524 18 күн бұрын
Apart from the fun challenge, I also enjoyed seeing all my favorite math channel people gathered in a video-chat panel like that. Feels very Star Trek-y optimistic about the future. If eventually a panel of lovely intelligent people could replace all the politics of the world. Thanks and Happy Holidays!
@etaoin_shrdlu-4034
@etaoin_shrdlu-4034 16 күн бұрын
The thing about the mug is that you don't even need to break the system or know the billing address to know that Matt sent it because that's such a Matt Parker gift to send.
@minamagdy4126
@minamagdy4126 18 күн бұрын
<a href="#" class="seekto" data-time="680">11:20</a> here's the thing: in this system it's bot impossible to find out who you're giving a present to, it's TRIVIALLY EASY. you see, in the third pass, everyone's label is both out for all to see in the receiver's column and right above the person they'll be gofting. Basically, anyone can know who will get anyone's gift, which is as far from anonymous as it's possible to do.
@deeplow4492
@deeplow4492 17 күн бұрын
yes, the offset between label and number is the same for everyone so if you know your offset, you can know anyone’s
@benclancy89
@benclancy89 18 күн бұрын
I am constantly shocked by how small the youtube world can be. Loved seeing suckerpinch and hope to see more of him!
@steveedgar1742
@steveedgar1742 18 күн бұрын
I enjoyed that: this is possibly one of the greatest gathering of minds since the Manhattan project. they were all as confused as me readiing a Haynes manual.
@JerryFlowersIII
@JerryFlowersIII 18 күн бұрын
This has always been one of those problems that feels like there should be an elegant solution and yet we get to have all this fun instead.
@gpaciga
@gpaciga 18 күн бұрын
My family group has an annoying extra rule that couples can't buy for each other and none would have the tolerance for a spreadsheet. Haven't figured out how to guarantee a derangement for that yet.
@ebonyl9312
@ebonyl9312 18 күн бұрын
There are apps for this, you can out forbidden people in I.e. A can't buy for B.
@TehBIGrat
@TehBIGrat 18 күн бұрын
There are several free apps that do seceret name draws. DrawNames is one i've used that you can set up exclusions such as couples.
@akhagee4707
@akhagee4707 16 күн бұрын
​@ebonyl9312 we used Elfster this year at work. (I organized it & participated) it let me put in where person A couldn't buy for B and I also had to put in B couldn't buy for A.
@Adman1020
@Adman1020 16 күн бұрын
The best thing about things like this is realising all my favourite KZbin people are mates with each other! The second best is finding loads more awesome KZbinrs to watch!
@Peterwhy
@Peterwhy 18 күн бұрын
For the version with a random number of shunts, afterwards everyone would learn how many shunts happened. Then as the receiver IDs are replaced by names, everyone should be able to reverse the shunts and decode the sender IDs. (STAGE 2: Everyone [...] remembers their exact locations. [...] No one shuffles.) Also, for composite _n_ , the shunts may create multiple loops (as in <a href="#" class="seekto" data-time="1324">22:04</a> with n=4). This may or may not be desirable.
@ckq
@ckq 18 күн бұрын
Rare tom7 appearance
@LeoStaley
@LeoStaley 18 күн бұрын
It's usually once a year on April 1!
@AdrianHereToHelp
@AdrianHereToHelp 18 күн бұрын
Tom7 using potassium decay to generate random numbers is actually hilarious
@scaredyfish
@scaredyfish 18 күн бұрын
My thought is to use encryption, and have no set order of things. In a public document everyone puts in their public key. We know when that’s completed when the number of keys matches the number of participants. Then anyone who wishes to can shuffle the list. Now you have an ordered list of public keys. Each participant encrypts a message with their name/address with the public key of whoever is after them on the list. This can also be placed in the document. Then once all the messages are in, you try to decrypt each message with your private key until you find one which decrypts to a name/address, and that’s who you buy a present for. Edit: lol, I should finish watching the video before commenting!
@martinpeschel1318
@martinpeschel1318 16 күн бұрын
Does this not have the problem that you can put yourself on the list multiple times with different public keys?
@aaronbredon2948
@aaronbredon2948 16 күн бұрын
​@martinpeschel1318 that would get caught when someone let's everyone know they haven't added their public key, or when the number of public keys exceeds the number of participants.
@martinpeschel1318
@martinpeschel1318 16 күн бұрын
@@scaredyfish Thats true. and this protocol is certainly much better than the one in the Video, i was just wondering if there is a way to do it so that it can not be sabotaged so easily...
@scaredyfish
@scaredyfish 16 күн бұрын
@@martinpeschel1318 To more robustly ensure that everyone has entered their details, and no-one has double-dipped, you could have a step where after the required number of entries have been added, everyone digitally signs the document to confirm they have added their entry. This would have to be a different public/private key pair, with the public key associated with the person’s name. It feels a little clunky to need two key pairs. Perhaps there’s a way around that.
16 күн бұрын
​@@scaredyfishyep, pretty much. But simply signing a document makes it impossible to detect who is messing with the pritocol. You can fix it with blind signatures where each participant gets a unique token that proves they are one of the group. Having two or more keys is non-issue. They are trivial to generate and it's easy to automate it.
@euanmcdougall1917
@euanmcdougall1917 18 күн бұрын
Malicious actors could share their random numbers to break everything lol
@standupmaths
@standupmaths 18 күн бұрын
Yes, none of these systems are robust against colluding malicious actors. It would be incredible if one is though!
@mozismobile
@mozismobile 18 күн бұрын
dealing with a conspiracy is considerably harder. I suspect you'd need seeded PKI to generate multiple anonymous-to-owner public keys per person. Doing the final unwrap would be challenging. (and per someone we all know and love "there is not enough space in this margin to fully explain the method" :)
@euanmcdougall1917
@euanmcdougall1917 18 күн бұрын
@@standupmaths This sounds like a good maths paper lol
@samarnadra
@samarnadra 18 күн бұрын
This is why I prefer the "bribe and recruit" method of dealing with people with that mindset. If they are personally invested in it succeeding (and/or have been promised a reward if no one breaks it), they will work hard to make certain it succeeds and prevent others from messing with it. Bribery is less effective (because of counter bribes), but there are ways to make your bribe relatively inexpensive and something that can't be countered - like homemade fudge, playing video games if they are family/friend and like that, helping them with a project, covering a shift that no one will want to cover, etc. Getting them invested in the process is harder, but they are less likely to turn on you for $20 and a hot cocoa.
@its_w4yne
@its_w4yne 18 күн бұрын
Well but who knows if they are sharing their real number as their own and not just one they saw...
@FugalQuease
@FugalQuease 18 күн бұрын
- each person gets a white envelope containing a red envelope and a green envelope, each containing a blank name tag - they write their name on the two name tags and put them back in the red and green envelopes in the white envelope - shuffle the white envelopes - lay white envelopes in a row - take out red envelopes and lay them beside the white ones - shift the red envelopes around one step - put the red envelopes into their new white envelopes - shuffle white envelopes again - for each white envelope, take the name out of the green envelope and tape it to the red envelope - distribute named red envelopes to their givers, who then give to the person named inside.
@martinpeschel1318
@martinpeschel1318 16 күн бұрын
I like this a lot!
@geirmyrvagnes8718
@geirmyrvagnes8718 12 күн бұрын
What does the second white envelope shuffle do? The red and green envelopes are already paired in their final configuration? Just wondering if we could simplify and reduce the number of differently colored envelopes. I have probably overlooked some potential exploit.
@FugalQuease
@FugalQuease 12 күн бұрын
@@geirmyrvagnes8718 - it ensures that when the envelopes are opened information about the order is not revealed
@FugalQuease
@FugalQuease 12 күн бұрын
@@geirmyrvagnes8718 The second shuffle is to ensure that information about the order can't be seen before any of the names are revealed. The green envelopes are somewhat superfluous. It could just be a name tag and the red envelope inside the white one, but in practice I think the green envelopes would prevent any accidental revealing of names.
@NathanGastineau
@NathanGastineau 11 күн бұрын
@@geirmyrvagnes8718 Imagine if you are all in the room watching every step. If you didn't shuffle the second time then the order of the cards reveals each pair (A is buying for B, B is buying for C, etc.)
@Korwinga
@Korwinga 18 күн бұрын
I loved seeing all of the participants methods of getting their random numbers.
@kris_torres
@kris_torres 18 күн бұрын
As an AFOL, I have to say that Brady Haran got the best gift out of the bunch. Also, I just realized that ⅔ of A Podcast of Unnecessary Detail are in this video (Matt, you should’ve invited Helen Arney to complete the triangle). Anyways, Merry Christmas and a Happy New Year to all of you!! 🎄🎅🏻🎁
@wallyhall
@wallyhall 18 күн бұрын
I - without sitting down to confirm with pen and paper - feel that a distributed hash chain could prove nobody is tampering with the process. An unoptimised example - every step can brute-force (and hash) every possible next step (less the value being randomly changed) … which could be publicly announced and publicly verified by the step after the next.
@jlivewell
@jlivewell 18 күн бұрын
Merry Christmas, Matt and everyone!
@Questerer
@Questerer 18 күн бұрын
I love how Steve mould is just hacking the postal system instead of Matt’s system. 😂
@huellenoperator
@huellenoperator 18 күн бұрын
a side channel exploit if you will
@AF-lt2fr
@AF-lt2fr 18 күн бұрын
<a href="#" class="seekto" data-time="1388">23:08</a> - D will know how many shunts there have been due to how displaced their numbers are
@SourceOfBeing
@SourceOfBeing 18 күн бұрын
How are you preventing/handling multiple instances of the same random number? If by happenstance, multiple people have the same random number as receiver or giver, then when it comes to reading the names or replacing them, people aren't going to know which one to read/replace.
@standupmaths
@standupmaths 18 күн бұрын
We just had the rule that you cannot use a random number already in the list, you need to pick again.
@felixdawson8497
@felixdawson8497 18 күн бұрын
Yeah I thought about this
@SandyCrack69
@SandyCrack69 18 күн бұрын
I was wondering this too. - so the random number isn’t quite random …
@heavyhoved
@heavyhoved 18 күн бұрын
Love this! Matt making strides towards improving something..😂 My thought process went on from the 'choose a random note with a name' step, and combining that with the random the two random numbers in Matt's system, where my thoughts went onto 'choose a colour you like (like red, blue and so on', but then if two chooses the same colour it would have to be redone, and if there are a lot of people, the likelihood of that happening increases.. but then I thought, you can choose very specific colours, as they all have numbers associated with them in the digital world, and so you choose the hue you like (and can even use a colour picker online), and that is 'your colour'. When everyone has a colour, which is unlikely to be chosen by anybody else, you simply choose between all the chosen colours (although the last one doesn't have a choice, but that's the same really, as when you pick randomly from a hat/bowl/thingamajig).. The workings of this could be made using several online tools, where you are anonymous, and when you choose the second colour, they write their name, but don't have yours, and when someone chooses your first colour choice, you write your name to the anonymous chooser. This will make it so there aren't any loops, or any possibility of tinkering/hacking the system, I think. But I am inclined to think that Matt actively chose to gift to Steve😂 it was funny anyway, and a fantastically Matt Parkerish way of ending the video!
@delibirdite
@delibirdite 18 күн бұрын
Merry Christmas Matt :)
@brunoramey50
@brunoramey50 18 күн бұрын
Considering the last week Numberphile video, I'm a really happy to see Ayliean McDonald still in your friends list ! Merry Christmas everybody !
@IceMetalPunk
@IceMetalPunk 18 күн бұрын
So you're saying that Matt came up with an "unhackable" approach that was immediately found to be hackable? I guess you could say it's a... Parker Santa 😁
@willemvandebeek
@willemvandebeek 18 күн бұрын
Merry Christmas, Matt & entourage! :)
@antiquehealbot6543
@antiquehealbot6543 18 күн бұрын
I wonder how much Jane Street is recruiting through these sponsors... They are a dream job for many. I thought they'd have a billion applicants without that sponsored segment.
@dawntreader1247
@dawntreader1247 17 күн бұрын
my favourite system is this: everyone buys a random generic present and you choose which gift you want to take based on the wrapping, if you are left with your own you ask to swap.
@PaulBunkey
@PaulBunkey 18 күн бұрын
<a href="#" class="seekto" data-time="314">5:14</a> The problem of "forged position" is easy to solve: pick a random number from the list (except yours) and label the gift you've bought with the picked number. At the end everyone revels their numbers and takes a gift with their number.
@Starwort
@Starwort 17 күн бұрын
This doesn't guarantee a derangement; the last person may be forced to pick themself
@Ishanaroya
@Ishanaroya 18 күн бұрын
This is exactly the kind of christmas morning program I wanted to watch! Merry Christmath, everyone!
@NottoriousGG
@NottoriousGG 18 күн бұрын
Where's Hannah Fry?! 😮
@chiproush7480
@chiproush7480 13 күн бұрын
this video (including and especially the random number generation methods therein) is a lovely gift to your viewers. Thank you, Matt, et al, and may 2025 treat you gently.
@luminica_
@luminica_ 18 күн бұрын
On average it takes less than 3 times to get a derangement, this method requires 3 passes of a more complicated process, so on average this method is less efficient than just randomly shuffling.
@genehenson8851
@genehenson8851 18 күн бұрын
I think you missed the point of the video.
@standupmaths
@standupmaths 18 күн бұрын
That's a good point, on average.
@stephenbeck7222
@stephenbeck7222 18 күн бұрын
How dare you accuse Matt Parker of doing anything mathematical with an inefficient process.
@Derply
@Derply 16 күн бұрын
the range of gifts is entertaining. a piece of celophane was obviously the best one
@oll-e3944
@oll-e3944 18 күн бұрын
Additionally to the fact that the number of shunts is available publicly by just comparing the two columns for your number (as many other commenters have pointed out already) , there is (if i understand the protocol correctly) also the flaw that Pn-1 can figure out Pn's numbers by noting down the whole list in round one and looking for the newly added numbers in round 2, and can then, because they know that they are the last one to shunt the list, reshunt in in such a way that they either give a gift or receive a gift from Pn
@sotek2784
@sotek2784 18 күн бұрын
That doesn't work - every round you swap out your numbers when you get the list exactly to prevent that.
@TheASaurus1
@TheASaurus1 16 күн бұрын
I also saw this. Even if the shunt is done by a random amount, once D gets the list in the second round they know A) how big the shunt was and B) the identity of all the buyers (since the buyers column is just the publically-named receivers column but shunted by X amount, which they know). The order of the pairs would need to be shuffled as each stage in the second pass in order to hide this information from D.
@tparadox88
@tparadox88 18 күн бұрын
Perfectly timed channel bubble popup in Steve's unboxing segment.
@maze7050
@maze7050 18 күн бұрын
Merry Christmas!
@matheuscastello6554
@matheuscastello6554 18 күн бұрын
omg yes!!! i've been interested in this topic for ages, glad to see a video from one of my favorite math youtubers on it :D
@Spanner1971B
@Spanner1971B 18 күн бұрын
I feel like Numberphile did a video on this exact topic several years ago. Edit - Ok I shoulda waited until the end 8)
@thebourgeoispunk
@thebourgeoispunk 17 күн бұрын
I just love to see a bunch of mathematicians logically deducing a truly anarchist system of gift-sharing.
@paawanjethva
@paawanjethva 18 күн бұрын
<a href="#" class="seekto" data-time="144">2:24</a> But the central authority does not need to be a person. It can be a computer (e.g. an app)! You don't have to trust a person or use a super complicated algorithm.
@robiederks5855
@robiederks5855 17 күн бұрын
But then you would still have to trust the people developing and operating the app. While this may solve the trust problem in practice, theoretically it only moves the problem and doesn't solve it.
@ubertgold
@ubertgold 17 күн бұрын
Seeing Tom7 in a non-Tom7 video is perhaps the best gift I've gotten this year, let alone Christmas
@mr_maestro
@mr_maestro 18 күн бұрын
<a href="#" class="seekto" data-time="97">1:37</a> looking forward to that video :) Also: serendipitous timestamp
@cnoize314
@cnoize314 18 күн бұрын
Yo, Tom7! Love his stuff, so good to see him in the mix here
@trevormacintosh3939
@trevormacintosh3939 18 күн бұрын
Small correction: The probability of getting a derangement is only 1/e in the limit as the number of people playing approaches infinity.
@x--.
@x--. 18 күн бұрын
Infinite Imaginary Friends.
@robiederks5855
@robiederks5855 17 күн бұрын
True, as the probability being exactly 1/e would imply that n!/e out of the n! permutations are derangements (where n is the number of people). This cannot be true since n!/e is not an integer. However, the true number of derangements is actually the integer nearest to n!/e, so the real probability of a derangement is as close as possible to 1/e. So it is (at least to me) more interesting than "only in the limit".
@nathanmiles4989
@nathanmiles4989 15 күн бұрын
my solution: use a "central authority" who is outside of the gift giving group. said authority enters each participant's name into an excel sheet, randomizes the order of names, and then each person gifts to the one below them in the list, with the final person wrapping around to the first.
@synthstream31415
@synthstream31415 18 күн бұрын
Isn't pi factorial greater than tau though? (7.188 & 6.283)
@snowy2018
@snowy2018 18 күн бұрын
Yes! Just what I thought. I think Steve Mould thought the “!” was an exclamation mark not a mathematical symbol for “factorial”. Tau > pi. But tau < pi factorial, which is what was printed on the mug. And the double meaning of “!” is, I think, part of the jokey taunt from Matt to Steve that tau is inferior to (less than) pi as a number, while also tau is less than pi factorial. Whereas in the lore of their friendship, Steve believes that tau is a better/superior (“greater”) number than pi (as Matt believes that pi is superior).
@keithmyerscough697
@keithmyerscough697 18 күн бұрын
@@snowy2018 Surely Steve is toying with us in pretending not to notice this.
@kasparpoland9803
@kasparpoland9803 18 күн бұрын
I love that Tom7 is a part of stuff like this now. He’s brilliant and funny and totally deserves to be in this stuff. I wish he was in 3b1b’s topology utilities puzzle on that mug. He’s the best.
The Minecraft boat-drop mystery
16:41
Stand-up Maths
Рет қаралды 1,1 МЛН
The Bingo Paradox: 3× more likely to win
30:15
Stand-up Maths
Рет қаралды 745 М.
Try this prank with your friends 😂 @karina-kola
00:18
Andrey Grechka
Рет қаралды 9 МЛН
小丑女COCO的审判。#天使 #小丑 #超人不会飞
00:53
超人不会飞
Рет қаралды 16 МЛН
2329 The Expanding Ball Or Hoberman Sphere - The Elegant Use Of Simplicity
12:07
Is This Sudoku Impossible?
53:13
Cracking The Cryptic
Рет қаралды 4,4 МЛН
The "Impossible Torpedo" was real
16:33
Steve Mould
Рет қаралды 1,5 МЛН
I tricked my car charging station into powering a 7.5 kW heater
33:11
Technology Connections
Рет қаралды 1 МЛН
Stockfish Just Solved Chess
27:40
GothamChess
Рет қаралды 1,1 МЛН
The Greenwich Meridian is in the wrong place
25:07
Stand-up Maths
Рет қаралды 1 МЛН
"For $35,000 I'd Expect it to be Perfect"
42:13
Blacktail Studio
Рет қаралды 6 МЛН
Making a Puzzle Solver's DREAM
20:50
Inheritance Machining
Рет қаралды 413 М.