Dijkstras Shortest Path Algorithm Explained | With Example | Graph Theory

  Рет қаралды 308,491

FelixTechTips

FelixTechTips

3 жыл бұрын

I explain Dijkstra's Shortest Path Algorithm with the help of an example.
This algorithm can be used to calculate the shortest distance between one node and every other node in a weighted graph.
If you want to learn more about algorithms, check out my Basic Algorithms in Python Playlist and subscribe to this channel.

Пікірлер: 231
@samueltapia542
@samueltapia542 Ай бұрын
The day I succesfully graduate from my CS major, you'll be in the list of persons I'm grateful with
@khalidhussein8311
@khalidhussein8311 11 ай бұрын
💀 I am not a computer science student but boy did I enjoy learning this (aim a pharmacy student I don't know why I watched this)
@divinechijindu7465
@divinechijindu7465 Ай бұрын
😂 bruh
@infantalenency3561
@infantalenency3561 14 күн бұрын
Ain't no fking way blud did that 💀
@Stannya
@Stannya Жыл бұрын
This is absolutely the most clear video on Dijkstra's algorithm. Thank you!
@a0b9180
@a0b9180 Жыл бұрын
Thank you, you worked hard to bring together this animation and you covered different use cases. Fantastic. I was struggling with my professor's explanation. The other KZbin videos were better than my professor's, but your's is the best.
@teflonczmotherboard4551
@teflonczmotherboard4551 7 күн бұрын
Wow, I just installed the algorithm to the brain in 8 minutes🧠. Thank you, Sir.
@FelixTechTips
@FelixTechTips 3 жыл бұрын
Was this video helpful? Which algorithm do you want me to cover next? 💻👇 0:00 Introduction 0:30 Example 7:15 Backtracking the shortest path from A to C
@tsankhulojamson5970
@tsankhulojamson5970 2 жыл бұрын
It is more than 100% helpful sir. Honestly speaking we have understood the whole concept behind the Dijkstra's algorithm within a very short period of time. May you do the same for other algorithms like: Bellman-Ford Floyd Warshall Johnson's Algorithm and even A star search please This is from University of Malawi.
@tsankhulojamson5970
@tsankhulojamson5970 2 жыл бұрын
This video is simple and straight forward. We have really liked it
@spongebobpopsicle9397
@spongebobpopsicle9397 Жыл бұрын
you should ping this
@trockenfruchte468
@trockenfruchte468 11 ай бұрын
That was - in my opinion - way better and especially easier explained than every other video that was on the top of the list
@realjoker1568
@realjoker1568 8 ай бұрын
This is the best explanation I found of Djikstra! And the only one so far that has explained how to reconstruct the original path! Thanks a lot!!
@tsankhulojamson5970
@tsankhulojamson5970 2 жыл бұрын
Honestly speaking, this has been helpful. We have understood the whole concept behind the Dijkstra's algorithm within a very short period of time. Thanks a lot sir.
@aliyuumargumel7869
@aliyuumargumel7869 3 ай бұрын
This is the clearest explanation to this algorithm I've ever encountered with.
@aidenstephens2232
@aidenstephens2232 Жыл бұрын
Before I found your video I watched and read probably 10 different articles and videos on Dijkstra’s and had about 0 understanding. All I had to do was watch your video one time and I was able to work it out and implement it completely, thanks so much.
@bekakbarovich7857
@bekakbarovich7857 4 ай бұрын
The best explanation I've come up so far. Bravo!
@dhmacher
@dhmacher 5 ай бұрын
This was the final puzzle piece I needed for an Advent of Code challenge. Thank you!
@himu1901
@himu1901 Жыл бұрын
Best explanation man!! Now my concept is crystal clear.
@nameme2745
@nameme2745 Жыл бұрын
Thank you, this is the best explanation on Dijkstra's. Very clear and precise, and I can easily code them in a computer language.
@ww-ko1ji
@ww-ko1ji Ай бұрын
the step by step demonstration of this algorithm made it clear to me. thanks❤
@lakindusadumina150
@lakindusadumina150 5 ай бұрын
absolutely awesome. this is the best video i found about dijkstras shortest path algorithm in youtube. Thanks man. simple and neat.
@doesntmatter6827
@doesntmatter6827 Ай бұрын
Amazing explanation! Such a detailed, yet simple illustration of the Dijkstra's algorithm.
@SkySentry7
@SkySentry7 2 жыл бұрын
THANK YOU VERY MUCH KIND SIR! U JUST DONT KNOW HOW MUCH OF A HELP U'VE BEEN! GOD BLESS
@vv6533
@vv6533 Жыл бұрын
Excellent and lucid explanation. Best video on youtube for dijiksta algorithm
@saquibsaiyyed6745
@saquibsaiyyed6745 2 жыл бұрын
Thank you so much for all your content. I struggled a lot to understand data structure and your videos certainly put that on end. you are doing great job there.
@kagisomosehla4647
@kagisomosehla4647 Жыл бұрын
That was a brilliant explanation, you just made it easy to understand. Thank you.
@ahmadalastal5303
@ahmadalastal5303 Жыл бұрын
The best explanation of Dijkstra algorithm, Thank you
@sorinoltean7511
@sorinoltean7511 Ай бұрын
Great explanation, verbally and visual.
@nilsodor
@nilsodor Жыл бұрын
Wow very clear! I love this human way of simplifying technical stuff!
@ryanpark4856
@ryanpark4856 Жыл бұрын
are u not human.
@georgeoneal3641
@georgeoneal3641 10 ай бұрын
Amazing and effortless elucidation of Dijkstra. Thanks so much, I wish that you'd teach Bellmann Ford. Thanks a lot! One more subscriber you've gotten. Welldone
@stoup8778
@stoup8778 Ай бұрын
This is the best dijkstras explanation on youtube
@nydexia4789
@nydexia4789 Жыл бұрын
Thanks a lot for explaining this graphically instead of with code in simple terms.
@GonaLEE
@GonaLEE 7 ай бұрын
Thank you so much, can understand fastly and exactly regarding Dijkstra’s algorithm.
@biaoalex2018
@biaoalex2018 2 жыл бұрын
Thank you so much sir, this video helps me a lot! It makes the algorithm much easier to understand.
@43_ayonroy4
@43_ayonroy4 Жыл бұрын
Best video i found on this algorithm so far, thanks a lot
@lalith_kumar_akhila2411
@lalith_kumar_akhila2411 8 ай бұрын
Hey! Thank you Felix, for the easy and crisp explanation.. I Appreciate it
@MoMo-ue9ff
@MoMo-ue9ff 11 ай бұрын
Thank You for this concise explanation of Dijikstra algorithm. I still need to look at it a few more times though.
@abdoulhamidzeba9257
@abdoulhamidzeba9257 7 ай бұрын
Thank you so much for this explanation, one of the best In have seen so far.
@atomicCache_
@atomicCache_ 22 күн бұрын
Thanks for the explaining the Dijkstra algorithm so well. 😊😊
@Rigel_Kuriom_Mandara
@Rigel_Kuriom_Mandara 3 ай бұрын
Thanks,,, now I can understand the Dijkstra’s algorithm in the context of how data packets from a certain host try to find their shortest way to reach their destination via the shortest route possible. 😊❤😊
@sebastianmontano2148
@sebastianmontano2148 Жыл бұрын
Thank you very much! clear speaking... best video about Dijkstra's also so far!!!
@catalinalebedina5965
@catalinalebedina5965 10 ай бұрын
Amazing video, easy to follow and very clear.
@theoxc
@theoxc 8 ай бұрын
Very clear and to the point explained, vielen Dank!!
@mina.corner
@mina.corner 5 ай бұрын
Thank you so much for your clear explanation. It is straight to the point, easy to understand, therefore, really helpful for me.
@anandmaha1
@anandmaha1 4 ай бұрын
beautifully done. this is a work of art.
@navinagrawal1963
@navinagrawal1963 5 ай бұрын
Awesome content. You explained it so well. Kudos!
@mikhailwebb8377
@mikhailwebb8377 6 ай бұрын
Without a doubt, the best explanation of Dijkstra algorithm on KZbin.
@FelixTechTips
@FelixTechTips 5 ай бұрын
Thanks a lot :)
@justjerono
@justjerono 10 ай бұрын
Best explanation video ever. Thank you good sir
@vishalkarna3763
@vishalkarna3763 2 ай бұрын
Awesome explanation of Dijkstras Algorithm
@davideriemma180
@davideriemma180 Жыл бұрын
Very clear and effective approach
@ShitritarielChannel
@ShitritarielChannel 9 күн бұрын
100/100 explaining , thank you so much
@TheMountainBeyondTheWoods
@TheMountainBeyondTheWoods Жыл бұрын
Finally I understand this algorithm, thank you.
@imanghavasieh5366
@imanghavasieh5366 Ай бұрын
Wonderful video! Very helpful! Thank you!❤
@hudahamed9658
@hudahamed9658 4 ай бұрын
Thank you so much, i hope to find other topics for this course on your channel, because I liked the way of explanation.
@jerryrockson7023
@jerryrockson7023 3 ай бұрын
Simple and Brilliant. Thank you sir
@mahboub1982
@mahboub1982 Жыл бұрын
Very very good explanation. You are the best
@winniethepoop917
@winniethepoop917 Ай бұрын
it helped me understanding the algorithm. thank u very much
@RAN-os5gz
@RAN-os5gz 2 жыл бұрын
Thank you for helping me understand this algorithm
@xinyue6895
@xinyue6895 2 ай бұрын
thank you for this great video! I finally understand djikstras algorithm
@radomeditv
@radomeditv Жыл бұрын
very clear, very helpful. Thank you !
@ashkantaherizadeh8476
@ashkantaherizadeh8476 4 ай бұрын
Perfect man Thanks so much you saved my course
@adeelarif2266
@adeelarif2266 2 жыл бұрын
Love you man. Beautiful explanation.
@Rajivrocks-Ltd.
@Rajivrocks-Ltd. Жыл бұрын
Very clear and concise!
@dreb.7760
@dreb.7760 2 ай бұрын
thanks Felix, explained very well
@Diablo1313-
@Diablo1313- Жыл бұрын
Thank you! This is an amazing explanation
@mahirtaz3729
@mahirtaz3729 10 ай бұрын
great job! wonderful explanations.
@nathanmakwara9207
@nathanmakwara9207 Жыл бұрын
Thanks a lot had trouble understanding this concept you cleared the jam
@leeschloss4840
@leeschloss4840 10 ай бұрын
Awesome. Was confusing on w3schools, and this really helped.
@SamuelNKiap
@SamuelNKiap 2 жыл бұрын
Thank you and best explanation for starters
@icalized6357
@icalized6357 5 ай бұрын
Thanks a lot man. You explained it in such a easy way and the animations helped a lot in understanding. Definitely explained so much better than those videos on top of the search list
@FelixTechTips
@FelixTechTips 5 ай бұрын
Thank you :)
@mazenmagdimohamedahmedmors6989
@mazenmagdimohamedahmedmors6989 Жыл бұрын
everything was so clear! AMAZING! c:
@harisansari8876
@harisansari8876 3 ай бұрын
very good explanation! thanks
@zabitaguliyeva9992
@zabitaguliyeva9992 Жыл бұрын
Thank you very much indeed. l was strugling to understand this now it is easy to me
@deyoz1
@deyoz1 2 ай бұрын
Most clear explaination.
@brandoncazares8452
@brandoncazares8452 Жыл бұрын
Thanks sir. It's really helpful and fantastic.
@faribasoltani8268
@faribasoltani8268 Жыл бұрын
Thank you for this great tutorial.
@amalsalim88
@amalsalim88 27 күн бұрын
yes this video helped. thank you for doing this!
@sunr8152
@sunr8152 2 жыл бұрын
Thanks sir! Great video.
@saberkazeminasab6142
@saberkazeminasab6142 Жыл бұрын
Thanks a lot. Great presentation!
@AsifKhan-qm4ji
@AsifKhan-qm4ji Ай бұрын
Thank you for well explanation 👍
@trinether_alt550
@trinether_alt550 Жыл бұрын
Thanks, clear and concise.
@christophernoble8284
@christophernoble8284 6 ай бұрын
Best explanation on youtube. Thanks
@FelixTechTips
@FelixTechTips 5 ай бұрын
Thank you :)
@danielriley3618
@danielriley3618 9 ай бұрын
I've got a question but it needs to be teed up first: I assume that when you go to implement this algorithm, you repeat this analysis and make a similar table for all of the other nodes. Each node then has a corresponding table. If you want the shortest path between, for example, node P and node X, you'll begin with the table for node P. That table might tell you to go to node R first. My question is: on your route to X, do you continue operating from the table for node P the whole time or do you switch to the table corresponding to whatever current node you're at (node R in this example)? Or does it even matter-will you get the same distance either way?
@derricklove5744
@derricklove5744 Жыл бұрын
God bless you, extremely helpful video
@j.rubengomez35
@j.rubengomez35 10 ай бұрын
Very good explanation!
@petersonkariuki8300
@petersonkariuki8300 6 ай бұрын
Good and well explained.
@DarkKnight_2324
@DarkKnight_2324 Жыл бұрын
Great explanation!
@krzysztofkondracki7967
@krzysztofkondracki7967 3 ай бұрын
Very helpful video cheers
@adjoamirekuaaansong5586
@adjoamirekuaaansong5586 Жыл бұрын
This was soo helpful . thank you
@miso-ge1gz
@miso-ge1gz Жыл бұрын
Thank you. This is much easier to understand than the nightmare full of math notation our professor wrote. I hate academics so much
@samer820
@samer820 2 жыл бұрын
Clear and compact 👍
@artmispotter3571
@artmispotter3571 5 ай бұрын
thanks for the amazing explanation man
@muralikrishnay2734
@muralikrishnay2734 2 ай бұрын
This is really impressive
@igit7745
@igit7745 Жыл бұрын
Is it possible to determine the shortest route from other nodes (instead of the starting node) to another one? For example, we started @ Node A, and I want to determine the shortest path from Node E to C.
@mohammedamran143
@mohammedamran143 4 ай бұрын
Thank you so much, you are great.
@SumagaysayVinceZ.
@SumagaysayVinceZ. Ай бұрын
thank you broo it really helps me
@SakshiSingh-de9of
@SakshiSingh-de9of 4 ай бұрын
Excellent explanation :)
@pushandeb187
@pushandeb187 4 ай бұрын
this is quite good...thanks a lot
@dasturchi5107
@dasturchi5107 4 ай бұрын
Fantastic bro, thanks a lot
@talal7805
@talal7805 Жыл бұрын
this is very helpful. thanks !!
@user-sq6co7jt6u
@user-sq6co7jt6u 4 ай бұрын
I also found that it has the same distance with the path: A->B->E->F->C which has a total of 12
@joaobaptista4610
@joaobaptista4610 3 ай бұрын
If you're interested in all the shortest paths, than, you can acumulate in "previous node" all the nodes with the same minimal distance to the given node. Final result will be an adjency list of a directed graph that, when transversed by, lets say, depth first search, will give you all the shortest paths from the especified pair of nodes.
@strakerzy5044
@strakerzy5044 9 ай бұрын
Great explanation.
@Rajath_2001
@Rajath_2001 Жыл бұрын
Thank you so much, it was helpful
@princebillygrahamkarmoker2122
@princebillygrahamkarmoker2122 7 ай бұрын
Just right at my Hippocampus thank you.
3.6 Dijkstra Algorithm - Single Source Shortest Path - Greedy Method
18:35
How Dijkstra's Algorithm Works
8:31
Spanning Tree
Рет қаралды 1,3 МЛН
Como ela fez isso? 😲
00:12
Los Wagners
Рет қаралды 25 МЛН
FOOTBALL WITH PLAY BUTTONS ▶️ #roadto100m
00:29
Celine Dept
Рет қаралды 73 МЛН
когда достали одноклассники!
00:49
БРУНО
Рет қаралды 2,1 МЛН
Dijkstra's Shortest Path Algorithm | Graph Theory
24:47
WilliamFiset
Рет қаралды 194 М.
Dijkstra Algorithm Example
6:48
barngrader
Рет қаралды 536 М.
Bellman-Ford in 5 minutes - Step by step example
5:10
Michael Sambol
Рет қаралды 1,3 МЛН
Dijkstra's Algorithm - Computerphile
10:43
Computerphile
Рет қаралды 1,3 МЛН
Graph Data Structure 4. Dijkstra’s Shortest Path Algorithm
10:52
Computer Science
Рет қаралды 1,4 МЛН
Dijkstra's Algorithm with example of undirected graph
12:31
Beena Ballal
Рет қаралды 262 М.
Merge Sort In Python Explained (With Example And Code)
13:35
FelixTechTips
Рет қаралды 191 М.
Dijkstra's Algorithm:  Another example
8:41
barngrader
Рет қаралды 783 М.
Nokia 3310 versus Red Hot Ball
0:37
PressTube
Рет қаралды 3,6 МЛН
ПК с Авито за 3000р
0:58
ЖЕЛЕЗНЫЙ КОРОЛЬ
Рет қаралды 1,4 МЛН
Цифровые песочные часы с AliExpress
0:45
5 НЕЛЕГАЛЬНЫХ гаджетов, за которые вас посадят
0:59
Кибер Андерсон
Рет қаралды 221 М.
Обзор игрового компьютера Макса 2в1
23:34