"I can't see anyone asking you to do it by hand" well i guess my professor didn't watch your video cause here i am doing an 8x8 matrix...
@andrea19553 жыл бұрын
@@Daniel-eg1ov he might be done now
@MewPurPur3 жыл бұрын
Are you still doing it?
@markuslinke92063 жыл бұрын
did you die doing it :(
@El-ni8ph3 жыл бұрын
pls reply, we can help u :(
@gogokowai3 жыл бұрын
I think he's still working on it... Seriously going to a university for anything computer related is a joke. Most (not all) professors are stuck in the 80s/90s. For DB class I had to write a PHP app that talks to a DB. Ignoring the fact that I had to learn PHP, which is a travesty in its own right, The professor required us to print the code out and submit it. 100s of pages of code. I'm sure he didn't read it considering how fast he graded it and how many students he had. I would have learned so much and been better prepared for the workforce if he had us submit a GitHub repo. I graduated with a Masters in Software Engineering having never used Git, and every single job I've ever had uses Git. But I sure knew how to write a class in Java that handles fractions, having written that program for 3 different courses.
@shyndard4 жыл бұрын
"[because of the complexity] i can't see anyone asking to do this by hand" you don't know the math teachers in France... thank you for this clear video!
@qingouyang79136 жыл бұрын
The best explanation! I'm tired of all other tedious 30min+ lectures, which made simple algorithms so complicated...
@lijieleow71583 жыл бұрын
You need to know the why behind the algorithm and not just the how. This video is great for a quick overview/review, but to really understand the algorithm you need to spend much more time understanding why the code does what it does.
@dane-se76093 жыл бұрын
Hey Cat-pics bros
@johndoesson3 жыл бұрын
@@lijieleow7158 Agree but not everyone needs someone else spending 30 min talking about it, for some it's enough with a quick explanation and then reading the code and thinking about it themselves for a couple of minutes about how it works.
@maitreyo1373 жыл бұрын
Exactly! Exactly!
@zihanzhong9212 жыл бұрын
Your video is absolutely amazing. I made a revision to my exam in one night with the help of the videos. I really appreciate the structure of the video with an example, pseudocode and time complexity. I can access the information I want in just 3 min! They are remarkable!
@sinefinehabitarevolo7 жыл бұрын
my god this is the best explanation video for this algorithm. please make more subscribed!
@MichaelSambol7 жыл бұрын
Really glad you enjoyed it. Thanks for watching!
@TheZubata2256 жыл бұрын
I may be the wrong one here, but your explanation seems utterly insufficient (similar trend in your other videos), where you just show walkthrough of the algorithm with specific data, but do not really explain what different part means. For instance, here you did not explain what does that condition mean, why do we perform this test. All you needed to say at the beginning is that the algorithm is just repeatedly testing triangle inequality in conjunction with Bellman optimality principle (shortest paths are composed out of shortest paths).
@malharjajoo73935 жыл бұрын
@@TheZubata225 Yes, Poor explanation. There is no insight into the ordering of the for loops. No mention of why this algorithm works.
@alanwang41785 жыл бұрын
It might not be a in-depth understanding but I still think this is the best explanation on youtube, it really allows you to get that first understanding on what is happening! Thanks!
@Pieczorka5 жыл бұрын
@@malharjajoo7393 Because there is no need for it, it just shows you the most important parts in a few minutes. For some deep insights I would rather watch a lecture.
@nolanrudolph54635 жыл бұрын
Currently resolving a 6 x 6 matrix wish me luck boys
@virtuosek47635 жыл бұрын
Lucky you, i'm at an 8x8 one
@catlord695 жыл бұрын
are you finished yet ?
@yazdaspaz62404 жыл бұрын
Matej Petras give him a bit more time
@shubhambhardwaj28534 жыл бұрын
Maybe he is in last iteration will check back if it's finished or not.
@IStMl4 жыл бұрын
Did u survive it ?
@yingdawang73273 жыл бұрын
Impressive...Just 4 minutes and you made this algorithm crystal clear...
@plasticgodzilla15 жыл бұрын
A perfectly clear explanation of the algorithm. Instead of live coding in Java or anything.. It did not even feel like you were rushing.. In under five minutes! - this is art.
@techvishnuyt Жыл бұрын
have exam in 5 hours and im binging these 4,5 minute algos, man god do exist in real life thank you micheal im eternally grateful
@hamzadar20295 жыл бұрын
I have an Algorithms final in a few hours and your videos are literally saving me. Subscribed and please make more
@urmilshroff6 жыл бұрын
Dude, your under-x minute videos are insane. I understand the algorithms perfectly and am able to write good answers thanks to you!
@lucutes2936 Жыл бұрын
Yo
@gabrielstancu49865 жыл бұрын
You explained this better in 4 minutes than my uni teacher did in 30 minutes of a 2 hours lecture, thanks man!
@diya97073 жыл бұрын
"I can't see anyone asking you to do this by hand" *gasps*
@herrjorgedark4 ай бұрын
Mi Maestra si lo pide carnal
@Jkaramcs8 ай бұрын
final exam on algorithms in 6 hours, and your videos are saving my life, thank you
@helenh24423 жыл бұрын
Your short videos literally help me a lot on learning those algorithms! Very concise and straightforward presentation of going through these processes! Thank you so much!!!
@CrystalENVT5 жыл бұрын
"No one can expect you to do this by hand"... *Looks at homework assignment for last week where I needed to do this*... *Looks at exam for today and how we need to know how to do it* But in all seriousness, Thank you for the help, and keep up the good work! These little short videos do much better at explaining than some long drawn out videos do : )
@soumyadeep_bi7 жыл бұрын
Truly the simplest and best explanation for this algorithm on the internet : ) loved it!
@soojimoo7 жыл бұрын
Thanks for this! I'm finding all of your videos helpful for my algorithms course. Do you think you could make one for Johnson's algorithm? It's the faster algorithm in O(V^2 log V + VE) time that computes all the shortest paths from all vertices (same problem that the Floyd-Warshall tries to solve).
@nishantgurrapadi6 жыл бұрын
YES!! I havent found a good explanation for Johnson's yet!
@CallmeKaram6 жыл бұрын
Best Video 📹 on Floyd Warshell algo on KZbin that explains precisely in just 4 minutes. Great work sir.
@mattsupertramp65063 жыл бұрын
1:18 oh boy idk if I'm ready for the meat of the algorithm
@BayCon6327 жыл бұрын
Love that you get straight to the point. Subbed.
@TriNguyen-xi8ji3 жыл бұрын
Thank you a lot. It took me an hour reading the wiki page and I still did not get it until I see your video. Perfect explanation
@Virus-ke8xj3 жыл бұрын
Have never seen such a beautiful explanation under 5 min!!!! Thank you!!
@BB_Harunya5 жыл бұрын
concise, visually easy to understand, masterfully done, thank you
@ffatheranderson6 жыл бұрын
Thanks a lot! This is, may be, the only one adequate step-by-step explanation of this algorithm. And definitely the best one that I have found.
@vado4003 Жыл бұрын
I can't express how much i appreciate these videos
@MichaelSambol Жыл бұрын
Thank you, Vado!
@ginnyli29133 жыл бұрын
this algorithm is actually so simple and intuitive. Thanks for explanation!
@nicoleblandin32895 жыл бұрын
Im going to pass my exam because of you thank you
@jayeshborgaonkar91664 жыл бұрын
by far the best video i have seen , algo logic with code under 4 mins , amazing keep up the good work thanks
@imRJD149 ай бұрын
Bro this is really the best explanation I’ve found on internet and it’s 4 minutes 🤣
@bibomisa69992 жыл бұрын
Quality stuff right there! I know I can believe the internet at teaching more that my professors.
@toby06223 жыл бұрын
Clear explanation with intuitive animation, great work.
@Daniel-iy1ed Жыл бұрын
Better that an hour lecture from university. Thank you so much
@MichaelSambol Жыл бұрын
💪🏼
@Redart152 жыл бұрын
Oh boy you are wrong, our prof asked us to do that for 6x6 matrix.... so much fun. Great video helped alot!
@BrainDeadZombies7 жыл бұрын
I do not think I'll be doing as well in my algorithms class if not for your videos. Very clear and to the point.
@summussaer5012 жыл бұрын
You didn't explain the triple for loop, nor those variables (i,j,k) at all. Everything was clear up until that point where u just started simulating the code. Not ok, man
@iforce2d7 жыл бұрын
So to know the actual path, rather than just the cost, you would also need to store in each cell the next graph node to move to right?
@harshavardhankk189 ай бұрын
You taught me algorithms faster than any Indian guy on KZbin 😂. Even faster than my professor. Thanks.
@aanshuk26 күн бұрын
What through me off for a bit is i, j, k starting at 1 is because the graph/vertices start at 1. if you're using indices or the lowest node is 0 or another number, then it needs to start at a different number.
@MichaelSambol25 күн бұрын
Check out github.com/msambol/dsa/blob/master/shortest_path/floyd_warshall.py
@elbonkadillo6 жыл бұрын
Great video. Much easier explained than in our algorithm class.
@storiesbeneaththesurface1942Ай бұрын
thanks bro you explained it better than my grandpa
@Jekica99773 жыл бұрын
Straight to the point, short and very easily understandable 👍
@joelarsen8066 жыл бұрын
I am a huge fan of how you explain these topics! Recommendation: I think a nice last shortest distance would be JOHNSON'S ALGORITHM to show how B.F. and Dijkstra can be utilized to find shortest path by re-weighting.
@ashjosh39637 жыл бұрын
Awesome videos!!!! Crisp, to-the-point explanation and covering all important aspects. Eagerly waiting for more videos
@_equal98174 ай бұрын
Thanks for explanation
@livb41392 жыл бұрын
Love the graphical representation
@ritikchail73303 жыл бұрын
Short and well explained
@TopAAA2 жыл бұрын
I think negative weight cycles are allowed in Bellman-Ford, since it will just detect it.
@Maen9634 жыл бұрын
Very clear and concise
@alwaysisnever58966 жыл бұрын
oh my gosh that is a great explanation. It helps to figure out the code in 1 minute. Thanks alot
@thetedmang6 жыл бұрын
Hands down, best explanation out there.
@glaucoa.92143 жыл бұрын
Thank you my friend for making your video available with subtitles in portuguese.
@youssef.elmoumen Жыл бұрын
Thank you very much for your simple explanation
@hetias2 жыл бұрын
in short: if going from node A to node B is more expensive than going from node A to node C to node B, then thake that new path. A -> B > A -> C -> B. Thanks man!
@SahilKumar-pt3np2 жыл бұрын
If distance from (I to J through K) is shorter than the straight Distance from (I to J). Then Distance from (I to J) = Distance from (I to K) + Distance from(K to J).
@gabrielchu57987 жыл бұрын
Well explained! Seems to be a small mistake 0:26 it's said negative cycles ain't allowed, but for Bellman-Ford algo negative cycles are allowed if I recall correctly from my lecture.
@MichaelSambol7 жыл бұрын
Take a look at my Bellman-Ford videos: kzbin.info/www/bejne/b4GrnJ5misapf68. If you had negative cycles, the algorithm would never end! ;)
@gabrielchu57987 жыл бұрын
I think I get it! But it's just very confusing, it is called Bellman-Ford, ie, slide 14 courses.csail.mit.edu/6.006/spring11/lectures/lec15.pdf, runs on negative cycles (with detection), but can never output the shortest paths when there are negative cycles...
@MichaelSambol7 жыл бұрын
Right! You can detect negative cycles, but a shortest path doesn't exist.
@laurenbouhnik7 жыл бұрын
Correct me if i'm wrong, but you can detect infinite negative cycles in Bellman-Ford if you simply use the n'th iteration to see if anything has changed. Since it's supposed to run n-1 times, a change in the n'th iteration will indicate an infinite loop :)
@DarkFalconDF6 жыл бұрын
I know it been 11 months, but if someone want that answered: Yes, you can do that. Other way of verifying the negative cycles is: After the algorithm of Bellman-Ford is called, you need to verify all the edges: uv = edge. u = origin v = destiny dist = distance from origin if (v.dist > uv.weight + u.dist) -> there is a negative cycle.
@jirifrantal22366 жыл бұрын
Thank you! Thank you very much! :-) I have just finally understood this (after half an hour of looking at my school notes)! Once more - thank you! :-) Greetings from Czech republic. :-)
@AdminDarkraiRSK26 күн бұрын
thankyou for saving 20+ mins
@EddyFisico8 ай бұрын
This video was very good! Thank you!
@cesaraumejia7 жыл бұрын
THIS IS JUST A GREAT VIDEO. Highly recommended!
@pythonita8893 Жыл бұрын
I noticed a mistake in minute 3:10. dist[4][3] > dist [4][2] + dist [2][3] produces inf > 2
@lunai32253 жыл бұрын
still saving students lives over here :))
@IFennecYouCODM6 жыл бұрын
and my doubt was cleared in 4 minutes. thanks a lot
@hrishabhchoudhary27002 жыл бұрын
Aren't negative edges allowed in Dijkstra's? All 3 algos can work fine with negative edges. What is not allowed are negative cycles. Dijkstra's would continue forever in case of negative cycles' presence and Bellman-Ford can detect it's presence.
@maneesh15585 ай бұрын
Amazing Explanation!!!
@carlosdanielpohlod43884 жыл бұрын
Very Very Nice, hello from Brazil, thanks
@smnadim217 жыл бұрын
your videos are awesome.. more than a 2 hour class!!
@vinhnguyen30953 жыл бұрын
Nice but I wonder why it could work perfectly like that. The previous steps can support the next step even though they are not the final result. Why?
@niiquartey45006 жыл бұрын
Are you a god or something? You do this so effortlessly. Great work!
@shaileshnavale18196 жыл бұрын
Short and precise..well done
@kautukraj4 жыл бұрын
Very helpful!
@abolfazljahangir16514 ай бұрын
Awesome, thank you very much!❤❤❤
@trestenpool90454 жыл бұрын
Best explanation yet, Thank you!!
@UhelUhel4 жыл бұрын
Warshall, here I come. Thanks Micheal.
@Medvednic7 жыл бұрын
Great and simple explanation, thanks!
@sarthaksharma93225 жыл бұрын
Greatest 4 and a half minutes of my life..Great Video Man. Thanks
@miguelhuayllas14843 жыл бұрын
Thanks for the video it really help me to undertand it :D
@XenoAlbedo4 жыл бұрын
You explained in 4 minutes what my godawful professor couldn't explain in one and a half lectures.
@stephydanglades98933 жыл бұрын
i don't understand why for k = 4 we have dist [1][2] because 1 is not a predecessor of 4
@MyNameIsNotNick6 жыл бұрын
thanks for the simplicity
@foalborn7 жыл бұрын
this is really the best explanation of most of the algorithms used in transport. Do you have any videos teaching maximum flow algorithms? (flow augmenting path and preflow push algorithm) or others like Dial's algorithm, minimun schedules and stuff like that? THX a lot !
@sevilakts7 ай бұрын
Thanks. That's very helpful.
@zach990il4 Жыл бұрын
ok you can find the shortest path weight but how you can find the actual path from this number ?
@jaimesedore6436 жыл бұрын
this was an amazing explanation, thank you so much!
@samridhamanshrestha32434 жыл бұрын
You should probably mention how that three-loop formula is derived. And how this solution is actually a dynamic programming solution i.e. For each vertex k, we test whether it serves as a faster intermediary to two other nodes i and j. So dist[i][j] = min(dist[i][j], dist[i][k] +dist[k][j] ) or if k=1, i=2 and j=3, the formula asks, can we reach j from i faster using k as an intermediary.
@asd330336 жыл бұрын
Thanks, I finally understood what my professor wanted to teach us... :D And, yeah, he expects us to do this by hand...
@roshanpawar87047 жыл бұрын
Thank you so much. It really helped me understand easily.
@ProfessionalTycoons6 жыл бұрын
Your video is pure gold.
@junhuixu16414 жыл бұрын
Can you also make videos about Edmonds-karp, Hopcroft-karp and Hungarian algorithms? Your videos are fantastic!
@parthgadoya56907 жыл бұрын
Well explained in an Optimized way !
@jardelnunes63634 жыл бұрын
Such an amazing explanation!!! OMG
@Paul-qn7qv3 жыл бұрын
3:10 Shouldn't there be "-1 + 3"?
@sidharthdash8417 жыл бұрын
So nicely explained
@paritoshpandey51035 жыл бұрын
Oh man that's awesome, too short, too precise.
@danielamontecinos95586 жыл бұрын
¡Thank you soo muuch! Me ayudó bastante, saludos desde Bolivia!
@assemalbitar8069 Жыл бұрын
you are the best man...
@michaelscott85724 жыл бұрын
How do I know what the shortest path is? Because thatsÄ just the shortest connection between two vertices?
@rothenbergt5 жыл бұрын
Great video thanks for the effort and the upload!
@FutureWiredTec4 жыл бұрын
Thanks! It was explained very well!
@mignonhagemeijer37267 жыл бұрын
does anyone know how to reverse this? I need to be able to compute back to the original matrix