Prim Graph
1:48
Added: 3 years ago
From: GreenfordMaths
Views: 15,172
Sort by time | Sort by thread (beta)

Link to this comment:

Share to:

All Comments (19)

Sign In or Sign Up now to post a comment!
  • very easy to understand visual representation - good work for the entire collection of

    videos on graphs!

  • Thank you very much !

    Very nice video (good explanation, good visualization)

    Can you also post a video for Bellman-Ford and also Walkerson?

  • 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

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

  • thx man ,i totally understand ,thax alot for the example

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

    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.

  • Yes. Prim's Algorithm assumes you are given an initial starting point.

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

  • @bobisabuilder You can choose any vertice you want 

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

  • Brilliant! more videos like that. Its so simple and well-said. And You have great voice, its easy to understand if ur non-english guy.

    Good job=]

  • awesome

  • Simple and easy to understand! Thank you!

  • Thank you mate

  • thanks mate, very very useful.

    I have an exam today, and thanks to your videos, I'll be OK with Kruskals and Prims :)

    THANK YOU.

  • Thanx pal

Loading...
Alert icon
0 / 00Unsaved Playlist Return to active list
    1. Your queue is empty. Add videos to your queue using this button:
      or sign in to load a different list.
    Loading...Loading...Saving...
    • Clear all videos from this list
    • Learn more