1 / 7

Minimum Spanning Trees

Minimum Spanning Trees. By: Arya Soltanieh. MST. A minimum spanning tree connects all the nodes of a given graph An MST must have all of the following: Connected Undirected An MST can have the following: Weighted edges An undirected graph can have multiple MSTs, depending on:

blythe
Télécharger la présentation

Minimum Spanning Trees

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


  1. Minimum Spanning Trees By: Arya Soltanieh

  2. MST • A minimum spanning tree connects all the nodes of a given graph • An MST must have all of the following: • Connected • Undirected • An MST can have the following: • Weighted edges • An undirected graph can have multiple MSTs, depending on: • The algorithm being used • If you wish to have the MST with a specific starting node • If there are weighted edges AND all of the edges are distinct • the MST will be unique (only one MST)

  3. Borůvka's algorithm • The first MST algorithm was designed by Boruvka in 1926 • The algorithm was used to create efficient connections between the electricity network in the Czech Republic • The algorithm is no longer used now that Prims and Kruskals Algorithms have been discovered

  4. Prim’s Algorithm • Finds the MST for connected AND weighted graphs. • It was actually discovered in 1930 by Vojtech, but Prim ‘rediscovered’ it in 1957 • Prim’s starts at any given node, then finds the shortest path to any node it is connected to or that it has already established as within its shortest path subtree

  5. Prim Example:

  6. Kruskal’s Algorithm • Finds the MST by taking the smallest weighted edge in the graph, connecting it, and repeating until all nodes are connected with NO cycles. • This is done by • creating a queue with all edges • finding the minimum weight route between two nodes IF a route does NOT exist • adding that edge to the tree • removing that edge from the queue

  7. Kruskal’s Example

More Related