Тёмный
No video :(

The River-Crossing Puzzle (Dino + Santa edition) 

carykh
Подписаться 615 тыс.
Просмотров 88 тыс.
50% 1

you know you want to solve it!
TED-Ed's awesome video on this River Crossing Puzzle from 2016! • Can you solve the rive...
GitHub repository with the source code for my visualization: github.com/car...
5:07 correction: It's an UNDIRECTED graph, not a bi-directional graph. oops my bad

Опубликовано:

 

13 янв 2023

Поделиться:

Ссылка:

Скачать:

Готовим ссылку...

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 437   
@MeesterTweester
@MeesterTweester Год назад
Santa should fly on his sleigh across the river
@asheep7797
@asheep7797 Год назад
The last 9 word TWOW-Mission.
@IMC_123
@IMC_123 Год назад
@@asheep7797 the Nine Words Of Intelligence
@rhebucks_zh
@rhebucks_zh Год назад
I watched 3 seconds of your video confessional and I now know that the description "the sun kid" makes sense.
@naterhythm
@naterhythm Год назад
genius
@Muwqas
@Muwqas Год назад
@@IMC_123 NWOI
@galacticfish6380
@galacticfish6380 Год назад
Loved the generalizing of the solution at the end there, but I wonder, what if we adjust the number of people rather raft can carry? That expands the number of movement vectors we get so I can imagine that we would get different solutions. Is there any point at which we would need more rafts, or does that stop once one extra person can get on?
@tetrachart4156
@tetrachart4156 Год назад
I mean theses also the consideration of if the Dino eating Santa caveat should be applied also on the rafts as well.
@carykh
@carykh Год назад
Thanks galacticfish! Oooh, bigger rafts is an interesting variation to try. I think it actually wouldn't be too hard to test - I'd just have to add more legal moves to my array, which right now is (1,0,1), (2,0,1), (0,1,1), (0,2,1), (1,1,1). Tetrachart brings up an interesting point though, that 2 Dinos could eat a Santa while on the raft haha My guess is, once we have a raft that can hold 4 creatures, you can just shimmy along the diagonal (2D + 2S cross, 1D + 1S come back, repeat over and over)
@Aelfraed26
@Aelfraed26 Год назад
@@carykh You should do a short with the increased carrying capacity of each raft.
@kleko
@kleko Год назад
Adding capacity should just change the previous constant in n - 2 rafts yeah? as in n - x where n is amount of santas and x is raft carry capacity. Well kinda. I'm not enough of a math kid to add a stipulation that the sum must be at least 1, but other than that it should be correct. Any added capacity should just push the middle gap problem one step further away.
@syfontenot7427
@syfontenot7427 Год назад
@@carykh Could possibly change the nom nom condition from strictly greater than to greater than or equal to and then to greater than or equal to Santas - 1. I do fear, however, that the same patterns will arise on the edge cases (where size is 1 off nom nom threshold). And I assume there is a way to procedurally calculate moves rather than hardcoding them to an array. Another expansion could be of adding like a rock-paper-scissors equivalent (idk the specifics), but that’ll get rid of the 3 dimensions. Perhaps have a graph of graphs and at some point (if you delve into 5 or 6 dimensions) just display the result(s) instead. Love this graph theory approach!
@shuu-wasseo
@shuu-wasseo Год назад
omg this is such an interesting way to visualise the puzzle! i wonder what other similar puzzles look like on a similar graph
@ioium299
@ioium299 Год назад
but you believe the ted-ed riddle is wrong?
@shuu-wasseo
@shuu-wasseo Год назад
@@ioium299 what
@garyweibel1372
@garyweibel1372 Год назад
I’ll keep this in mind next time I’m visiting the North Pole in the Cretaceous period
@SonicPman
@SonicPman Год назад
As a Yoshi, I’m glad carykh is finally giving us some representation.
@f.u.m.o.5669
@f.u.m.o.5669 11 месяцев назад
True. I'm a Yoshi rights activist.
@polyplayer
@polyplayer 10 месяцев назад
Ditching Yoshis off a cliff should be illegal
@PrideEepy64
@PrideEepy64 10 месяцев назад
@@polyplayerYoshi is popular on Super Mario Galaxy 2 that doesn’t exist on 3D All Stars Back in March 31st 2021
@polyplayer
@polyplayer 10 месяцев назад
@@PrideEepy64 im talking about super mario world
@PrideEepy64
@PrideEepy64 10 месяцев назад
@@polyplayer I know but I was also referring to another part of Yoshi in Super Mario Galaxy 2 I am aware of Yoshi cliff in Super Mario World
@koopa472
@koopa472 Год назад
8:20 no way!!!!! Jokes aside, this is a really cool visualization of this problem that I never would’ve thought of. Great video as always!
@unarei
@unarei Год назад
every state that can be explored hazbin
@DGCubes
@DGCubes Год назад
8:58 Cary's getting too real :P Love the video!!
@pinkorcyanbutlong5651
@pinkorcyanbutlong5651 Год назад
Pretty neat visualisation, would be a fun project (for me, or someone else) to write a solver using these heuristics, given an 'n' input, output an array of vectors of each step Also, I guess you chose this version of the puzzle (or, TED-Ed) because its the easier one to visualize and reason about, while the other versions are more nuanced, like the one with the farmer, wolf, goat, and cabbage, or the one with a whole family that is super weird
@carykh
@carykh Год назад
Thanks PinkorCyan! Yeah, I did feel lucky when I realized this version of the puzzle only has 3 dimensions, when many other variations could easily have 5, 10, 15. Interestingly, the wolf+goat+cabbage one (which is arguably more well-known) actually has a 3D representation I found on Wikipedia! (but it's designed slightly differently)
@thomasrosebrough9062
@thomasrosebrough9062 Год назад
Love this new style of video editing, Cary! I can tell you had fun with little bits like the "so wasteful" voice in the background lol
@handupandu6000
@handupandu6000 Год назад
i love the visualization, i never would have thought about it this way. your videos are the best
@AgainsaidBen
@AgainsaidBen Год назад
So great! I feel like I'm actually understanding the world in extra dimensions. P.S. I still show your scale of the universe to my students every term.
@carykh
@carykh Год назад
Thanks Ben! Oh wow, it's really cool to hear that my Scale of Universe is still playing a small part in students' education 😃 (One of these days the students themselves will be younger than the website, aaaaaa)
@flyingduck91
@flyingduck91 Год назад
extra dimensions? this is just 3d
@AgainsaidBen
@AgainsaidBen Год назад
@@flyingduck91 agreed, but it *feels* like extra dimensions, probably because as he stated in the video, we're used to looking at the problem from only one particular perspective, not all at once.
@drenz1523
@drenz1523 Год назад
Now that I think about it, is a scale of the universe website with 3d models ever possible?
@Horbiflorbin
@Horbiflorbin Год назад
​@@drenz1523i guess? It's just replacing anything 2d with 3d models besides stuff like text and ui It would take AGES but would be possible
@Monkeylordz88
@Monkeylordz88 Год назад
I love your algorithm videos and how you explore the concepts visually, so glad to see them return!
@Siuwajansiwa
@Siuwajansiwa Год назад
I like how it shows these visualizations can offer insights that are hard to see by just thinking through it.
@keyboardtalk
@keyboardtalk Год назад
8:56 dang that got deep really quick... Had to solve this problem in college using PROLOG. Never fully understood how that worked.
@Bladieblah
@Bladieblah Год назад
1:32 Ha, I knew you would slip and call em Yoshi's at least once! Cool Yoshi models btw, honestly clicked for the Yoshi, wondering what it was doing here in a puzzle video
@patrickgh3
@patrickgh3 Год назад
Love this visualization, that it generalizes to an arbitrary number of dinos, santas, and rafts, and that you can be confident you didn't miss any alternate solutions! :) Fantastic video!
@jdh9419
@jdh9419 Год назад
1:30 He got tired of saying dinosaur and finally saved our souls
@RTOF
@RTOF Год назад
I am really loving this method of visualization, it’s just one of the simplest
@Meowicat
@Meowicat Год назад
Yoshis: flutterjump across the river Santas: use their sleigh to fly over the river Raft: :(
@javianwilliams7463
@javianwilliams7463 Год назад
1:17 “-in their journey, the Dinosaurs can’t help but eat the Santa, killing him.” (Childhood Memories of Winter plays)
@javianwilliams7463
@javianwilliams7463 Год назад
0:42 “None of these creatures can swim.” (Childhood Memories of Winter plays)
@Healion123
@Healion123 Год назад
this is really satisfying to watch! seeing how you dissected the graph to show the solution was cool
@DPS-2004
@DPS-2004 Год назад
i keep on forgetting that rdl members exist outside of rdl and being surprised
@wankadool2111
@wankadool2111 Год назад
@@DPS-2004 i keep forgetting that rdl exists
@matthewgoodman434
@matthewgoodman434 Год назад
I've been working on a similar thing, making data visualizations for the puzzle "signpost". the terminology of graph types that you mentioned will definitely be useful to me. thanks!
@BladeTheGabite
@BladeTheGabite Год назад
I would really love to see this with other bridge crossing problems like the lamp and torch one!
@sergodobro2569
@sergodobro2569 Год назад
That is a very cool way to find the solution! And you mentioned the graphics library you used, thanks for that either! Thanks for the quality content!
@MrSpartaa
@MrSpartaa Год назад
10/10 content
@jimgu2578
@jimgu2578 Год назад
This is amazing! Especially the generalization part.
@philyk.illagan3161
@philyk.illagan3161 Год назад
I was thinking about the river puzzle quite recently. Nice to see a mathematical explanation behind it. I love math (except when I was taking soul-crushing classes in college)! Also, it's nice to be early for a video.
@dunlopchop
@dunlopchop Год назад
would never think to see so many tautologies of the river-crossing puzzle being fleshed out in one comfortable niche since this interpretation of the experiment would agree in every aspect
@Kreypossukr
@Kreypossukr Год назад
Insane visualization !! Great work !
@minebrandon95264
@minebrandon95264 Год назад
Yeah this video makes it so much easier to understand than the ted ed video especially with the higher level crossings
@Bigman74066
@Bigman74066 Год назад
Excellent video about an excellent solution 👍. I hope you will keep making videos like this!
@Twin138956Productions2019
@Twin138956Productions2019 Год назад
Happy 2023, Cary. That one is a nice puzzle there.
@winrg1234
@winrg1234 Год назад
the whole of the universe tends towards entropy, and this is just one example. you're welcome. 10 points to me.
@bumperman_
@bumperman_ Год назад
hey cary! im going into highschool soon and ive been watching your videos all throughout middle school! your videos got me interested in programming and ive been learning python! thanks for inspiring me so much and I want wait for the next upload!
@dolphin2.0.
@dolphin2.0. Год назад
Yoshi: how do we get across this river Santa: I know graph theory Yoshi: why? Santa: I've solved the traveling salesman problem
@johnchessant3012
@johnchessant3012 Год назад
Very nice visualization and generalization!
@tamsilwashere
@tamsilwashere Год назад
I realized the Hazbin Hotel reference with Angeldust!
@ValeBridges
@ValeBridges 8 месяцев назад
3:51 This bit reminds me of the part of jan Misali's video on regular polyhedra, specifically the part about zig-zag/skew polygons
@brodiscool2752
@brodiscool2752 Год назад
There's a variation on this puzzle I saw a while back that is probably easier. You are a farmer with a Wolf, Chicken, and bag of corn. You must cross a river with a boat that only you may paddle and may only hold one item. If the Wolf is ever left alone with the Chicken you die and if the Chicken is left with the Corn you die. The Wolf may never eat the Corn however. [Solution Below] The solution would be to row the chicken over first then come back with nothing, then to row the wolf over and come back with the chicken (the wolf doesn't eat the chicken since you are there) then take the corn immediately back to the wolf and go back then take the chicken across.
@Controlly
@Controlly Год назад
0:39 FIREY UNDERWEAR!? That’s my kidnapper!
@fernozzle
@fernozzle Год назад
Beautiful!
@bsodaman
@bsodaman Год назад
hey there micheal
@AngelGonzalez-bj6mo
@AngelGonzalez-bj6mo Год назад
It is really interesting to see these type of videos after a semester in college full of classes with stuff like this
@matthewtosg
@matthewtosg Год назад
I remember learning something like this in class one actually.
@RegularFantaTheBest
@RegularFantaTheBest Год назад
1:23 the echo🤩🤩
@RetroEgg2
@RetroEgg2 Год назад
0:40 this is the most cursed firey i have ever seen. Fire boiii
@RetroEgg2
@RetroEgg2 Год назад
A fire w/ a baby dipar
@elmomaster659
@elmomaster659 11 месяцев назад
No it's firey underwear
@qu765
@qu765 Год назад
Me and my homies when we have 30 santas 30 dinosaurs but only 27 rafts: :(
@ItsAdamHere
@ItsAdamHere Год назад
Happy birthday Cary!
@javianwilliams7463
@javianwilliams7463 Год назад
6:54 “There’s ZERO Santas.” (Surprised trombone sound)
@floof.floofington.the.floo-rth
Ted-ed is exactly why I know this! One of the first riddles I’ve learned AND solved actually!
@shinatham53
@shinatham53 7 месяцев назад
*Yoshi is eating Santa* DEATH P.A.C.T. (Both Past and Present): Not on our watch
@MrSpartaa
@MrSpartaa Год назад
no santas were harmed in the making of this
@Sixfrombeefydielol
@Sixfrombeefydielol 10 месяцев назад
1:30 as a fellow yoshi im glad he showed us some respect
@Elec-citrus
@Elec-citrus Год назад
another day of carykh beating TED-Ed at problem solving :)
@jellyfish8771
@jellyfish8771 Год назад
Happy late birthday Cary!!!!
@dreamer5959
@dreamer5959 Год назад
Really cool visualization. I remember playing a game like that as a kid, except it was with sticks, wolves, goats and cabbages. I don't think it would be possible to make it into a similar graph if there are more than 2 kinds of creatures
@TheRabbitPoet
@TheRabbitPoet Год назад
It can be done, but it gets harder to visualize because each new type of creature becomes its own axis (for example, the one you described would be a 4d graph) Numberphile did a visualization on the 1 wolf, 1 sheep and 1 cabbage version Edit: here's the link ru-vid.com/video/%D0%B2%D0%B8%D0%B4%D0%B5%D0%BE-ZCVAGb1ee8A.html
@epsilon9669
@epsilon9669 Год назад
thanks for the 3 am upload while I'm awake with covid, appreciate it my man
@pixarinaimateinsanityyokai2984
Happy 26th birthday Cary Huang!
@hoppingiconcentral826
@hoppingiconcentral826 Год назад
1:31 Cary accidentally said Yoshi
@ANNOYINGMONKEY27
@ANNOYINGMONKEY27 Год назад
This video was pretty interesting as I stuggled with the puzzle before, this video help me though. Very cool graphing from the origin
@nonagonguy6121
@nonagonguy6121 Год назад
You are the very last person I would expect a hazbin hotel reference from. Not complaining though
@mrs.willwood
@mrs.willwood 11 месяцев назад
I am so stupid I didn’t understand this but it was very entertaining to see you figure everything out!
@Indonesia_bks
@Indonesia_bks 8 месяцев назад
0:39 Firey's Underware
@Lebensgott
@Lebensgott Год назад
I love the visualization
@MightyElemental
@MightyElemental Год назад
Never seen this version of the puzzle before. Think the only one I heard of was about a fox, a chicken, and some grain 🤔
@zoutig.4725
@zoutig.4725 Год назад
Very glad the santa eating dinosaurs are extinct by now would have been disastrous for christmas.
@Kaikaku
@Kaikaku Год назад
1:08 "The dinosaurs still have this biological urge to eat humans." -> Sorry, they don't. They had never the opportunity to develop such an urge 😉
@rym36
@rym36 Год назад
I didn't expect this to be coded in Processing . I knew it was capable but not that capable!+
@AirNeat
@AirNeat Год назад
wtf? kary KH science video again? finally!
@fossposs6408
@fossposs6408 Год назад
from the thumbnail i somehow thought this was a veritasium video until i was like “wait that sounds like cary!” lmao anyways that’s a pretty (and) elegant solution ngl, cool work!
@shieldgenerator7
@shieldgenerator7 Год назад
i love how you expanded the problem
@RennaTempest
@RennaTempest Год назад
im just happy to see that you also use processing
@CamOrSomething
@CamOrSomething 10 месяцев назад
move #1. move 2 dinos | move #2. move 2 santas | move #3. move the remaining santa and dino
@Blyfh
@Blyfh Год назад
Omg, Cary is a Hazbin fan?! 8:22
@Aelfraed26
@Aelfraed26 Год назад
900 IQ way to tackle the problem
@Awsmoe-Cat-Drawing
@Awsmoe-Cat-Drawing Год назад
Oh look it’s yoshi! Hi yoshi! Anywho, this is a great visualization of the river crossing puzzle!
@CaedmonOS
@CaedmonOS Год назад
You just had to throw in the brief has Hazben Hotel referencesI love it
@LemonSoundLogos
@LemonSoundLogos Год назад
0:41 cary reveals the actual reason why i stopped using cyshi
@gyroelongatedpentagonalbip728
Teacher: please concrentrate during the test Me trying to figure out how to get Dinosaurs and Santas on the other side of the lake
@bryceidontknow
@bryceidontknow Год назад
Easy solution. Get trees from the forest (on fire so be careful!) and build a second raft. 2 rafts that can carry 3 people. 2 X 3 is 6 so everyone goes free!
@Celment
@Celment Год назад
i really love the “comin to getcha moves”
@nell076
@nell076 Год назад
your videos are always so cool i don't know what else to say
@sullivanbell2397
@sullivanbell2397 Год назад
Noo!!! Now no one will have Christmas presents!
@PLANTSVSZOMBIESFAN757
@PLANTSVSZOMBIESFAN757 Год назад
i love how hes just referend to the purple yellow and light blue yoshis as dinos even though if you look into yoshis they arent dinosaurs so cary your wrong I WIN
@tanvach
@tanvach Год назад
Love the video, nice use of visualization!
@ZyperPL
@ZyperPL Год назад
Hey! These are three YOSHIS! Not dinosaurs!
@linkharris4472
@linkharris4472 13 дней назад
Totally true
@LUVVEOUS
@LUVVEOUS Год назад
I like this MetaPerspective solving
@JoshuaDZ
@JoshuaDZ Год назад
This is such a good way to visualize
@quinn7894
@quinn7894 Год назад
Clicked for the Yoshi, stayed for the graph theory.
@Abladicus
@Abladicus Год назад
I am always exited when he uploads
@ristopoho824
@ristopoho824 Год назад
The puzzle i heard of as a kid had a farmer, fox, chicken and a bag of corn. For some reason he wants to take the fox with him. And no it's not a pet trained fox it does want to eat the chicken. And oh boy the chicken eats fast so not leaving it with the corn. Also. The farmer needs to be on every trip, the fox is also not trained to control the raft.
@oswack
@oswack Год назад
This is a fantastic visualization! Cheers
@magfilms676
@magfilms676 Год назад
"n Santas and n dinosaurs can cross iff we have n-2 rafts" ...that would imply 2 Santas and 2 dinosaurs can cross without any raft at all
@magfilms676
@magfilms676 Год назад
or 1 Santa and 1 dinosaur can cross not only without any rafts, but with a tfar (negative raft)
@ArtimisArcher
@ArtimisArcher Год назад
The Yoshi’s Are Looking for a Meal Let’s Protect the Santa’s While Also Saving the Yoshis
@MRBFDTL
@MRBFDTL 11 месяцев назад
Yes dinosaurs are my favorite mario character
@geeteevee7667
@geeteevee7667 Год назад
8:20 every state that can be explored hazbin. (Bottom left)
@AnIDFB
@AnIDFB Год назад
Out of everything, you did Santas and dinosaurs.
@prestoncole1645
@prestoncole1645 Год назад
I’m happy Yoshi’s In this :D. Also Cool Puzzle!
@j100j
@j100j Год назад
I was playing with nice sounding chord progressions and I went to hooktheory to find if mine was already used. I proceeded to get distracted and I went to see what is the most common chord progression in A minor. I then found your more lasers and thought to myself that your profile picture was familiar. It seems I have seen some of your videos before and now I am here.
@user255
@user255 Год назад
I'm quite sure that, if Santas out number the dinosaurs, they will f up the dinosaurs for what they are. They are old and wise men.
@ben9583_
@ben9583_ Год назад
Graph theory gets a bad rap; this approach feels a lot more "right" than the guess-and-check method of searching. Also haha love the allegory
Далее
The math behind Baby Shark's viewcount #SoME2
10:32
Просмотров 363 тыс.
10 FORBIDDEN Sorting Algorithms
9:41
Просмотров 838 тыс.
Pentomino Facts
18:38
Просмотров 81 тыс.
Does my AI have better dance moves than me?
20:33
Просмотров 1,2 млн
I Made a Graph of Wikipedia... This Is What I Found
19:44
Creating my own customized celebrities with AI
14:56
Просмотров 556 тыс.
The rarest move in chess
17:01
Просмотров 1,6 млн
I Solved The World's Hardest Maze (with Code)
9:54
Просмотров 132 тыс.
Why this puzzle is impossible
19:37
Просмотров 3,1 млн
How To Catch A Cheater With Math
22:38
Просмотров 4,9 млн