How many ways to get from A to B?

  Рет қаралды 13,255

RedBeanieMaths

RedBeanieMaths

Күн бұрын

Пікірлер: 44
@paulbloemen7256
@paulbloemen7256 Жыл бұрын
Reminds me of a joke. Teacher shows a big jar full of beans, and asks the pupils: how many beans are in the jar? One pupil raises his hand and answers: 372. Teacher is astonished and asks: how do you know that so fast? Pupil says: prove me wrong.
@ShanksMakesStuff
@ShanksMakesStuff Жыл бұрын
Holy you're making me love maths. This channel's gonna blow up, I'm saying it now!!
@erazemburger1153
@erazemburger1153 Жыл бұрын
It's already blowing up hard I imagine at least 20k by the end of the month at min
@porridge762
@porridge762 Жыл бұрын
@@erazemburger1153 ur month is quite long
@darkshot2019
@darkshot2019 Жыл бұрын
sadly he hasnt uploaded in 8 months and his description is currently "goodbye cruel world" or smth like that
@bigbluebuttonman1137
@bigbluebuttonman1137 Жыл бұрын
You're good at this man. Love your style, incredibly relatable.
@semurgx
@semurgx Жыл бұрын
Dynamic Programming! Wow!
@gabrielfonseca1642
@gabrielfonseca1642 Жыл бұрын
As soon as he mentioned "we just have to think about the last point" it hit me. It's ironic he mentioned not knowing how to code
@leob69
@leob69 Жыл бұрын
I love those videos, like literally im just eating them up. Youre explaing in a really entertaining way
@pikadragon2783
@pikadragon2783 Жыл бұрын
Yeah, that does seem like the kind of problem that at some point would be a lot easier to be handled by a script.
@username-ur6dq
@username-ur6dq Жыл бұрын
for anyone intrested about this, this is a classic dp (dynamic programing) problem
@manassart
@manassart Жыл бұрын
Great video
@o5-1-formerlycalvinlucien60
@o5-1-formerlycalvinlucien60 Жыл бұрын
bro why do you only have 1k subs?! Edit: 5.9k subs in 5 days. You’re popping off!
@ThsHunt
@ThsHunt Жыл бұрын
Exactly
@captcalvin2293
@captcalvin2293 Жыл бұрын
They have 3560 subs but still this video feels like it has so much quality.
@erazemburger1153
@erazemburger1153 Жыл бұрын
No worry he popping off now and has 3.8k
@ShanksMakesStuff
@ShanksMakesStuff Жыл бұрын
4.82!!
@Siwdvi
@Siwdvi Жыл бұрын
5.47 jeez how did he get so much in a single day
@It5meP
@It5meP Жыл бұрын
I actually took out paper and pencil before watching the video so don't get spoiled the answer. Over half an hour later I realise I got one sum wrong near the start and got 242002 bruhhhhh
@jostromp7380
@jostromp7380 Жыл бұрын
Imagine a city block with these streets and you want to take all possible ways to the other side
@name7692
@name7692 Жыл бұрын
it would take at least an hour, maybe even two
@Patrik6920
@Patrik6920 Жыл бұрын
..well thats an interesting problem actually... we know thers 243784 ways to get there...if we assume one block for the moment to be 1m*1m thers at a minimum 243784 meters, but thers a problem...look for example at the 1's at the edges...1,1,1,1 path but 1,2,3,4 meters to each path, the trick is to use a modified pascals triangle to find the solution instead of starting 1,1,1,1 it starts 1,2,3,4...and so on and whwn u come to a hole, instead of copying the value u add one for each block, and uses that value instead of the pascal triangle value its 25 blocks right and 14 down so 1 to 25 and 1 to 14 distance to walk [243 784 meters < walker < ( (25+14) * 243784 = 9 507 576 meters) ] a human walks on avrage 1.4m/s so between (a standard value used in city planing and so on...) 174 131s(48h 22m 11s) to 6 791 109s (78d 14h 25m 9s) ... so after 78d u seen all of the city.. (correction: u walked all possible paths) if its configured as in the video and one square is 1*1m
@gabrielfonseca1642
@gabrielfonseca1642 Жыл бұрын
@@Patrik6920 You could solve it by storing the path length at each point. All the paths to a given point will take the same length. So just multiply the number of paths by the path length at each point.
@Patrik6920
@Patrik6920 Жыл бұрын
@@gabrielfonseca1642 ..hum..elabourate...i supos u mean closest path?...not ALL possible paths (wich is enourmously greater)... als a limitation of the problem in the video (closest path constrain: u can only walk righ/down and never back a path (wich would go to infinity) ... what u describe is a nearest path agorithm if i understan u right...one that jst takes path length(distance) into account... edit: for example a simple 2 by 2 square, it is 6 possibly ways going from any point to another, and 4 possibly shortest paths that has more than 1 solution, and only 4 paths(solurtions) that has only one shortest path solution.
@greps4229
@greps4229 Жыл бұрын
Great video!
@lalimi4994
@lalimi4994 Жыл бұрын
Wow this video is very good
@DEMEMZEA
@DEMEMZEA Жыл бұрын
That's insane! Not the puzzle, but the fact that you said you had to sum up everything lmao
@FrankAnzalone
@FrankAnzalone Жыл бұрын
Is the 4 by 4 pascal's triangle
@edgar_eats_pi
@edgar_eats_pi Жыл бұрын
I learnt this at my school's mathcounts club.
@user-pr6ed3ri2k
@user-pr6ed3ri2k Жыл бұрын
2:33 WAIT I THOUGHT YOU WERE GOING TO PREDECESSOR ALL THE WAY BACK BUT I JUST REALZIED YOU CAJ USE THIS YO REDUCE TK SMALLER BLOCKES AAA
@user-pr6ed3ri2k
@user-pr6ed3ri2k Жыл бұрын
The upper and left lines are all just 1
@user-pr6ed3ri2k
@user-pr6ed3ri2k Жыл бұрын
Pascal triangle square be likw
@user-pr6ed3ri2k
@user-pr6ed3ri2k Жыл бұрын
5:28 a
@asthalis
@asthalis Жыл бұрын
Brilliant ! +1 sub !
@colly6022
@colly6022 Жыл бұрын
this reminds me a little bit of integral images.
@suricate2964
@suricate2964 Жыл бұрын
Really nice video, thx !!
@seoupyum
@seoupyum Жыл бұрын
pascals triangle :0
@lalainu5294
@lalainu5294 Жыл бұрын
interesting
@lookmath4582
@lookmath4582 5 ай бұрын
Your a mathematician you shouldln't be involved in such problems or not most of the time at least focus about the main structure of math which is analysis and set theory and geometry best of luck those are to some extent are only mere puzzles.
@mtahirbu
@mtahirbu Жыл бұрын
Just use your sound I cant watch with this sound please dont male your noise like that If you dont want to talk I can talk for you
@Martykun36
@Martykun36 Жыл бұрын
weird ass comment lol
@mtahirbu
@mtahirbu Жыл бұрын
@@Martykun36 his sound and you are weird
@vinita3890
@vinita3890 Жыл бұрын
243784
How To Fix A Caroma Toilet that won't stop flushing
5:26
My Bonzer Channel
Рет қаралды 73 М.
How to: Toilet valve replacement
8:51
AtlantaHabitatforHumanity
Рет қаралды 1,5 МЛН
They Chose Kindness Over Abuse in Their Team #shorts
00:20
I migliori trucchetti di Fabiosa
Рет қаралды 12 МЛН
ТВОИ РОДИТЕЛИ И ЧЕЛОВЕК ПАУК 😂#shorts
00:59
BATEK_OFFICIAL
Рет қаралды 4,6 МЛН
The Ultimate Sausage Prank! Watch Their Reactions 😂🌭 #Unexpected
00:17
La La Life Shorts
Рет қаралды 6 МЛН
Мама у нас строгая
00:20
VAVAN
Рет қаралды 6 МЛН
Alice and Bob play ping pong
13:22
RedBeanieMaths
Рет қаралды 9 М.
Boring Geometry Problem
8:19
RedBeanieMaths
Рет қаралды 12 М.
Some Minecraft Jigsaw Stuff
8:21
Elektrika
Рет қаралды 231
Divide 100 coins into 2 Piles with the Same # of Heads
7:01
RedBeanieMaths
Рет қаралды 9 М.
Cat | 13 Equations 13 Animals | EP1 | Desmos | The Math Grapher
4:53
The Math Grapher
Рет қаралды 6 М.
How to rotate any graph by any angle (Part 2)
17:35
RedBeanieMaths
Рет қаралды 73 М.
How An Infinite Hotel Ran Out Of Room
6:07
Veritasium
Рет қаралды 30 МЛН
They Chose Kindness Over Abuse in Their Team #shorts
00:20
I migliori trucchetti di Fabiosa
Рет қаралды 12 МЛН