Тёмный

Graphs: Dijkstra's Algorithm 

distanceedjohn
Подписаться 2,8 тыс.
Просмотров 1 млн
50% 1

How to find least-cost paths in a graph using Dijkstra's Algorithm.
This video is distributed under the Creative Commons Attribution 2.5 Canada License.
creativecommons.org/licenses/b...

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

 

1 апр 2008

Поделиться:

Ссылка:

Скачать:

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

Добавить в:

Мой плейлист
Посмотреть позже
Комментарии : 428   
@thodap1
@thodap1 9 лет назад
Excellent explanation, I just passed an exam because of this video, god bless you!
@ArwensarYunikoCreations
@ArwensarYunikoCreations 8 лет назад
you explained 1 semester in 10 minutes
@dvorak2676
@dvorak2676 7 лет назад
what school and what year ?? wtf
@ammadahmed8811
@ammadahmed8811 7 лет назад
30 minutes of my Data Structures and Algorithms lectures. I think you belongs to mid of 20th Century
@Vrbik15
@Vrbik15 7 лет назад
fuck your school then
@tianyuchen1802
@tianyuchen1802 7 лет назад
We just explained that for 30 minutes,elps...
@ashishnegi3848
@ashishnegi3848 6 лет назад
is it so?? advanced? we are studying this in our 3rd sem and it comes of only 8-10 marks...it's an average level of problem.
@kingofwebguru
@kingofwebguru 10 лет назад
Short and easy to understand. Great job. Hate books that spend pages over pages that make you want to burn it all.
@Athanazeus
@Athanazeus 10 лет назад
that's how you squeeze an hour of course into 10 mins
@Vineyverma
@Vineyverma 10 лет назад
Very well explained. Explaining complex things so easy is really an art. You are an artist. Thank you and Good wishes to you.
@GtaRockt
@GtaRockt 8 лет назад
thank you! My Uni professor just explained this in such a complicated way.. and you do it within 10 minutes in such an easy way! you are the best, I love you.
@volrath__
@volrath__ 9 лет назад
These have been really good for revising for my Data Structures and Algorithms exam today! thank you :)
@mostafaeldeep7539
@mostafaeldeep7539 8 лет назад
Thanks alot man I passed my exam last year because of this video , thanks from egypt .
@euclid9492
@euclid9492 2 года назад
This one was very helpful. The other video I watched gave me the impression we chose the new vertex from the list of unvisited adjacent vertices because the graphs were too simple. This one was complex enough (having h have only one path leading in) that it made it clear we are choosing the next vertex to check just from the list of unvisited vertices. Thank you.
@4ourTimber
@4ourTimber 10 лет назад
Explained much better than my lecturer! Thanks!
@joetron5114
@joetron5114 12 лет назад
This is the best explanation for Dijkstra's that I have seen on the net. I was having a hard time with this algorithm until I saw it explained like this. It helped me finish my project. Perfect!
@me-zb7qm
@me-zb7qm 5 лет назад
This video is more than 10 years old, yet still so useful. Going into exams with more confidence after watching your explanation, thank you!
@pratapbhanusolanki6613
@pratapbhanusolanki6613 9 лет назад
An awesome explanation with a great example. You have covered all of the possible trickiest cases. Thanks a lot :)
@ddd222444
@ddd222444 10 лет назад
Amazing man , really thank you, I have a final exam tomorrow and your video and easy explaining was too helpful for me , Keep on
@TheRuinedUniverse
@TheRuinedUniverse 8 лет назад
I like it! I'm going to pay him a visit in the Bath House, in Novigrad, I believe congratulations are in order!
@vojtechjanku2534
@vojtechjanku2534 7 лет назад
Yes! Finally someone made a Witcher reference. I was browsing xkcd and suddenly "Dijkstra's algorithm" came out of nowhere. I was like "What sorcery is this??"
@TheRuinedUniverse
@TheRuinedUniverse 7 лет назад
Vojtěch Janků Ahaha 😂😂
@AlexWard94
@AlexWard94 10 лет назад
Incredibly helpful video - completely ironed out my confusion with this topic! Thank you! :D
@wendygal6910
@wendygal6910 7 лет назад
You rule! you are the only exapmple like this put there! and Ive been looking for like 2 hours. Thank you :)
@gregorygofman1155
@gregorygofman1155 10 лет назад
Very nice, I think you saved my mark for this semester. Cheers from Russia
@bharatraturi
@bharatraturi 13 лет назад
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
@PotionDweller
@PotionDweller 12 лет назад
Thank you so much, this was fantastic for clarification. Watched two of your videos so far and they've been very well done.
@ragnarokl3923
@ragnarokl3923 6 лет назад
Thank you very very much. You explained it well and I understood it well. My teacher didn't haven't taught us this (as far as I remember), but gave us an assignment which we have to use this method to solve (it said so in the problem, as in we have to specifically use this method). So I'm really really thankfull for this video. Once again, thank you.
@AleksandarGeyne
@AleksandarGeyne 11 лет назад
Really helped, man !! I watched this video an hour before my exam, went there and nailed it !!! :D
@NoorAhmedAboiye
@NoorAhmedAboiye 13 лет назад
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.
@arngorf
@arngorf 11 лет назад
This is absolutely brilliant. Just what I needed! Thanks!
@lanesetrimmingham3331
@lanesetrimmingham3331 6 лет назад
I don't leave comments, but I had to say a job well done with this explanation. Just perfect!!
@janashafi6674
@janashafi6674 8 лет назад
Soo simple and easy way of exaplaining. Hats OFFF
@oguzhangoller697
@oguzhangoller697 7 лет назад
Best explanation so far, Great Work !!
@lizard2728
@lizard2728 13 лет назад
Thank you -- awesome explanation! I'm needing to implement the algorithm, and this helps tremendously!
@cellardoor8943
@cellardoor8943 8 лет назад
nice man ! i was trying to understand what " vertex relaxation " was and i got it from your video
@ocb2112
@ocb2112 14 лет назад
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!
@nafnaf6002
@nafnaf6002 12 лет назад
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
@ThisaraPinto
@ThisaraPinto 13 лет назад
You just saved me for my final exam! This is the only problem I had trouble with. Thank you!
@rene13cross
@rene13cross 10 лет назад
This must be one of the only 16:10 vids on RU-vid :D Thanks for a great explanation btw
@kamoroso94
@kamoroso94 8 лет назад
I'm glad I found this video. I'm working on a project for class that requires this algorithm.
@nawkwan
@nawkwan 14 лет назад
Thanks for this clear illustration and explanation. Good Job.
@amizan8653
@amizan8653 11 лет назад
Thanks a lot for posting this, it makes perfect sense now
@noobdevtutorials50
@noobdevtutorials50 6 лет назад
Understand it without any difficulty.Thanks man.
@semifuntastik
@semifuntastik 15 лет назад
thank you very much amigo, your time and effort is greaty appreciated
@anasfcb
@anasfcb 12 лет назад
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 !
@graysonwebb2018
@graysonwebb2018 9 лет назад
Really well explained! And easy to remember. Text books should teach this way of doing it, much more pedagogical.
@nikkei5410
@nikkei5410 8 лет назад
Best Explained I've ever seen.
@annevyner
@annevyner 11 лет назад
Thank you soo much i had finals 3 hrs later, i just needed to und this part and im done, Thanks to you u saved hours of mine. Keep it up!
@dheerenr
@dheerenr 7 лет назад
Thank you soo much, by far the best explanation ive found :-)
@elenimoscha8425
@elenimoscha8425 10 лет назад
That's been GREAT help! Thanks :))
@Muuip
@Muuip 16 лет назад
Great explanation! Thank you for posting.
@Zerpentile93
@Zerpentile93 10 лет назад
Wtf. Didn't know it could be explained so easily. Thanks!
@JoeBuza
@JoeBuza 10 лет назад
Can you believe this is a 5 year old video? Good work mate
@sumeyayenzaismael5727
@sumeyayenzaismael5727 6 лет назад
kkkkkk
@leggermentesara
@leggermentesara 6 лет назад
Now it's 10 year old 😱
@AlexGomez-rv2ny
@AlexGomez-rv2ny 5 лет назад
Can you believe that your comment is 4 years old?
@vim1729
@vim1729 5 лет назад
Hiii
@iam_topg
@iam_topg 4 года назад
its 11 years now lool
@preritdatta
@preritdatta 15 лет назад
God Bless u made it as simple as a childs game!!! Thanks to you,I can now score well.Thanks a lot man!!!!! keep posting!
@nansygnr
@nansygnr 6 лет назад
Thank you so much for this video! So helpful!
@towhidskynet
@towhidskynet 8 лет назад
I love your explanation about algorithm. what is your youtube channel ?. your explanation on BFS and DFS destroyed my 15 year old fear about Graph problems. you explain things 1000 better than a Professor of MIT. Thank you !!!
@ComputerScienceExplained
@ComputerScienceExplained 8 лет назад
+Mubeen Ali pretty sure he was watching open courseware and was confused by a university presentation that explains theory as well...
@ervinzhou8251
@ervinzhou8251 6 лет назад
I mean I thought the MIT lecture guy explained it pretty well..
@travolta91
@travolta91 11 лет назад
I'' be sitting for Data Structure final exam paper in 3 days time.. You just saved my life!!~ :) :)
@kessianepomuceno
@kessianepomuceno 10 лет назад
It was amazing! Really thank you :D
@JoshMonsterTheDumb
@JoshMonsterTheDumb 10 лет назад
This helped soo much. Thanks for posting this video.
@HussainMiah
@HussainMiah 11 лет назад
That was a really good video, thank you so much I found this really confusing in the beginning but this really helped :)
@mehrdadsh9190
@mehrdadsh9190 8 лет назад
Thank you very much for this! It was great!
@stefanospolo
@stefanospolo 11 лет назад
thanks a lot... it realy helped me understand how the algo works
@max29297
@max29297 15 лет назад
Now to find other paths, for example, as you said, D to H or H to G, you use the same method that the instructor used in this video. Notice that the instructor started with A - this was his starting vertex. To find a path from a vertex other than A, simply use the same method starting with that vertex instead (for your problems, D or H respectively) Hope all of this helped! :)
@syedhamzah3324
@syedhamzah3324 9 лет назад
A very good explanation, very helpful for my exam!
@juggleninjaguy
@juggleninjaguy 14 лет назад
excellent! very patient and very clear.
@Lamany34
@Lamany34 7 лет назад
I love you this helped me so much.
@imjustbored24
@imjustbored24 14 лет назад
thank you!!! it's so clear and concise
@RoyalSwish
@RoyalSwish 13 лет назад
This algorithm is so annoying, thank you for making it more clear than the textbook.
@CGagnon5
@CGagnon5 12 лет назад
I really like this notation. Thank you!
@karishmazsweblog5561
@karishmazsweblog5561 8 лет назад
u r awesome .. luv ur teaching u r always to da point .. tada
@siyuzhou7512
@siyuzhou7512 7 лет назад
Thank you for posting it!
@ahmetturan4783
@ahmetturan4783 10 лет назад
Thank you. You explained pretty easy to understand.
@runzombies
@runzombies 13 лет назад
Awesome. This was extremely helpful. Thank you!
@lanoche
@lanoche 13 лет назад
helped a lot, managed to learn more in 10 minutes with your explanation, than with my prof's lecture that took 3 hours
@AbyssenTheHoly
@AbyssenTheHoly 12 лет назад
Dude. Thank you so much. This helps me a LOT, I have a final tomorrow!
@Masenken
@Masenken 14 лет назад
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
@JohnSmith-hn6kv
@JohnSmith-hn6kv 6 лет назад
This is the 3rd algorithm you've taught me!
@SPyoutube42069
@SPyoutube42069 11 лет назад
a quite nice visual explanation, good stuff
@U0ykcuf
@U0ykcuf 13 лет назад
Thank you so much. My textbook is super vague on this, and now I finally understand.
@c.harris7823
@c.harris7823 5 лет назад
This is an outstanding video. The only example or scenario that seems to be missing is how to manage/make a decision when you have two (2) edges from the same node (so two different path options from the same node) that cost the same...e.g. going from F to C or from F to D and they both cost 40.
@kristijanceple6026
@kristijanceple6026 5 лет назад
Note I'm just a student practising this, so I'm not sure if it's correct but seems to have worked and made sense, at least for me so far. But still take it with a massive grain of salt, and if somebody could correct me that'd be great choose either one, just make sure it's the shortest one or among the shortest routes as calculating using shortest routes is the whole point of the algorithm. Also if to a certain node you have got 2 paths of the same length, just write something like 60, (A, D) down into the table. For example, if both A and D lead to E at a cost of 60 each, write 60, (A, D) under E. Then you can pick either one, the point is just to cover all the nodes.
@KuramaYoko10
@KuramaYoko10 13 лет назад
Very good explanation. Thank you!
@colonelbastian6036
@colonelbastian6036 9 лет назад
Best dijktra demo. evar
@TheSyncan
@TheSyncan 11 лет назад
B:20, C:40, D:50, E:N/A, F:30, G:70, H:60. For clarity, ignore the "small letters" under the numeric line values; they represet the "via node". Each line value from left to right aligns with each Goal Node's "main column", starting with B (focus on the letters written in blue at the top). That stated, to get the shortest path from A to Goal n: read *only* the numerical values on the final line (#7). (first value is for B .. last value is for H).
@tookieblademcfly
@tookieblademcfly 11 лет назад
Really great video! Very simple and clear, and now I understand :D
@MuchKnowledge
@MuchKnowledge 10 лет назад
That was amazing. Thanks.
@darrylbil
@darrylbil 7 лет назад
AWESOME !!!!! U SIR JUST SAVED A LIFE
@theanger5930
@theanger5930 5 лет назад
All examples i found on YT start from the vertex a (the very first vertex) and go to the z(the last one that is located last on the right). What if the starting point is a middle vertex? Shall we go through all the paths even those who are left even our end is on the right?
@leggermentesara
@leggermentesara 6 лет назад
Thanks! 🔝 10 years later 🌱
@TheAvinashviru
@TheAvinashviru 13 лет назад
great work!!! really easy to understand...
@silversvartnad
@silversvartnad 13 лет назад
Thi vid makes it very easy to understand the algorithm. Thanks a lot =)
@DIVYANSHIMANGALBCE
@DIVYANSHIMANGALBCE 7 лет назад
Thank you so much! Keep up the good work! :)
@OnlineSGNTheFishBoss
@OnlineSGNTheFishBoss 6 лет назад
this video helped me in my final exam.... THANKS A LOT !!!!!!!
@UnrealLotus
@UnrealLotus 12 лет назад
I have an exam tomorrow and you have just saved my life! Thanks!
@Nancybabe94
@Nancybabe94 13 лет назад
Thank you so much. It completely helped me understand this.
@asda110knm
@asda110knm 14 лет назад
Thank you. It was easier than I thought!!! :) And you explained everything perfect, indeed :)
@rocketman4141
@rocketman4141 10 лет назад
Well done and very clear.
@meryemabid6400
@meryemabid6400 8 лет назад
Thank you!! that really helped me a lot :)
@aldairvilla9055
@aldairvilla9055 9 лет назад
Thank you very much, this was very helpful.
@Nictron80
@Nictron80 14 лет назад
Thanks a lot, this will help me with my test next Tuesday. :)
@AndreiPetre
@AndreiPetre 12 лет назад
to get a best path, take for e.g. the best path from A to D (obtained with Dijkstra's alg), you follow the reverse path given by the parents from which they were explored. So starting from D, you see that it was visited from parent C and has a cost of 50. Now going to C, you see that its parent is F. And F was visited through B (its parent). And finally, B's parent is A. So the path would be A-B-F-C-D. The idea is that you have to reconstruct your path from _goal_ node to the _starting_ node.
@shrikantbang1692
@shrikantbang1692 9 лет назад
Thank You. Easy and Simple explanation.
@altsanti
@altsanti 12 лет назад
Excellent video man!
@pranavtrehun007
@pranavtrehun007 16 лет назад
Thanks for the gr8 explanation. it was very helpful.
@piurek10
@piurek10 8 лет назад
good explanation thanks from Poland.
@lilnaable
@lilnaable 12 лет назад
A very good videos, I understand really now. Thank you
@sskcn
@sskcn 12 лет назад
such a good explanation. THANK YOU!
Далее
How Dijkstra's Algorithm Works
8:31
Просмотров 1,3 млн
Что не так с воздухом в Корее?
00:45
Dijkstra's Algorithm:  Another example
8:41
Просмотров 788 тыс.
Graph Implementations
7:15
Просмотров 119 тыс.
Dijkstra's Algorithm
5:02
Просмотров 1 млн
Viterbi Algorithm
11:18
Просмотров 92 тыс.
Dijkstra Algorithm Example
6:48
Просмотров 540 тыс.
Graph Theory - An Introduction!
12:32
Просмотров 569 тыс.
Что не так с воздухом в Корее?
00:45