Dijkstras Shortest Path Algorithm Explained | With Example | Graph Theory

แชร์
ฝัง
  • เผยแพร่เมื่อ 22 พ.ย. 2024

ความคิดเห็น • 292

  • @samueltapia542
    @samueltapia542 7 หลายเดือนก่อน +110

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

  • @Stannya
    @Stannya ปีที่แล้ว +84

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

  • @aidenstephens2232
    @aidenstephens2232 ปีที่แล้ว +3

    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.

  • @trockenfruchte468
    @trockenfruchte468 ปีที่แล้ว +21

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

  • @aliyuumargumel7869
    @aliyuumargumel7869 9 หลายเดือนก่อน +4

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

  • @FelixTechTips
    @FelixTechTips  4 ปีที่แล้ว +35

    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 ปีที่แล้ว +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 2 ปีที่แล้ว

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

    • @spongebobpopsicle9397
      @spongebobpopsicle9397 ปีที่แล้ว

      you should ping this

  • @tsankhulojamson5970
    @tsankhulojamson5970 2 ปีที่แล้ว +35

    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.

  • @a0b9180
    @a0b9180 2 ปีที่แล้ว +81

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

  • @khalidhussein8311
    @khalidhussein8311 ปีที่แล้ว +112

    💀 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 7 หลายเดือนก่อน +1

      😂 bruh

    • @infantalenency3561
      @infantalenency3561 6 หลายเดือนก่อน +3

      Ain't no fking way blud did that 💀

    • @sihamtenho
      @sihamtenho 5 หลายเดือนก่อน +6

      Go to the laboratory this is not for you

    • @nisaaroddin9916
      @nisaaroddin9916 3 หลายเดือนก่อน

      Bruh 😂

    • @RadheShyam-s7n
      @RadheShyam-s7n 2 หลายเดือนก่อน +1

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

  • @ww-ko1ji
    @ww-ko1ji 7 หลายเดือนก่อน +3

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

  • @stoup8778
    @stoup8778 6 หลายเดือนก่อน +4

    This is the best dijkstras explanation on youtube

  • @rigelmandarakuriom
    @rigelmandarakuriom 9 หลายเดือนก่อน +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. 😊❤😊

  • @realjoker1568
    @realjoker1568 ปีที่แล้ว +3

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

  • @mikhailwebb8377
    @mikhailwebb8377 11 หลายเดือนก่อน +1

    Without a doubt, the best explanation of Dijkstra algorithm on TH-cam.

    • @FelixTechTips
      @FelixTechTips  11 หลายเดือนก่อน

      Thanks a lot :)

  • @Mission_UR_Success
    @Mission_UR_Success 6 หลายเดือนก่อน +7

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

  • @williamhogrider4136
    @williamhogrider4136 5 หลายเดือนก่อน +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  5 หลายเดือนก่อน +1

      Good luck with the exam :)

    • @williamhogrider4136
      @williamhogrider4136 5 หลายเดือนก่อน

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

    • @FelixTechTips
      @FelixTechTips  5 หลายเดือนก่อน

      @@williamhogrider4136 Let's go! 🚀

  • @luisherrada828
    @luisherrada828 5 หลายเดือนก่อน

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

  • @Life-2-e
    @Life-2-e 9 วันที่ผ่านมา

    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

  • @dhmacher
    @dhmacher 11 หลายเดือนก่อน

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

  • @bekakbarovich7857
    @bekakbarovich7857 10 หลายเดือนก่อน +1

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

  • @osso98
    @osso98 2 หลายเดือนก่อน

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

  • @Mr_Sameen_nee
    @Mr_Sameen_nee 27 วันที่ผ่านมา

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

  • @haqizza
    @haqizza 5 หลายเดือนก่อน

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

  • @nilsodor
    @nilsodor 2 ปีที่แล้ว +2

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

  • @soumitramandal
    @soumitramandal 15 ชั่วโมงที่ผ่านมา

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

  • @sorinoltean7511
    @sorinoltean7511 7 หลายเดือนก่อน +1

    Great explanation, verbally and visual.

  • @theknowledge4u158
    @theknowledge4u158 2 หลายเดือนก่อน

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

  • @atomicCache_
    @atomicCache_ 6 หลายเดือนก่อน +2

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

  • @himu1901
    @himu1901 2 ปีที่แล้ว +3

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

  • @perelium-x
    @perelium-x 2 ปีที่แล้ว +5

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

  • @Scorpio-2D-Game
    @Scorpio-2D-Game 3 หลายเดือนก่อน

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

  • @nameme2745
    @nameme2745 ปีที่แล้ว +1

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

  • @nydexia4789
    @nydexia4789 ปีที่แล้ว

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

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

  • @christophernoble8284
    @christophernoble8284 ปีที่แล้ว +2

    Best explanation on youtube. Thanks

  • @vishalkarna3763
    @vishalkarna3763 8 หลายเดือนก่อน +1

    Awesome explanation of Dijkstras Algorithm

  • @ahmadalastal5303
    @ahmadalastal5303 ปีที่แล้ว

    The best explanation of Dijkstra algorithm, Thank you

  • @vv6533
    @vv6533 ปีที่แล้ว

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

  • @doesntmatter6827
    @doesntmatter6827 7 หลายเดือนก่อน +2

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

  • @MCUNETWORK-t1z
    @MCUNETWORK-t1z 10 หลายเดือนก่อน +2

    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 8 หลายเดือนก่อน

      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.

  • @lakipop
    @lakipop 11 หลายเดือนก่อน

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

  • @kev.ca-ul667
    @kev.ca-ul667 หลายเดือนก่อน

    Very clear explanation. Thanks for sharing your knowledge!

  • @GonaLEE
    @GonaLEE ปีที่แล้ว

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

  • @awesomeclips8253
    @awesomeclips8253 3 หลายเดือนก่อน

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

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

  • @baltistanigamer
    @baltistanigamer 4 หลายเดือนก่อน

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

  • @4PS17MCA04
    @4PS17MCA04 29 วันที่ผ่านมา

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

  • @krishtelallen4154
    @krishtelallen4154 หลายเดือนก่อน

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

  • @ShitritarielChannel
    @ShitritarielChannel 6 หลายเดือนก่อน +2

    100/100 explaining , thank you so much

  • @justjerono
    @justjerono ปีที่แล้ว +1

    Best explanation video ever. Thank you good sir

  • @icalized6357
    @icalized6357 11 หลายเดือนก่อน +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

  • @desicuisine2885
    @desicuisine2885 15 วันที่ผ่านมา

    One of the best video so far.

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

  • @jasonwang-wg8wu
    @jasonwang-wg8wu 9 หลายเดือนก่อน

    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 6 หลายเดือนก่อน

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

  • @hudahamed9658
    @hudahamed9658 10 หลายเดือนก่อน

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

  • @xinyue6895
    @xinyue6895 7 หลายเดือนก่อน +1

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

  • @rodrigodavalos3072
    @rodrigodavalos3072 11 หลายเดือนก่อน +1

    masterclass, you should make videos again

    • @FelixTechTips
      @FelixTechTips  11 หลายเดือนก่อน

      Thanks. I'm planning to make videos again :)

  • @ashkantaherizadeh8476
    @ashkantaherizadeh8476 9 หลายเดือนก่อน +1

    Perfect man Thanks so much you saved my course

  • @cparks1000000
    @cparks1000000 3 หลายเดือนก่อน +1

    You don't actually need to record the previous node to reconstruct the path. Starting from C, the path through F to A is 3+9 units long while going through E takes 8+9 units long. Thus go through F. This logic can be repeated until A is reached.

  • @43_ayonroy4
    @43_ayonroy4 ปีที่แล้ว

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

  • @anastasiaoikonomou4347
    @anastasiaoikonomou4347 8 หลายเดือนก่อน +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??🥺

  • @deyoz1
    @deyoz1 8 หลายเดือนก่อน +1

    Most clear explaination.

  • @abdoulhamidzeba9257
    @abdoulhamidzeba9257 ปีที่แล้ว

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

  • @lalith_kumar_akhila2411
    @lalith_kumar_akhila2411 ปีที่แล้ว

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

  • @winniethepoop917
    @winniethepoop917 7 หลายเดือนก่อน +1

    it helped me understanding the algorithm. thank u very much

  • @davideriemma180
    @davideriemma180 ปีที่แล้ว

    Very clear and effective approach

  • @sebastianmontano2148
    @sebastianmontano2148 ปีที่แล้ว

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

  • @biaoalex2018
    @biaoalex2018 3 ปีที่แล้ว +1

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

  • @TheMountainBeyondTheWoods
    @TheMountainBeyondTheWoods 2 ปีที่แล้ว

    Finally I understand this algorithm, thank you.

  • @abrorallaberganov6293
    @abrorallaberganov6293 5 หลายเดือนก่อน +1

    Thanks. It is great tutorial and easy to understand

  • @kagisomosehla4647
    @kagisomosehla4647 ปีที่แล้ว

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

  • @mina.corner
    @mina.corner 11 หลายเดือนก่อน

    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

  • @leeschloss4840
    @leeschloss4840 ปีที่แล้ว

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

  • @danielriley3618
    @danielriley3618 ปีที่แล้ว

    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?

  • @anandmaha1
    @anandmaha1 10 หลายเดือนก่อน

    beautifully done. this is a work of art.

  • @dreb.7760
    @dreb.7760 8 หลายเดือนก่อน +1

    thanks Felix, explained very well

  • @muralikrishnay2734
    @muralikrishnay2734 8 หลายเดือนก่อน +1

    This is really impressive

  • @jerryrockson7023
    @jerryrockson7023 9 หลายเดือนก่อน

    Simple and Brilliant. Thank you sir

  • @imanghavasieh5366
    @imanghavasieh5366 7 หลายเดือนก่อน +1

    Wonderful video! Very helpful! Thank you!❤

  • @kharalanova
    @kharalanova 3 หลายเดือนก่อน

    Thank you. Brilliantly explained.

  • @princebillygrahamkarmoker2122
    @princebillygrahamkarmoker2122 ปีที่แล้ว

    Just right at my Hippocampus thank you.

  • @tech.bully4
    @tech.bully4 11 วันที่ผ่านมา

    the best ever I salute to this one thanks sir

  • @mahboub1982
    @mahboub1982 2 ปีที่แล้ว

    Very very good explanation.
    You are the best

  • @zabitaguliyeva9992
    @zabitaguliyeva9992 ปีที่แล้ว

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

  • @AsifKhan-qm4ji
    @AsifKhan-qm4ji 7 หลายเดือนก่อน +1

    Thank you for well explanation 👍

  • @harisansari8876
    @harisansari8876 8 หลายเดือนก่อน +1

    very good explanation! thanks

  • @nathanmakwara9207
    @nathanmakwara9207 ปีที่แล้ว

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

  • @nyambegivenlinyotwa26
    @nyambegivenlinyotwa26 24 วันที่ผ่านมา

    Very clear indeed 👌..
    Thank you 😊

  • @catalinalebedina5965
    @catalinalebedina5965 ปีที่แล้ว

    Amazing video, easy to follow and very clear.

  • @adhihcmw
    @adhihcmw ปีที่แล้ว +1

    Man keep uploading!

    • @FelixTechTips
      @FelixTechTips  11 หลายเดือนก่อน

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

  • @theoxc
    @theoxc ปีที่แล้ว

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

  • @ran_red
    @ran_red 2 ปีที่แล้ว

    Thank you for helping me understand this algorithm

  • @amalsalim88
    @amalsalim88 6 หลายเดือนก่อน +1

    yes this video helped. thank you for doing this!

  • @navinagrawal1963
    @navinagrawal1963 11 หลายเดือนก่อน

    Awesome content. You explained it so well. Kudos!

  • @krzysztofkondracki7967
    @krzysztofkondracki7967 9 หลายเดือนก่อน +1

    Very helpful video cheers

  • @petersonkariuki8300
    @petersonkariuki8300 ปีที่แล้ว +1

    Good and well explained.

  • @adeelarif2266
    @adeelarif2266 3 ปีที่แล้ว +1

    Love you man. Beautiful explanation.

  • @SumagaysayVinceZ.
    @SumagaysayVinceZ. 7 หลายเดือนก่อน +1

    thank you broo
    it really helps me

  • @SamuelNKiap
    @SamuelNKiap 2 ปีที่แล้ว

    Thank you and best explanation for starters