How many ways to get from A to B?

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

RedBeanieMaths

RedBeanieMaths

Жыл бұрын

243,784

Пікірлер: 45
@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.
@shashankjrao4148
@shashankjrao4148 Жыл бұрын
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 8 ай бұрын
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
@princesszelda953
@princesszelda953 Жыл бұрын
Awesome videos! If you keep them kid friendly, I can share them with my students, too!
@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
@shashankjrao4148
@shashankjrao4148 Жыл бұрын
4.82!!
@Siwdvi
@Siwdvi Жыл бұрын
5.47 jeez how did he get so much in a single day
@leob69
@leob69 Жыл бұрын
I love those videos, like literally im just eating them up. Youre explaing in a really entertaining way
@greps4229
@greps4229 Жыл бұрын
Great video!
@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.
@manassart
@manassart Жыл бұрын
Great video
@suricate2964
@suricate2964 Жыл бұрын
Really nice video, thx !!
@username-ur6dq
@username-ur6dq Жыл бұрын
for anyone intrested about this, this is a classic dp (dynamic programing) problem
@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.
@asthalis
@asthalis Жыл бұрын
Brilliant ! +1 sub !
@DEMEMZEA
@DEMEMZEA Жыл бұрын
That's insane! Not the puzzle, but the fact that you said you had to sum up everything lmao
@lalimi4994
@lalimi4994 Жыл бұрын
Wow this video is very good
@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
@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
@FrankAnzalone
@FrankAnzalone Жыл бұрын
Is the 4 by 4 pascal's triangle
@colly6022
@colly6022 Жыл бұрын
this reminds me a little bit of integral images.
@lalainu5294
@lalainu5294 Жыл бұрын
interesting
@seoupyum
@seoupyum Жыл бұрын
pascals triangle :0
@lookmath4582
@lookmath4582 23 күн бұрын
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 7 ай бұрын
243784
The Vanilla Cupcake Paradox
8:11
RedBeanieMaths
Рет қаралды 5 М.
Divide 100 coins into 2 Piles with the Same # of Heads
7:01
RedBeanieMaths
Рет қаралды 9 М.
ОСКАР ИСПОРТИЛ ДЖОНИ ЖИЗНЬ 😢 @lenta_com
01:01
Homemade Professional Spy Trick To Unlock A Phone 🔍
00:55
Crafty Champions
Рет қаралды 60 МЛН
How An Infinite Hotel Ran Out Of Room
6:07
Veritasium
Рет қаралды 29 МЛН
Alice and Bob play ping pong
13:22
RedBeanieMaths
Рет қаралды 9 М.
Fractal in Desmos
2:54
The Real Calminecrafter
Рет қаралды 54 М.
How to Get Answers for Any Homework or Test
7:27
Alex Curtis
Рет қаралды 2 МЛН
Can water solve a maze?
9:09
Steve Mould
Рет қаралды 13 МЛН
How to rotate any graph by any angle
16:10
RedBeanieMaths
Рет қаралды 658 М.
How to repair slow filling toilet
7:54
skamravec
Рет қаралды 1,2 МЛН
How to rotate any graph by any angle (Part 3)
21:11
RedBeanieMaths
Рет қаралды 35 М.
CY Superb Earphone 👌 For Smartphone Handset
0:42
Tech Official
Рет қаралды 827 М.
💅🏻Айфон vs Андроид🤮
0:20
Бутылочка
Рет қаралды 740 М.
Собери ПК и Получи 10,000₽
1:00
build monsters
Рет қаралды 1,7 МЛН
YOTAPHONE 2 - СПУСТЯ 10 ЛЕТ
15:13
ЗЕ МАККЕРС
Рет қаралды 120 М.