Graph Theory: Dijkstra's Algorithm

  Рет қаралды 115,640

Mathispower4u

Mathispower4u

Күн бұрын

Пікірлер: 35
@numidianarchers195
@numidianarchers195 2 жыл бұрын
Dijkstra's takes a bit to comprehend but I found it useful to keep in mind your introductory declaration that the aim of Dijkstra's Algo'm is to find the shortest path between two vertices. This implies that every path's distance is calculated and compared. Remembering this helped me understand this video (which I so happened to view several times).
@spleen387
@spleen387 9 жыл бұрын
I noticed you didn't keep track of the vertexes/path that you took to each node to give it its score. that makes it a little unclear as to why you traced the path that you did in the end
@aaronsmarrella3239
@aaronsmarrella3239 8 жыл бұрын
Going backwards from A to G, you look at where the current vertex weight was, since a few vertices had the numbers marked out, that means that that edge is no longer the shortest path. For example, when he went from A, he did not go from A to C because that gave a value of 15, where 13 is less- So B is next, then from B he did not go from B to E because its value was marked as 13 and the lowest was 12-so D. From D the lowest value was 9 not 10 so he went from D to E, not F because D to F was 10, and lastly from E he went to G because it had a value of 7. Again, he did not go from D to F to G because that gave a value of 4 + 6 or 10. and 10 is higher than the value of 9 given to D. So he simply went back the path that gave the lowest number. He didn't keep track of the vertices/path as he was going because it could easily be changed as he went on depending on which edge gave the lower value. He would have to keep on marking it then removing it. It gets easier to follow the final path by looking at the numbers on the vertices and which numbers got marked out so you don't go down the wrong path. I hope that makes sense
@spleen387
@spleen387 3 жыл бұрын
@Hortensia Wolfing it's a scam lol dont fall for it
@monoman4083
@monoman4083 3 жыл бұрын
marking not clear for route back at b+d
@fauzytech
@fauzytech 7 жыл бұрын
should we do trackback in the end?
@89coolsush
@89coolsush 10 жыл бұрын
Very clear and to the point. Good work.
@senthilkumarb2761
@senthilkumarb2761 8 жыл бұрын
way of explanation is fantastic
@Mathispower4u
@Mathispower4u 8 жыл бұрын
Thank you for the comment.
@nunosm9106
@nunosm9106 9 жыл бұрын
Best tutorial on youtube
@Mathispower4u
@Mathispower4u 9 жыл бұрын
+Nuno SM Thank you for the comment and for watching.
@syedmasroorhussain
@syedmasroorhussain 4 жыл бұрын
How did you calculate the last shortest path? The one which is labelled 13? I'm confused because you used all the vertices and chose a different path containing less vertices than the total amount of vertices
@chelseygiot8390
@chelseygiot8390 4 жыл бұрын
Hi, in graph data structure, if average path length is 2π and a longest geodesic of ≥ 6π, how to draw node- link diagram ?
@isabelelsneralmonte5512
@isabelelsneralmonte5512 8 жыл бұрын
Hey, what if i have a much large number of vertex? is there a way to do it faster?
@jonathanorozco5689
@jonathanorozco5689 8 жыл бұрын
Such a good video. THANK YOU.
@MujeebulHasan
@MujeebulHasan 9 жыл бұрын
How do you find shortest Path is ABDEG ...
@SlavqBeats
@SlavqBeats 9 жыл бұрын
Mujeebul Hasan Yeah, I'm wondering the same thing...
@Imfors4ken
@Imfors4ken 9 жыл бұрын
Hi.. I had the same question at first but then I came with a solution ... just add a name of the vertex, which was the starting point for the shortest value (path). So 13-B, 12-D, 9-E, 7-G. What do you guys think ?
@SlavqBeats
@SlavqBeats 9 жыл бұрын
I've implemented it and it works when i do something like this: Start from starting vertex (A in this case) and go to neighbor vertex with less edge weight + vertex distance. So in this case, we don't go to C, because 4+11 > 1+12. So we go to B. Then we go to D, because 3+9 (D) is less than 6+7 (E). Then, from D we go to E because 2+7 (E) is less than 4+6 (F) and less than 2+11 (C). And so on, until we reach destination vertex G.
@lucyjenny1987
@lucyjenny1987 9 жыл бұрын
Mujeebul Hasan we have an extra tag for parent node at each node. when a node's distance gets updated because of a previously visited node, its parent node gets updated. for eg, in the above example, when D's distance changed from 10 to 9, its parent change from F to E.
@spleen387
@spleen387 9 жыл бұрын
+Lucy Jenny that's how its supposed to be done XD
@sudipsah9395
@sudipsah9395 7 жыл бұрын
but you have visited vetex F also and you have marked it
@mohammadrostami6125
@mohammadrostami6125 5 жыл бұрын
You made my day.
@sensei0101
@sensei0101 10 жыл бұрын
Briliant, just briliant
@amateurbeginner7538
@amateurbeginner7538 7 жыл бұрын
It not that some people has some will power and some dont , it is that some people are ready to change and others are not :) :)
@vikasraj9497
@vikasraj9497 9 жыл бұрын
why shortest path from only a,b,d,e,g.why not a,b,e,g or a,e,f,g.
@slowdown_
@slowdown_ 9 жыл бұрын
+Vicky Torronto first: a,e,f,g is not possible. second a,b,e,g is 14 so its not the shortest ? if u cant simple math then u are wrong here...
@mastimaro770
@mastimaro770 8 жыл бұрын
thank you very much sir!!
@football24hd1
@football24hd1 11 жыл бұрын
thank you it was very helpful
@shoshoar6414
@shoshoar6414 10 жыл бұрын
thank U ^_____^ it's such a good video :))
@ritikanegi1604
@ritikanegi1604 7 жыл бұрын
Thank you so much
@lateshpatil9262
@lateshpatil9262 8 жыл бұрын
ty man...
@vijayaganeshselvakumar1534
@vijayaganeshselvakumar1534 8 жыл бұрын
thanks
@qa1030
@qa1030 10 жыл бұрын
thanx now i understood ^^
Graph Theory:  Euler Paths and Euler Circuits
9:52
Mathispower4u
Рет қаралды 406 М.
How to have fun with a child 🤣 Food wrap frame! #shorts
0:21
BadaBOOM!
Рет қаралды 17 МЛН
Andro, ELMAN, TONI, MONA - Зари (Official Audio)
2:53
RAAVA MUSIC
Рет қаралды 8 МЛН
How Dijkstra's Algorithm Works
8:31
Spanning Tree
Рет қаралды 1,4 МЛН
❖ Dijkstra's Algorithm : A Quick Intro on How it Works ❖
8:55
Dijkstra's Algorithm
22:52
VCE Further Maths
Рет қаралды 38 М.
Dijkstra's Shortest Path Algorithm | Graph Theory
24:47
WilliamFiset
Рет қаралды 215 М.
Graph Data Structure 4. Dijkstra’s Shortest Path Algorithm
10:52
Computer Science Lessons
Рет қаралды 1,5 МЛН
Graph Theory:  Fleury's Algorthim
4:03
Mathispower4u
Рет қаралды 96 М.
Dijkstra Algorithm
13:44
Lalitha Natraj
Рет қаралды 160 М.
3.6 Dijkstra Algorithm - Single Source Shortest Path - Greedy Method
18:35
The hidden beauty of the A* algorithm
19:22
Polylog
Рет қаралды 921 М.