Graph Data Structure 4. Dijkstra’s Shortest Path Algorithm

Graph Data Structure 4. Dijkstra’s Shortest Path Algorithm

Computer Science Lessons

9 лет назад

1,577,589 Просмотров

Ссылки и html тэги не поддерживаются


Комментарии:

@haoyangli5781
@haoyangli5781 - 03.06.2023 12:25

saved my damn ass before exam lol

Ответить
@apokalypthoapokalypsys9573
@apokalypthoapokalypsys9573 - 05.06.2023 00:23

it's funny because for a moment, I thought you said "Dijsktra's algorithm creates disinformation" and then I realized I'm spending too much time with politics.

Ответить
@sheeesh3045
@sheeesh3045 - 14.06.2023 15:37

الله يجعلك مسلم و يدخلك الجنة

Ответить
@alexdesander
@alexdesander - 28.06.2023 10:23

Phenomenal video, nothing else has to be said.

Ответить
@hienhoanggg
@hienhoanggg - 20.07.2023 06:20

ah shii the finalized prev vertex column makes D E A D
welp i guess dude is tryin to tell me something...

Ответить
@GANDHIXtv
@GANDHIXtv - 21.07.2023 03:41

Best video on Dijkstra's by a considerable margin. Subbed.

Ответить
@tanrosa
@tanrosa - 14.08.2023 12:13

Amazing!!!!!!!

Ответить
@predatorgamer9710
@predatorgamer9710 - 22.08.2023 14:28

Tomorrow I have my exams on this topic.. This is the best video about djkstras algorithm on whole internet

Ответить
@stuffboutthegovermet
@stuffboutthegovermet - 21.09.2023 17:59

So easy to follow. Best video I’ve seen on this algorithm

Ответить
@taruchitgoyal3735
@taruchitgoyal3735 - 10.10.2023 11:45

I haven't found a better tutorial than this for understanding and computing distances using Dijkstra's algorithm. Thank you so much.

Ответить
@Ali-qm8ix
@Ali-qm8ix - 24.10.2023 20:10

omg useful

Ответить
@NightDay1
@NightDay1 - 01.11.2023 17:08

Nah. Not working for all graphs. It's have to be cycle graph. usless

Ответить
@rubenbarbeiro6078
@rubenbarbeiro6078 - 22.11.2023 20:17

Thank you for this amazing video!

Ответить
@smith1923
@smith1923 - 29.11.2023 07:51

This is by far the best video I've seen on this algorithm. It is clear and doesn't skip any steps.

Ответить
@thomasfrank132
@thomasfrank132 - 03.12.2023 04:42

Thank you. You are my Professor. Not my actual professor

Ответить
@starrynight43451
@starrynight43451 - 09.12.2023 11:34

Thank you for helping students ❤

Ответить
@baluandhavarapu
@baluandhavarapu - 10.12.2023 02:50

Note: If you change the criteria to select the next node to visit, you can no longer skip already visited nodes while iterating. Choosing the shortest path in each step ensures that visited nodes have the best path for the rest of the calculation

Ответить
@Jukebox300Minecraft
@Jukebox300Minecraft - 20.12.2023 23:52

Wow it's an honor to be learning this from Computer Science itself

Ответить
@ZainSuleiman666
@ZainSuleiman666 - 06.01.2024 22:37

You saved my exam thank you so much!!

Ответить
@mahdiyg2665
@mahdiyg2665 - 08.01.2024 13:24

thanks❤

Ответить
@agustinlawtaro
@agustinlawtaro - 04.02.2024 15:08

Great video, many thanks!

Ответить
@danielmuzanni7978
@danielmuzanni7978 - 06.02.2024 18:31

thank you sir for your service

Ответить
@SimplyAngel
@SimplyAngel - 23.03.2024 23:52

im gonna cry i dont get it still

Ответить
@primalmachine7945
@primalmachine7945 - 01.04.2024 23:09

so instead of saying unkown we say infinity got it. if someone asks me what is the distance to the closes restroom i can reply with infinity. can you even imagine how dumb that sound.

Ответить
@zookaroo2132
@zookaroo2132 - 03.04.2024 18:06

What if the graph contains one vertex that might be not visited?

Ответить
@piyushgoenka6087
@piyushgoenka6087 - 04.04.2024 17:58

best djikstra explanation

Ответить
@elrichardo1337
@elrichardo1337 - 23.04.2024 12:13

holy shit watching this is a revelation

Ответить
@yikechen1470
@yikechen1470 - 27.04.2024 02:36

You are the KING THE SAVIOUR OF ALL CS MAJORS THANK GOD YOU MADE THIS VIDEO!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!

Ответить
@mellowgolld
@mellowgolld - 11.05.2024 01:54

beautifully explained.

Ответить
@SupremeAntWorker
@SupremeAntWorker - 15.05.2024 18:54

the parent column spells out DEAD 😂, love your humor

Ответить
@michael_scarn_
@michael_scarn_ - 15.05.2024 21:03

Thank you so much!!! Did not understand this. Now I do :)

Ответить
@Sanazy21
@Sanazy21 - 22.05.2024 16:03

His previous distant is “DEAD”

Ответить
@anush5989
@anush5989 - 31.05.2024 15:56

Thanks

Ответить
@georgeyxu
@georgeyxu - 10.07.2024 00:30

THE BEST !!!

Ответить
@Hhong_1120
@Hhong_1120 - 20.07.2024 22:23

The previous vertex is 'D' 'E' 'A' 'D'

Ответить
@BelhajKhalid-k5r
@BelhajKhalid-k5r - 13.08.2024 20:51

Khalid35😂😂😊😊😊🎉

Ответить
@SabaFarshbaf-zc2te
@SabaFarshbaf-zc2te - 21.08.2024 23:57

clear and comprehensive, thanks.

Ответить
@squ1shshr00m
@squ1shshr00m - 24.10.2024 11:41

THANK. YOU.

Ответить
@softwareupdater99
@softwareupdater99 - 30.10.2024 18:58

I have a problem{ we can directly visit from A to D to E and to C which is = 7} which is the shortest one instead of going from A to D to E to B and then C which is = 9 can someone explain it please

Ответить
@daringcalf
@daringcalf - 29.11.2024 20:06

I've watched this the time it was uploaded. I've no idea what it was but I still passed the CCNP exams and found a good job. Now 8 years after that, I fully understand what a priority queue is and what a great man Mr. Dijkstra is, yet I cannot find a decent job and have been unemployed for over a year.

Ответить
@LizyAd
@LizyAd - 10.12.2024 22:12

Thank you so much! Great explanation.

Ответить
@AA-le9ls
@AA-le9ls - 15.12.2024 19:13

If you want to find the shortest distance from A to C, how do you know that the algorithm will take you to the latter vertex? Maybe it will end before you have reached your disered destination, or maybe it will not end at all but go on forever.

Ответить
@lukewood2662
@lukewood2662 - 18.12.2024 10:31

Finally, it took me almost a whole week to get it, finally I understood enough to build this damn thing myself. REALLY appreciate it, man. If I knew how to recommend videos to The Odin Project as learning reference, you would be there.

Ответить
@youssefamr8073
@youssefamr8073 - 25.12.2024 04:48

So basically start from source node :
Then check both of its children and calculate shortest distance of each and previous vertex . Remove source vertex from unvisited nodes and add it to visited nodes .Then pick node with smallest shortest distance and do the same thing again (it will be your source node). When calculating distance add previous distance of current node.However if that node gets a shorter distance to an existing node update that node in table .
Repeat

Ответить
@usairashahbaz7889
@usairashahbaz7889 - 24.01.2025 08:20

Great

Ответить
@joestar3335
@joestar3335 - 27.02.2025 14:36

thank you so much for the best explanation!! learnt this better than my lecture slides easily

Ответить
@vansf3433
@vansf3433 - 01.05.2025 11:33

It's a fictional visualisation because there is not any such square which can have different side lengths, a diagonal smaller than its side length. A lot of nonsense in CS has been ignorantly blindly spread and copied

Ответить
@manarsalem1685
@manarsalem1685 - 05.05.2025 18:15

I watched this video when I was doing my A levels, I watched it during my first year of university. And here I am watching it again in my second year of university. I think this algorithm is never going to stick in my mind and I am always destined to forget it. Thanks for your video I've been literally using it for three years now.

Ответить
@justorestissarris9363
@justorestissarris9363 - 20.05.2025 22:22

goated fr

Ответить