Shortest Path using Dijkstra's Algorithm

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

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

  • @shadic555
    @shadic555 9 ปีที่แล้ว +170

    How the fuck did you know it's exactly midnight and i have an exam tomorrow? D:

    • @giovanni.n
      @giovanni.n 8 ปีที่แล้ว +27

      because he knows you're fucking procrastinator

    • @shadic555
      @shadic555 8 ปีที่แล้ว +33

      TCP IP I don't even know this procrastinator guy, why would I be having sex with him? (see how much difference a simple 'a' can make in a sentence?)

    • @parth488
      @parth488 7 ปีที่แล้ว +7

      The best comeback of the century!

    • @AnneNamuli
      @AnneNamuli 7 ปีที่แล้ว

      same here

    • @starfire_xi
      @starfire_xi 7 ปีที่แล้ว

      lmao exactly xD

  • @abhilashramteke3333
    @abhilashramteke3333 9 ปีที่แล้ว +140

    Got to watch this video after midnight!! Have my end semester exam tomorrow!! Wish me luck friends...

    • @comicarena9568
      @comicarena9568 9 ปีที่แล้ว

      +Abhilash Ramteke Dude can you tell me one thing? I find this and Prims algo almost same, Then what is the difference?

    • @abhilashramteke3333
      @abhilashramteke3333 9 ปีที่แล้ว

      +Comic Arena Sorry boss. No idea.

    • @santitham55
      @santitham55  9 ปีที่แล้ว +6

      +Comic Arena The difference is in the output and the purpose of the algorithms. Dijkstra's output is the shortest path while Prim's is a minimum spanning tree. D algorithm also explores only a part of the graph to get the solution. It is very important especially in the large graph as in Big Data environment. P algorithms give you the important aspects of the graph as well such as the coordinator or the hub.

    • @nagorik24
      @nagorik24 9 ปีที่แล้ว

      +Abhilash Ramteke Tomorrow is my final

    • @AndronikosKoutroumpelis
      @AndronikosKoutroumpelis 8 ปีที่แล้ว

      Ha, it's almost 5am here and I've got an exam tomorrow.

  • @JohnnyCagePro
    @JohnnyCagePro 10 ปีที่แล้ว +12

    my midterm is also tomorrow, thanks to the kind people of youtube who uploads these videos.

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

    Now it is my turn to watch it on Final exam's night.
    wish me good luck and thank you.

  • @DC48MCs
    @DC48MCs 9 ปีที่แล้ว +111

    Here I am, not like you guys, watching this video during while doing the Final exam!

    • @P9vutha
      @P9vutha 8 ปีที่แล้ว +11

      LOL
      u made my night (night before exam) xD

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

      What a guy.

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

      Madlads

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

      Quarantine has blessed me with the same opportunity. :}

  • @rodrigovieira1994
    @rodrigovieira1994 10 ปีที่แล้ว +20

    Thanks for the video, man. It's perfectly possible to understand your english. Haters gonna hate.

  • @Mushfiq99
    @Mushfiq99 3 ปีที่แล้ว

    Excellent explanation. Short and accurate. Thanks mate.

  • @gerrion25
    @gerrion25 9 ปีที่แล้ว

    I watched this explanation 2 days before my 3rd (and last) exam (Communication Networks). Needed a solid explanation about the algorithm since i couldn't understand my teacher's notes very well. Thank you for the visual walkthrough!

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

    Great video with no mistakes. Keep up the good work 👍

  • @krishnakumari606
    @krishnakumari606 6 ปีที่แล้ว

    I am so glad to say that I find the solution to the problem through you sir thank for helping

  • @karinacomiskey8442
    @karinacomiskey8442 7 ปีที่แล้ว

    Thank you! You explain very fast and very clear!

  • @rahul_j_mathur
    @rahul_j_mathur 8 ปีที่แล้ว

    Thank you very much! It was very well done. I've followed it now, much better than our lecturer.

  • @kelvinmuliamin9229
    @kelvinmuliamin9229 10 ปีที่แล้ว

    this is your first time and you're alrdy good

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

    TBH, he's totally right on the first comment. It is near midnight and I just started studying for my Discreet Math exam tomorrow...

  • @firozbhuyian7172
    @firozbhuyian7172 7 ปีที่แล้ว

    Dear Professor, Thank you very much for your tutorial ......!!!

  • @slayerq3
    @slayerq3 9 ปีที่แล้ว

    Precise and clear. Very helpful video. Thanks!

  • @zohaibyousaf1812
    @zohaibyousaf1812 6 ปีที่แล้ว

    My first comment for any educational video on youtube :). Best video on the topic i found. Keep it up

  • @Hazeod
    @Hazeod 6 ปีที่แล้ว

    Thanks for this video, it helped me understand it so easily compared to other videos.

  • @dadeeabode7850
    @dadeeabode7850 9 ปีที่แล้ว

    For those who were criticizing your language, I just want tell them that this is a mathematics session that means the objectives behind this session is only to solve such problem(shortest path) not to improve your language.

  • @davidcooke6809
    @davidcooke6809 9 ปีที่แล้ว

    Great video, helped me during the exam!!

  • @johng5295
    @johng5295 6 ปีที่แล้ว

    Thanks in a million!!!! Santitham.

  • @projectstarhubcitylive4473
    @projectstarhubcitylive4473 8 ปีที่แล้ว

    At the night of End Semester ... glad to watch .....

  • @rishabhbharti7491
    @rishabhbharti7491 7 ปีที่แล้ว

    That was just awesome . So simple and clear. Thanks for the video . I hope you keep uploading them :)

  • @sarashtisingh4728
    @sarashtisingh4728 8 ปีที่แล้ว

    good work. I like the video and understood also

  • @90abyss
    @90abyss 6 ปีที่แล้ว

    a->c->b->d->e->z

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

    I have a question: Once fixed "E", if the path-cost E-Z had been 30 instead of 3, what would have happened?

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

    Thank you very much. Its great video. your english is perfectly fine. no worries.

  • @TheDreamwas
    @TheDreamwas 9 ปีที่แล้ว

    Thank u bro. Its a great video. U explained this tough algorithm so easily .... N in a very shortcut way.
    Thanks alot !!!!

  • @sujanbhattarai5625
    @sujanbhattarai5625 8 ปีที่แล้ว

    good one... i understood it very well

  • @runofthemillnpc
    @runofthemillnpc 7 ปีที่แล้ว

    Whoa! You can tell future! That's trippy man!

  • @nikhilgupta2637
    @nikhilgupta2637 8 ปีที่แล้ว

    ur vedio is so good for study
    thnks for uploading

  • @liuyajie6496
    @liuyajie6496 6 ปีที่แล้ว

    The day after tomorrow the exam. Nice lecture.

  • @jistechlogs
    @jistechlogs 3 ปีที่แล้ว

    Its almost 2022 and this video still helps 😄😊

  • @ichevtchenko
    @ichevtchenko 9 ปีที่แล้ว +146

    Am I the only one watching this out of personal interest and not have an exam on this the next day?!

  • @ahmadkhanniazi
    @ahmadkhanniazi 6 ปีที่แล้ว

    I have my mid-term exam at 1:30pm and I'm watching this video at 6:08am the same day

  • @GoodNewsForStrangers
    @GoodNewsForStrangers 8 ปีที่แล้ว

    Thanks, at first you were hard to understand but now I get it :)

    • @santitham55
      @santitham55  8 ปีที่แล้ว

      lol. That was my first time trying it as well.

  • @kaushikdas8238
    @kaushikdas8238 7 ปีที่แล้ว

    Thanks man. To the point explanation

  • @megharao1718
    @megharao1718 8 ปีที่แล้ว

    That was a very helpful video!

  • @pirjq9993
    @pirjq9993 6 ปีที่แล้ว

    Buddy, exams over and now's the time to learn. Thanks

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

    hey pls what t-series will do in 19 april

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

    This helped me through. thank you alot buddy! :)

  • @rachanonkramakum3626
    @rachanonkramakum3626 9 ปีที่แล้ว

    เข้าใจง่ายดีครับ ขอบคุณมากๆครับ กำลังทำรายงานอยู่เลย ^ ^

  • @hussainhaider3162
    @hussainhaider3162 7 ปีที่แล้ว

    excellent explanation. keep it up!

  • @yapic2
    @yapic2 7 ปีที่แล้ว

    Watching this after my Calculus exam... but hours before my Data Structures one.

  • @namramumtaz9061
    @namramumtaz9061 5 ปีที่แล้ว

    Is this algorithm worsks on undirected graph also??

  • @KhushalBadhan
    @KhushalBadhan 6 ปีที่แล้ว

    Don't have exam, but watching this cause I need this in my game design

  • @mguay
    @mguay 5 ปีที่แล้ว

    Thank you!

  • @litvakv
    @litvakv 11 ปีที่แล้ว

    This was a great explanation, I finally get it!

  • @IntoTheSettingSky
    @IntoTheSettingSky 9 ปีที่แล้ว +4

    What if e to z was a "5" ... then what...does e still appear in the list of visited nodes?

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

      IntoTheSettingSky If e to z was '5', then we would not have updated z in last step since (10+5=15) > 14. In that case the shortest distance to z would have been 14 only with d as the predecessor of z.

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

      IntoTheSettingSky You visit e before you look at that number.

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

    00:10 in South Africa, and I am writing on thursday😊

  • @dadeeabode7850
    @dadeeabode7850 9 ปีที่แล้ว

    Thank you very very very much, it helped me a lot

  • @tomada36
    @tomada36 9 ปีที่แล้ว

    Is this the sequential version or distributed implementation?

  • @omedali5561
    @omedali5561 10 ปีที่แล้ว

    thank u......it is instant and farther halpfull for me

  • @user-yo8bm3vd3h
    @user-yo8bm3vd3h 9 ปีที่แล้ว

    Nice video! What program do you use to make the graph?

  • @QuiteRiQuite
    @QuiteRiQuite 8 ปีที่แล้ว

    So are there technically twice as many arcs, because there aren't any directional arrows?

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

    it is indeed midnight before my exam

  • @GeorgeStanmore
    @GeorgeStanmore 9 ปีที่แล้ว

    Thanks. It works perfect just like you said.

  • @the1anomoly
    @the1anomoly 10 ปีที่แล้ว

    Good vid, very clear, thanks a lot!

  • @yodanz123
    @yodanz123 9 ปีที่แล้ว

    Great tutorial dude

  • @aadityakumar2259
    @aadityakumar2259 6 ปีที่แล้ว

    Watching just a night before final exam😀😀 wish me luck... Thanks

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

    It's 2 AM and tommorrow at 7 AM i have exam so, thank you for enlightening me :)

    • @naseebthapaliya5596
      @naseebthapaliya5596 10 ปีที่แล้ว

      guff thokyo prithivi le feri,haha,7 AM exam re.. :P

  • @Andybaby
    @Andybaby 9 ปีที่แล้ว

    Brilliant, thank you!

  • @KURD1SHONE
    @KURD1SHONE 7 ปีที่แล้ว

    How about adding arrows that show where each node is pointing to?

  • @adrianmavutula4067
    @adrianmavutula4067 5 ปีที่แล้ว

    Hey having my end of sem next week anyway thank u...........appreciate

  • @pratishthaagarwal358
    @pratishthaagarwal358 10 ปีที่แล้ว

    excellent.very helpful.thankyou.

  • @santitham55
    @santitham55  11 ปีที่แล้ว

    Hi. For editing video, I used iMovie. But for creating it, I used S Notes and Screencast on the Galaxy Notes 10.1.

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

    Nicely explained!

  • @darbydurack2260
    @darbydurack2260 5 ปีที่แล้ว

    good job dude, you should put more up :)

  • @sonalgavas8880
    @sonalgavas8880 7 ปีที่แล้ว

    thanks...doubts are cleared now :)

  • @trrkiran001
    @trrkiran001 10 ปีที่แล้ว

    Hi, I have a quick question, What if cd's weight is 4 instead of 8.?
    cost's at C would be b(2+1 =3), d (2 + 4 =6) and e (2+ 10 = 12).
    The algorithm still chooses b as its lowest at that point i.e 3 but, in this case the shortest path would be a-c-d-e-z = 11 and the algorithm would still choose the path with 13??
    can you explain this condition what would happen?

    • @quinton_miller
      @quinton_miller 10 ปีที่แล้ว

      After selecting B, we would evaluate the cost of going to D. First, let's set it equal to 8, because B is 3 and the edge (B,D) is 5.
      But, then we look at edge (C,D). The cost of that edge is now 4. 4 + the cost of C (2) = 6, so we change the cost of D to 6 and go there instead.
      Hope that helps!

  • @antooswin9619
    @antooswin9619 6 ปีที่แล้ว

    What will happen if edge e-z is 5? Will a-b-d-z be chosen as the shortest path?

  • @kanchanagore1051
    @kanchanagore1051 9 ปีที่แล้ว

    ooohh my it seriously is midnight! thanks for the explanation by the way. ohh and i do have a final exam tomorrow!

  • @daveysigger3859
    @daveysigger3859 11 ปีที่แล้ว

    Hi there,
    What app did you use?
    THX

  • @VenkateshNair
    @VenkateshNair 8 ปีที่แล้ว

    thnks sir....incase while updating the cost, if the previous cost is lesser... so then no need to update,right?

  • @ahmednawazkhan2450
    @ahmednawazkhan2450 8 ปีที่แล้ว

    the video is great. Thanku

  • @jeanbilong7577
    @jeanbilong7577 6 ปีที่แล้ว

    How can you calculate the shortest path starting at A going through all of the nodes and returning at A? C++ or Java

    • @santitham55
      @santitham55  6 ปีที่แล้ว

      You are referring to Hamiltonian circuit/cycle. It is an NP-complete problem. Please refer to more mathematical background before looking at the code. mathworld.wolfram.com/HamiltonianCycle.html

  • @enderMaiden
    @enderMaiden 11 ปีที่แล้ว

    Thank you! This helped me quite a bit :)

  • @ranjana_official
    @ranjana_official 9 ปีที่แล้ว

    What would we do if the cost of "d" is 8 , cost of "e" is 7 and "z" infinity? Would we move from a to c to e?

  • @alvesdds
    @alvesdds 10 ปีที่แล้ว

    what if the first point is A and the last point is also A. You want to travel through all points only once and back to source? Do you know a solution for that?

  • @nguyenngoctu9998
    @nguyenngoctu9998 10 ปีที่แล้ว

    You saved my life! Thank you so much xD

  • @balramchaudhary6449
    @balramchaudhary6449 6 ปีที่แล้ว

    what if edge "ez" have length 10,then you still have to choose vertex 'e' instead of vertex "z" because 'e' has low number compared to z but choosing z will give the shortest path.

  • @waffledude111111
    @waffledude111111 10 ปีที่แล้ว

    thank you that was rather helpful.

  • @grizzlybear5701
    @grizzlybear5701 8 ปีที่แล้ว

    Thank you very much.

  • @chuckleomg
    @chuckleomg 10 ปีที่แล้ว

    How did you record this video? It looks like you're using S Note on a Samsung Galaxy Note tablet.

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

      It is just like you said. I used Screencast to capture the video screen of the old Samsung Galaxy Note tablet.

  • @franciscomoradovalenzuela3332
    @franciscomoradovalenzuela3332 8 ปีที่แล้ว

    Thank you so much, so easy with your video :D

  • @ShubhamKumar-pe3dt
    @ShubhamKumar-pe3dt 9 ปีที่แล้ว +3

    Should make a table, make it visually more clear

  • @raag3munjal
    @raag3munjal 8 ปีที่แล้ว

    thank you so much
    this method helped me a lot :)

  • @nadjikernel9110
    @nadjikernel9110 11 ปีที่แล้ว

    thank you for this explanation

  • @Mailman2-1Actual
    @Mailman2-1Actual 7 ปีที่แล้ว

    "hello students, it is already midnight"
    me: no its not *looks at clock
    me: OMG IT IS!!

  • @memorablename5187
    @memorablename5187 8 ปีที่แล้ว

    good example my friend

  • @gdr733
    @gdr733 6 ปีที่แล้ว

    great video! thanks! better than my professor lol.

  • @vyomkjain
    @vyomkjain 8 ปีที่แล้ว

    If we get both value same.. Which one should be considered as minimum....
    ?

    • @akshatsunny
      @akshatsunny 8 ปีที่แล้ว

      +VYOM JAIN any one..doesnot matter

  • @andyGPT101
    @andyGPT101 10 ปีที่แล้ว

    Nice work

  • @danteeep
    @danteeep 7 ปีที่แล้ว

    that was excellent thanks

  • @ZigBeeMan1
    @ZigBeeMan1 11 ปีที่แล้ว +4

    Well done Buk-Lau

  • @hiteshnyanyan6310
    @hiteshnyanyan6310 6 ปีที่แล้ว

    Sir you made a great video, your video of dijkstra algo have biggest views(819k) as compare to any other video of din katra algo. Sir why have you stoped making videos pls make more videos these are really very helpful

  • @chaconne221
    @chaconne221 11 ปีที่แล้ว

    Thank you for this!

  • @RushikeshAgasheCourses
    @RushikeshAgasheCourses 9 ปีที่แล้ว

    Thanks for the video :)

  • @TechAspiron
    @TechAspiron 7 ปีที่แล้ว

    How do the sides 1,5 and 8 make a triangle?

    • @TechAspiron
      @TechAspiron 7 ปีที่แล้ว

      Actually, how are any of those triangles possible?

    • @adityasanket070796
      @adityasanket070796 7 ปีที่แล้ว

      Tech Aspiron They are not edges of a triangle, they are just costs of traversing a path. They've got nothing to do with triangles at all.

  • @abdulmalektamesh2809
    @abdulmalektamesh2809 7 ปีที่แล้ว

    the shortest path is 13 e , can you list them due to the graph?