Dijkstras Shortest Path Algorithm Explained | With Example | Graph Theory

Поделиться
HTML-код
  • Опубликовано: 21 янв 2025

Комментарии • 329

  • @Stannya
    @Stannya Год назад +113

    This is absolutely the most clear video on Dijkstra's algorithm. Thank you!

  • @aliyuumargumel7869
    @aliyuumargumel7869 11 месяцев назад +19

    This is the clearest explanation to this algorithm I've ever encountered with.

  • @FelixTechTips
    @FelixTechTips  4 года назад +45

    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 3 года назад +1

      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 3 года назад

      This video is simple and straight forward. We have really liked it

    • @spongebobpopsicle9397
      @spongebobpopsicle9397 Год назад

      you should ping this

  • @samueltapia542
    @samueltapia542 9 месяцев назад +174

    The day I succesfully graduate from my CS major, you'll be in the list of persons I'm grateful with

  • @a0b9180
    @a0b9180 2 года назад +87

    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 RUclips videos were better than my professor's, but your's is the best.

  • @trockenfruchte468
    @trockenfruchte468 Год назад +27

    That was - in my opinion - way better and especially easier explained than every other video that was on the top of the list

  • @tsankhulojamson5970
    @tsankhulojamson5970 3 года назад +40

    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.

  • @aidenstephens2232
    @aidenstephens2232 Год назад +4

    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.

  • @OsydeousMusic
    @OsydeousMusic Месяц назад +2

    I had to comment. This is so easy to understand that I watched the whole 8 mins, not pausing once

  • @AndrewKim-v3b
    @AndrewKim-v3b Месяц назад +1

    Hey Felix, this is the most concise and clearest explanation I've seen, packed in less than 10 minutes. Bravo to your work!

  • @realjoker1568
    @realjoker1568 Год назад +4

    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!!

  • @luisherrada828
    @luisherrada828 7 месяцев назад +2

    So simply and beautifully explained. I went through several videos on this topic and you are on the podium.

  • @mikhailwebb8377
    @mikhailwebb8377 Год назад +3

    Without a doubt, the best explanation of Dijkstra algorithm on RUclips.

  • @ww-ko1ji
    @ww-ko1ji 9 месяцев назад +4

    the step by step demonstration of this algorithm made it clear to me. thanks❤

  • @Mr_Sameen
    @Mr_Sameen 2 месяца назад +2

    i have never find the video very helpful than this Dijkstra's Algorithm thanks A lot

  • @stoup8778
    @stoup8778 8 месяцев назад +4

    This is the best dijkstras explanation on youtube

  • @bekakbarovich7857
    @bekakbarovich7857 Год назад +2

    The best explanation I've come up so far. Bravo!

  • @weza0
    @weza0 13 дней назад

    so i watched over 5 videos on this algo and this video is truly one of the best

  • @abrorallaberganov6293
    @abrorallaberganov6293 7 месяцев назад +2

    00:05 Dijkstra's algorithm calculates the shortest path from a fixed node to every other node in a weighted graph.
    01:04 Assigning tentative distance values to nodes
    02:05 Update table with new shorter distances
    03:08 Updating the shortest distances for unvisited neighbors
    04:17 Updating shortest distance and previous nodes
    05:20 Updating shortest distances using Dijkstra's algorithm
    06:30 Dijkstra's algorithm finds the shortest distance from a starting node to all other nodes in a graph.
    07:32 Dijkstra's algorithm helps to reconstruct the shortest path.

  • @wilsonsaffold
    @wilsonsaffold Месяц назад +2

    This was a very easy to understand visual representation and explanation, Thank you.

  • @osso98
    @osso98 4 месяца назад

    I have watched more than 10 video's here on RUclips, but this video made me understand it. Chapeau Felix!

  • @rigelmandarakuriom
    @rigelmandarakuriom 11 месяцев назад +2

    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. 😊❤😊

  • @himu1901
    @himu1901 2 года назад +4

    Best explanation man!! Now my concept is crystal clear.

  • @nilsodor
    @nilsodor 2 года назад +2

    Wow very clear! I love this human way of simplifying technical stuff!

  • @nameme2745
    @nameme2745 Год назад +2

    Thank you, this is the best explanation on Dijkstra's. Very clear and precise, and I can easily code them in a computer language.

  • @perelium-x
    @perelium-x 3 года назад +6

    THANK YOU VERY MUCH KIND SIR! U JUST DONT KNOW HOW MUCH OF A HELP U'VE BEEN! GOD BLESS

  • @dhmacher
    @dhmacher Год назад

    This was the final puzzle piece I needed for an Advent of Code challenge. Thank you!

  • @williamhogrider4136
    @williamhogrider4136 7 месяцев назад +2

    Tomorrow is my Design amd Analysis of Algorithms exam, your videos on quick, merge sort and now this have been really helpful. Thanks man.

    • @FelixTechTips
      @FelixTechTips  7 месяцев назад +1

      Good luck with the exam :)

    • @williamhogrider4136
      @williamhogrider4136 7 месяцев назад

      ​@@FelixTechTips I think I did well, feels good ending the semester like this (⁠ ⁠◜⁠‿⁠◝⁠ ⁠)

    • @FelixTechTips
      @FelixTechTips  7 месяцев назад

      @@williamhogrider4136 Let's go! 🚀

  • @khalidhussein8311
    @khalidhussein8311 Год назад +156

    💀 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 9 месяцев назад +2

      😂 bruh

    • @infantalenency3561
      @infantalenency3561 8 месяцев назад +4

      Ain't no fking way blud did that 💀

    • @sihamtenho
      @sihamtenho 7 месяцев назад +10

      Go to the laboratory this is not for you

    • @nisaaroddin9916
      @nisaaroddin9916 5 месяцев назад

      Bruh 😂

    • @RadheShyam-s7n
      @RadheShyam-s7n 4 месяца назад +2

      Use it in finding the shortest way to ur school 😂.....I tried but due to negative weights, couldn't complete

  • @Mission_UR_Success
    @Mission_UR_Success 8 месяцев назад +7

    Wow, I just installed the algorithm to the brain in 8 minutes🧠. Thank you, Sir.

  • @jasonwang-wg8wu
    @jasonwang-wg8wu 11 месяцев назад +2

    real clear, good shit my guy. this is a slightly weird one though: we haven't found *THE* shortest path from A to C, we've found *A* shortest path from A to C. [ABEFC also gives 12.]

    • @samueltomjoseph4775
      @samueltomjoseph4775 8 месяцев назад

      Yes, but how can I make the computer understand that? Is it too bad that the algorithm can't fathom other paths?

  • @sorinoltean7511
    @sorinoltean7511 9 месяцев назад +2

    Great explanation, verbally and visual.

  • @lakipop
    @lakipop Год назад

    absolutely awesome. this is the best video i found about dijkstras shortest path algorithm in youtube. Thanks man. simple and neat.

  • @Life-2-e
    @Life-2-e 2 месяца назад

    thankyou so much my professors made this so hard for me on my exam i was about to leave this topic then I watched your video, and now I am very confident about this topic that I gonna do it 100 percent

  • @christophernoble8284
    @christophernoble8284 Год назад +2

    Best explanation on youtube. Thanks

  • @AtomicCache1
    @AtomicCache1 8 месяцев назад +2

    Thanks for the explaining the Dijkstra algorithm so well. 😊😊

  • @icalized6357
    @icalized6357 Год назад +3

    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

  • @Scorpio-2D-Game
    @Scorpio-2D-Game 5 месяцев назад

    Thank you! This was a great explanation and demonstration. The explanation in my textbook made no sense at all. This was so helpful!

  • @hunterboss4907
    @hunterboss4907 Месяц назад

    Thank you very much, I was struggling with this topic, but now it is all clear to me.

  • @networking1014
    @networking1014 Месяц назад

    Best explanation I have come across. Thank you

  • @vv6533
    @vv6533 Год назад

    Excellent and lucid explanation. Best video on youtube for dijiksta algorithm

  • @lizbyjoy465
    @lizbyjoy465 11 часов назад

    This was so so good. I've been struggling with this ❤

  • @desicuisine2885
    @desicuisine2885 2 месяца назад

    One of the best video so far.

  • @haqizza
    @haqizza 7 месяцев назад

    I like the example graph you make. With doesn't make it find the best in the first search, it makes me understand better

  • @soumitramandal
    @soumitramandal 2 месяца назад

    It seemed like you were Dijkstra's himself explaining your algorithm! Really helped me prepare for my interview :)

  • @43_ayonroy4
    @43_ayonroy4 Год назад

    Best video i found on this algorithm so far, thanks a lot

  • @saquibsaiyyed6745
    @saquibsaiyyed6745 3 года назад +3

    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.

  • @theknowledge4u158
    @theknowledge4u158 4 месяца назад

    This is the best video on djikstras algo ..trust me

  • @awesomeclips8253
    @awesomeclips8253 5 месяцев назад

    I watched another video before this one and I didn't understand it. but now I do thanks for the explanation.

  • @doesntmatter6827
    @doesntmatter6827 9 месяцев назад +2

    Amazing explanation! Such a detailed, yet simple illustration of the Dijkstra's algorithm.

  • @krishtelallen4154
    @krishtelallen4154 3 месяца назад

    I loved your explanation, so easy to understand. Thank you!

  • @nydexia4789
    @nydexia4789 2 года назад

    Thanks a lot for explaining this graphically instead of with code in simple terms.

  • @ShitritarielChannel
    @ShitritarielChannel 8 месяцев назад +2

    100/100 explaining , thank you so much

  • @ahmadalastal5303
    @ahmadalastal5303 Год назад

    The best explanation of Dijkstra algorithm, Thank you

  • @pekufatima3149
    @pekufatima3149 Месяц назад

    most precise and explained video ever

  • @GonaLEE
    @GonaLEE Год назад

    Thank you so much, can understand fastly and exactly regarding Dijkstra’s algorithm.

  • @abdoulhamidzeba9257
    @abdoulhamidzeba9257 Год назад

    Thank you so much for this explanation, one of the best In have seen so far.

  • @ashkantaherizadeh8476
    @ashkantaherizadeh8476 11 месяцев назад +1

    Perfect man Thanks so much you saved my course

  • @justjerono
    @justjerono Год назад +1

    Best explanation video ever. Thank you good sir

  • @xinyue6895
    @xinyue6895 9 месяцев назад +1

    thank you for this great video! I finally understand djikstras algorithm

  • @baltistanigamer
    @baltistanigamer 6 месяцев назад

    Finally found this method...i was looking for this one❤

  • @vishalkarna3763
    @vishalkarna3763 10 месяцев назад +1

    Awesome explanation of Dijkstras Algorithm

  • @kev.ca-ul667
    @kev.ca-ul667 3 месяца назад

    Very clear explanation. Thanks for sharing your knowledge!

  • @MoMo-ue9ff
    @MoMo-ue9ff Год назад

    Thank You for this concise explanation of Dijikstra algorithm. I still need to look at it a few more times though.

  • @lalith_kumar_akhila2411
    @lalith_kumar_akhila2411 Год назад

    Hey! Thank you Felix, for the easy and crisp explanation.. I Appreciate it

  • @mina.corner
    @mina.corner Год назад

    Thank you so much for your clear explanation. It is straight to the point, easy to understand, therefore, really helpful for me.

  • @georgeoneal3641
    @georgeoneal3641 Год назад

    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

  • @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

  • @hudahamed9658
    @hudahamed9658 Год назад

    Thank you so much, i hope to find other topics for this course on your channel, because I liked the way of explanation.

  • @kagisomosehla4647
    @kagisomosehla4647 Год назад

    That was a brilliant explanation, you just made it easy to understand. Thank you.

  • @sebastianmontano2148
    @sebastianmontano2148 2 года назад

    Thank you very much! clear speaking... best video about Dijkstra's also so far!!!

  • @mabline2267
    @mabline2267 Месяц назад

    Thank you so much for your explanation. Understood it very well 😊

  • @biaoalex2018
    @biaoalex2018 3 года назад +1

    Thank you so much sir, this video helps me a lot! It makes the algorithm much easier to understand.

  • @theoxc
    @theoxc Год назад

    Very clear and to the point explained, vielen Dank!!

  • @TheMountainBeyondTheWoods
    @TheMountainBeyondTheWoods 2 года назад

    Finally I understand this algorithm, thank you.

  • @anastasiaoikonomou4347
    @anastasiaoikonomou4347 10 месяцев назад +1

    If you were to count the numbers of insert how would you do that? Would you count a the start node and would you also count if two nodes get the same distance but different paths as two or one??🥺

  • @anandmaha1
    @anandmaha1 Год назад

    beautifully done. this is a work of art.

  • @winniethepoop917
    @winniethepoop917 9 месяцев назад +1

    it helped me understanding the algorithm. thank u very much

  • @imanghavasieh5366
    @imanghavasieh5366 9 месяцев назад +1

    Wonderful video! Very helpful! Thank you!❤

  • @navinagrawal1963
    @navinagrawal1963 Год назад

    Awesome content. You explained it so well. Kudos!

  • @abrorallaberganov6293
    @abrorallaberganov6293 7 месяцев назад +1

    Thanks. It is great tutorial and easy to understand

  • @leeschloss4840
    @leeschloss4840 Год назад

    Awesome. Was confusing on w3schools, and this really helped.

  • @davideriemma180
    @davideriemma180 Год назад

    Very clear and effective approach

  • @deyoz1
    @deyoz1 10 месяцев назад +1

    Most clear explaination.

  • @nathanmakwara9207
    @nathanmakwara9207 Год назад

    Thanks a lot had trouble understanding this concept you cleared the jam

  • @catalinalebedina5965
    @catalinalebedina5965 Год назад

    Amazing video, easy to follow and very clear.

  • @mahboub1982
    @mahboub1982 2 года назад

    Very very good explanation.
    You are the best

  • @tech.bully4
    @tech.bully4 2 месяца назад

    the best ever I salute to this one thanks sir

  • @dreb.7760
    @dreb.7760 10 месяцев назад +1

    thanks Felix, explained very well

  • @adeelarif2266
    @adeelarif2266 3 года назад +1

    Love you man. Beautiful explanation.

  • @zabitaguliyeva9992
    @zabitaguliyeva9992 Год назад

    Thank you very much indeed. l was strugling to understand this now it is easy to me

  • @4PS17MCA04
    @4PS17MCA04 3 месяца назад

    I am not understanding in text book but ur explanation is excellent

  • @kharalanova
    @kharalanova 5 месяцев назад

    Thank you. Brilliantly explained.

  • @MCUNETWORK-t1z
    @MCUNETWORK-t1z Год назад +3

    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 11 месяцев назад

      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.

  • @MauriceHenning
    @MauriceHenning 19 дней назад

    Brother, you have done God's work lol... I've looked at tons of videos and studied many illustrations. You explained this in 8 minutes.

  • @jerryrockson7023
    @jerryrockson7023 11 месяцев назад

    Simple and Brilliant. Thank you sir

  • @amalsalim88
    @amalsalim88 8 месяцев назад +1

    yes this video helped. thank you for doing this!

  • @seabass7615
    @seabass7615 5 месяцев назад

    Wow...Super Video Man!

  • @adhihcmw
    @adhihcmw Год назад +1

    Man keep uploading!

    • @FelixTechTips
      @FelixTechTips  Год назад

      Im planning to upload again next year. Do you have any specific problems you need help with?

  • @IvanTham-f1u
    @IvanTham-f1u Год назад +1

    Hi , I want to ask that how about E? It is not include in ?