Prim Graph
Uploader Comments (GreenfordMaths)
All Comments (19)
-
very easy to understand visual representation - good work for the entire collection of
videos on graphs!
-
It does affect the result if there are multiple equally good solutions - a different start might prefer a different solution
If the edges are totally sorted by preference, there is always exactly one solution, independent on the starting point.
-
Thank you very much !
Very nice video (good explanation, good visualization)
Can you also post a video for Bellman-Ford and also Walkerson?
-
@bobisabuilder i'm guessing you're doing this for University or college right? They'll normally tell you to start from written as starting from U{...}. In this case, written as U{A}.
-
@linkinpark9sc Though I see the rule to this one in comparison to Kruskal.
Kruskal allows you to add lines which are possible to connect but for Prims they must connect in order (From shortest number of the current node)?
They both produce practically the same result though?
-
Basically, you can just go from letter to letter and draw a line from the shortest path? (Unless it makes a complete circuit of course).
This is much easier than Dijkstra
-
thx man ,i totally understand ,thax alot for the example
-
@bobisabuilder You can choose any vertice you want
-
@bobisabuilder If I recall correctly, no you do not have to start at A, like GreenfordMaths says, it will not affect the result, because the algorithm will always choose the lowest weighted edge connecting the current node to the rest of the graph. This is acutally the idea behind the proof for this algorithm.
-
thanks again
do you have to start from A?
or do you chose where to start?
or do they tell you where to start?
thanks
bobisabuilder 2 years ago
@bobisabuilder To be honest, I can't remember.
At the end of the day, unless you're told where to start, it doesn't affect the result.
GreenfordMaths 2 years ago