OMG that was amazing i was desperate to understand this thing cause there are only 4 hours till my final and then i found this tutorial when i was revising
Thanks a Lot !! I have Exam tomorrow too !! This algorithm has been a headache to me for a long time untill I saw and understood your very good leçon a few seconds ago ! Thanks again Sir !
Wow thank you! I was struggling to understand how I might write this in java code, but this video explained It in such a way that I can now easily figure it out. This is the best explanation I've seen of Dijkstras algorithm.
Thanks, this helped me. I have to specify that this is no the Djikstra original algorithm: this is implemented choosing the min vertex (with a min heap), the original algorithm choses the first node of a queue. Anyway, it does not change the core buisness :) Thanks!
Thanks a lot. I'm practicing to my exam in Computer Networking where routing algorithms are very essential (at least for the part about DNS). This video helped explaining a lot. Thanks!
Is there a way to easily identify all the shortest paths from A once you are given only the completed table? Like A -> B -> F -> C -> D -> whats next H or G, how to decide without the graph?
@manojsam79 You only need the last row. Begin at the vertex you're interested in, look up its parent (the node that's written under the optimal cost), than look up the parent's parent etc. Proceed until you reach the starting node. Reverse the list of nodes to get the shortest path.
Sorry, one question: How do you know that the trips are the shortest path already? When you highlight B , in the first iteration, why dont you assume that D and G have been found aswell already?
@crazyminti I know this is quite late but I can answer. You automagically know that the smallest of all the paths you have found are the shortest path, simply because its the smallest of all the paths (useless sentence, i know). I assume you were thinking that maybe there was another path that took 2 iterations to get there that could possibly be faster. This is impossible, because the only other vertices you can get to are already a longer path.
In case there are 2 paths with the same minimum cost which node will we choose as next? For example. Lets say there is a path from A to E that costs 20. We have A->B costing 20 and A->E costing 20. Which one will we choose??
@elgonost You could choose a random path, or the path given by the algoritm checking for the lowest number. I suspect you could enhance the algoritm to track both paths in that case. Now it only finds the shortest path to a point, if you rewrite the algoritm to track both and continue further steps seperatly, you'd get an algoritm that gives all shortest paths to all points.
@BlastedNation shortest path to F is 30 and via B. As shown in the chart. You can't go a,b,c,d,e,f on this, as there are one way routes, and no way to get to E. If you want to know that on a different kind of map, just add up the values?
question, i like your video i was wondering if u can help me with a question i came up with an idea lets say there are two pc's ,in pc 1 there are three box's that are out putting letter from a-z box=f box=r box=w the next set of boxs box=h box=l box=x box 2 a-z box-3 a-z is it possible to see what pc 1 is out puting then take that info and manually in put it into pc 2 then could pc 2 know where pc 1 is going and what pc 1s next out put would be before it comes out
@nihalgesudraz Yes, but then we'd know the shortest path to each vertex from E, instead of from A as we calculated in the video. So, it depends on which information you actually want. ;)
wow, now if math teachers could find ways to be this straightforward and concise in their teaching, we'd all be astrophysicists by now. Nice explanation
very nice .. i like
MohtadiElhajj 1 hour ago
A very good videos, I understand really now.
Thank you
lilnaable 1 day ago
really helpful. thanks!
zlotedziecie 3 days ago
while studying i accidentally discovered that playing this video and the following chillout track sounds really good!
watch?v=o4LsDPdD4T4
subverto 3 days ago
thanks!
xcho20 4 days ago
love ur voice!
juvanjan 1 week ago
thanks a lot, Is this "Dijkstra’s shortest path algorithm" ? or only Dijkstra's Algorithm? are they the same or different things?
rickycax 1 week ago
183,000 CS dorks
cSharpIndonesia 1 week ago
You sir, are a gentleman and scholar... Thank you very much!
Drobikus 1 week ago
Comment removed
8906131108 1 week ago
very well explained! :-)
LSAeindhoven 1 week ago
OMG that was amazing i was desperate to understand this thing cause there are only 4 hours till my final and then i found this tutorial when i was revising
thnq so much you saved me <3<3<3
nafnaf6002 1 week ago
Now I finally understood it... Thank you!
alexstapf 2 weeks ago
nice !
1komanche1 2 weeks ago
Greetings from STUBA FEI :D
TheZelovocaR 2 weeks ago
Dude. Thank you so much. This helps me a LOT, I have a final tomorrow!
MasterGamingLion 3 weeks ago
thanx so much i have a final exam tomorrow :(( you help me thanx ^^
Mo00odyKsa 4 weeks ago
good job bodies!
bytheocharis 1 month ago
thnk u so mch... have xams in 8 hours :P
.
thnx 2 u... will at least score 5 marks for Dijkstra algo :D
saurabh1qaz2wsx3edc 1 month ago
@saurabh1qaz2wsx3edc lol,
sherifportrait 2 weeks ago
Thanks, great explanation.
Mr999danger 1 month ago
thank you :)
fatalerror177 1 month ago
thank you!
rahulm92 1 month ago
thanks a lot, i have exam in next 1 hour nd it helped me very much........:)
5nawneet5 1 month ago
Thanks a Lot !! I have Exam tomorrow too !! This algorithm has been a headache to me for a long time untill I saw and understood your very good leçon a few seconds ago ! Thanks again Sir !
anasfcb 1 month ago
I second that life saving.
JaroneMcCorkle 1 month ago
I have an exam tomorrow and you have just saved my life! Thanks!
UnrealLotus 1 month ago
good...
parikshitcs 1 month ago
too gud thnx a lot!..it really helped me a lot!..
raviharshil27 2 months ago
Wow thank you! I was struggling to understand how I might write this in java code, but this video explained It in such a way that I can now easily figure it out. This is the best explanation I've seen of Dijkstras algorithm.
ffletcherr 2 months ago
more vids plz ... you explain very well
Dheedhify 2 months ago 2
LOOK AT GOD!!!
redhaitianz 2 months ago
This comment has received too many negative votes show
U suck !
bigskipy 2 months ago
such a good explanation. THANK YOU!
sskcn 3 months ago 2
Awesome
vimarshk 3 months ago
Awesome, Exam later today and was totally blanking on Dijkstra algorithm
Thanks heaps
darkcarney1 3 months ago
Thank you! Thank you! Thank you!
Lagonz2000 3 months ago
YOU ARE MY HERO! YOU SAVED MY ASS !
IsNgRt 3 months ago
good job
orb90210 3 months ago
I really like this notation. Thank you!
CGagnon5 3 months ago
Why do you have ratings disabled? It makes me think the video will be bad.
Ilikemustard 3 months ago 11
thanks
dagn28901 3 months ago
Awesome, thnaks man.
elvircrn 4 months ago
whenever you use the yellow highlighter i keep thinking it's gonna smudge the black ink lol
MultigrainPie 5 months ago 2
Thank you so much. It completely helped me understand this.
Nancybabe94 6 months ago
awesome explanation..very clear..hoping for more uploads.. :)
gangsterpj 7 months ago
Thank you very much!
MommehTommeh 7 months ago
Very nice! -- quick question: how did you create the video? Love the hand-written style! Looks like NoteShelf on the iPad.
rebcabin 7 months ago
well explained. thanks!
masterchief9064 7 months ago
very helpful video..I learned a lot! tnks
MsKoala104 7 months ago
Thanks, this helped me. I have to specify that this is no the Djikstra original algorithm: this is implemented choosing the min vertex (with a min heap), the original algorithm choses the first node of a queue. Anyway, it does not change the core buisness :) Thanks!
MrSyKoM 7 months ago
alright :) good stuff, build my c++ dijkstra algorithm on this :)
HierisBestand 7 months ago
This has been flagged as spam show
Collection of Most frequently asked interview question: anandtechblog.blogspot.com/
algoforyou 7 months ago
This has been flagged as spam show
this is very helpful...do refer it..
gauravsahani07 8 months ago
this is very helpful...do refer it..
gauravsahani07 8 months ago
thanks
AbdullahBogamy 8 months ago
Thanks Friend but what would be the final answer to it,
would there be some sequnce of verices as answer.
Somebody plz answer i m havin my exam tomorrow..
thanks
anasazeemyt 8 months ago
daj lajk ak si tu z FI MU :D
andend6666 8 months ago 58
@andend6666 thumb-whore :P
richardhierweg 8 months ago
@andend6666
FIIT STU :D
fr6nco 2 months ago
is this the same as shortest path length?
ssjg0ten 8 months ago
@ssjg0ten
This will give you the shortest path. To get the length of that path, sum the edges used in it.
CraigHerndon2009 8 months ago
COMPUTER SCIENCE UCD !!!
stevoo911 8 months ago
Very good explanation. Thank you!
KuramaYoko10 8 months ago
Very helpful video.
baconhunter4567 9 months ago
Awesome. This was extremely helpful. Thank you!
runzombies 9 months ago
Thanks a lot. I'm practicing to my exam in Computer Networking where routing algorithms are very essential (at least for the part about DNS). This video helped explaining a lot. Thanks!
starefossen 9 months ago
^________^
plugantz 9 months ago
awesome
ddgens 9 months ago
awsome
ddgens 9 months ago
Is there a way to easily identify all the shortest paths from A once you are given only the completed table? Like A -> B -> F -> C -> D -> whats next H or G, how to decide without the graph?
manojsam79 9 months ago
@manojsam79 You only need the last row. Begin at the vertex you're interested in, look up its parent (the node that's written under the optimal cost), than look up the parent's parent etc. Proceed until you reach the starting node. Reverse the list of nodes to get the shortest path.
E. g. the shortest path to H is
H, C, F, B, A
reversed, that is
A, B, F, C, H
viharsarok 9 months ago 3
@viharsarok Thanks dude, I was a little confused.
CleanRapMusic 9 months ago
Thank you very much! That helped me a lot!!
3dator 10 months ago
Thank you so much. My textbook is super vague on this, and now I finally understand.
U0ykcuf 10 months ago
lil help..?
chriskenward 10 months ago
This has been flagged as spam show
I don't have a clue what you're on about...
chriskenward 10 months ago
*NOW* I understand!
ghowe1979 10 months ago
@allensugar ! doesn't mean factorial and your mother was a hamster
thatAdamskid 10 months ago
thanks
miljkod 11 months ago
Just wanted to thank you profusely. And also to say this is my first actual youtube comment. Hello world!
thatAdamskid 11 months ago
@thatAdamskid debug error: hello world factorial undefined
allensugar 10 months ago
What's the software you're using? Btw, nice tutorial!
tuntuni1000 11 months ago
thanks for a brilliant video.
avinashmeda 11 months ago
thank you sir
madhatter133 11 months ago
i fucking like!?!?!? FINALLY someone who Explains!
qwertz4you 11 months ago
isn't this greedy algorithm used for this particullary problem with graphs?
criticalkasuba 1 year ago
Thanks very much i have Exam tomorrow and it's helped alot (^_^)
moooozy 1 year ago 46
@moooozy ip!
2808879 1 month ago
thanks, very clear explanation
harryhaeck 1 year ago
thanks.
bharatraturi 1 year ago
fantastic one. i had been trying to understand this for a long time but this video really took very few of my time to make me understand
bharatraturi 1 year ago
Any idea where I can find the correctness proof? I was always curious about it, but never found it.
Gretgor666 1 year ago
This is the simplest use of Dijkstra algorithm and the best explanation I have ever seen!!! Thank you so much for making this video!
ytName2009 1 year ago
thank you sir.
lisagibbon 1 year ago
thank you very good tutorial , clear explanation !!!
xxyuri 1 year ago
Thi vid makes it very easy to understand the algorithm.
Thanks a lot =)
silversvartnad 1 year ago
thanks it helped alot
hsnan009 1 year ago
Great video, thank you!
AndykeMusic 1 year ago
You just saved me for my final exam! This is the only problem I had trouble with. Thank you!
Lonarl 1 year ago
Great Video.... Awesome
koundi1234 1 year ago
Sorry, one question: How do you know that the trips are the shortest path already? When you highlight B , in the first iteration, why dont you assume that D and G have been found aswell already?
crazyminti 1 year ago
@crazyminti I know this is quite late but I can answer. You automagically know that the smallest of all the paths you have found are the shortest path, simply because its the smallest of all the paths (useless sentence, i know). I assume you were thinking that maybe there was another path that took 2 iterations to get there that could possibly be faster. This is impossible, because the only other vertices you can get to are already a longer path.
PatRevenant 10 months ago
awesome video!!! quick learning!!!
adikelkar4 1 year ago
Excellent video...thank you very much
arnab18 1 year ago
Excellent video...thank you very much
arnab18 1 year ago
This has been flagged as spam show
Excellent!!! you made it really easy to grasp in 10 minutes than a full class lecture. Thank you very much.
markaawi54 1 year ago
Excellent!!! you made it really easy to grasp in 10 minutes than a full class lecture. Thank you very much, keep up the good work.
markaawi54 1 year ago
helped a lot, managed to learn more in 10 minutes with your explanation, than with my prof's lecture that took 3 hours
lanoche 1 year ago
Thank you very much for this video
anjanavdas 1 year ago
This is much better than my text book explanation
Tgasparian 1 year ago
Thank You
Really Great Video
ahmed172006 1 year ago
who is this? Paul Stupin?
szamoransky 1 year ago
thank you
sutanug 1 year ago
Thank you -- awesome explanation! I'm needing to implement the algorithm, and this helps tremendously!
lizard2728 1 year ago
Thanks for explaining this so clearly.
Sparuuto 1 year ago
I'm confused about H and G..
Johannady 1 year ago
Comment removed
Johannady 1 year ago
Thank you, I just had to implement Dijkstra's algorithm and I'd have been lost without a good explanation.
VanAshkevron 1 year ago
You are doing it wrong pederas!
rinolex 1 year ago
GREAT!!!! THANK U VERY MUCH....
sarathmsm1 1 year ago
great work!!!
really easy to understand...
TheAvinashviru 1 year ago
Hi thanks for this videp.I am student from BITS.This one is too good
judearasu 1 year ago
Perfect! Thanks!
TheSciencesite 1 year ago
Oh man... So it's kind of like Prim's Algorithm, but not?
anzin74 1 year ago
This algorithm is so annoying, thank you for making it more clear than the textbook.
ghostmonkeys 1 year ago
Thank you this is so much more clear than my text book
berardi1111 1 year ago
Thank you. It was easier than I thought!!! :) And you explained everything perfect, indeed :)
asda110knm 1 year ago
great! thx man! this helped me alot ^^
TCM88 1 year ago 2
This doesn't work.
RaggedRooster 1 year ago
@RaggedRooster This is mathematics, you're going to have to prove your assertion.
imorio 1 year ago 2
In case there are 2 paths with the same minimum cost which node will we choose as next? For example. Lets say there is a path from A to E that costs 20. We have A->B costing 20 and A->E costing 20. Which one will we choose??
elgonost 1 year ago
@elgonost You could choose a random path, or the path given by the algoritm checking for the lowest number. I suspect you could enhance the algoritm to track both paths in that case. Now it only finds the shortest path to a point, if you rewrite the algoritm to track both and continue further steps seperatly, you'd get an algoritm that gives all shortest paths to all points.
imorio 1 year ago
Comment removed
kkbalaji08 1 year ago
Comment removed
kkbalaji08 1 year ago
GREAT video! Thanks so much, super easy to follow every step
waslap 1 year ago
Great Video. Easy to understand. Thanks for sharing.
safyanshah 1 year ago
it was presented in an easy way to understand. thank you very very much!
alicektn 1 year ago
Great Video!
BetrayB3 1 year ago
If u want to know what's the shortest path between A and F, for example A,B,C,D,E,F... how do you get that info from there?
BlastedNation 1 year ago
@BlastedNation shortest path to F is 30 and via B. As shown in the chart. You can't go a,b,c,d,e,f on this, as there are one way routes, and no way to get to E. If you want to know that on a different kind of map, just add up the values?
TheAustiniho 1 year ago
what a great video!! i could understand noww!! thx a million to whoever make the video!!!
pinQ121293 1 year ago
where is the path? no path... you got there? and what?
slyzermendes 1 year ago
yeah it was very helpfull for my exam. I was not able to undestand it without and example and practise. .)
joehovado 1 year ago
Awesome vid might pass my Data Structures and Algorithms exam now!
nerzuhl182 1 year ago
Comment removed
bangalorebully 1 year ago
Excellent, clear n concise
Andrd110 1 year ago
Thanks for this clear illustration and explanation. Good Job.
nawkwan 1 year ago
Einmyria loves you :D
EINMYRIA1 1 year ago
Can I ask a question?
What is the meaning of RELAX?
And Thank you very much for your video.
It helps me a a lot.
You are really a good teacher :)
PaTTaMoNE 1 year ago
thank you, i have a test about it tomorrow :)
Homer149 1 year ago
thank you
hasanda5555 1 year ago
This has been flagged as spam show
manattan342 1 year ago
So we start from any arbitrary point. But what happens if we start from E? That way, we'd end up covering E too, isn't it?
nihalgesudraz 1 year ago
@nihalgesudraz Yes, but then we'd know the shortest path to each vertex from E, instead of from A as we calculated in the video. So, it depends on which information you actually want. ;)
QauNuckShin 1 year ago
excellent! very patient and very clear.
juggleninjaguy 1 year ago
very helpful! Thank you
TheAndrey 1 year ago
wow, now if math teachers could find ways to be this straightforward and concise in their teaching, we'd all be astrophysicists by now. Nice explanation
Masenken 1 year ago
thanks
yendor112 1 year ago
thank you!!! it's so clear and concise
imjustbored24 1 year ago
this is the best explanation of Dijktra that i ever seen in the internet, thanks a lot :)
zelinkgan 1 year ago
Well done, excellent description. But why no rating?
DavidMTRutten 1 year ago
Awesome
TheSongton 1 year ago
absolutely perfect! Thank you so much...
LarryKingLui 1 year ago
awesome..........
gurindermonu 1 year ago
Thanks a lot, this will help me with my test next Tuesday. :)
Nictron80 1 year ago
Nice video, thank you very much !
SteelXManGER 1 year ago
awesome
azoth23 1 year ago
Thank you so much friend,it is really a great job.
I really appreciate people who like to share their knowledge
kabushalha 1 year ago
ur graph example did everything.:) all exceptions were in that graph thx for sharing
mikydutzaa 2 years ago
nice! now i understand for my exam, thanks :)
AndiTheBest 2 years ago
great to learn what makes OSPF possible
johndoe1893 2 years ago
wow i have been searchin through my skripts and through wiki to learn that stuff. but that was the best explanation by far! good job and thank you!
ocb2112 2 years ago
Thanks, u spoke and wrote with great clarity.. done me a favor today :)
mightyrsm 2 years ago
So well explained that my Grandma understood it!
Ben1220 2 years ago 2
Thank you, you are amazing! =D
dikpersoon 2 years ago
Awesome job! I appreciate it!
Buuuuurpz 2 years ago
thank you very much!!!!!
jiransilhan 2 years ago
Very good job, good explanation, and good use of pictures to help illustrate!!!
symb09 2 years ago
thanks!!!!!
uesful!
wendyhiggs 2 years ago
I've got a test about this tomorrow, now I completely get it, thanks!
EvM18 2 years ago
I love you right now ha ha
sonex07 2 years ago
Thank u VERY much!
Rahim4815162342 2 years ago 2
that was quite helpful for my C++ class, thanks!
sahaskatta 2 years ago
thank you so much
and2dude 2 years ago