PDF4PRO ⚡AMP

Modern search engine that looking for books and documents around the web

Example: biology

Lecture 7: Minimum Spanning Trees and Prim’s Algorithm

Back to document page

Lecture7:MinimumSpanningTreesandPrim s AlgorithmCLRSChapter23OutlineofthisLectu re Spanningtreesandminimumspanningtrees. Theminimumspanningtree(MST)problem. Thegeneric algorithmforMSTproblem. Prim s algorithmfortheMSTproblem. Thealgorithm Correctness Implementation+ RunningTime1SpanningTreesSpanningTrees:A subgraph of a undirectedgraph is aspanningtreeof if it is a treeandcontainsevery vertex of .Example: abcdeabcdeabcdeabcdeGraphspanningtree1sp anningtree2spanningtree32SpanningTreesTh eorem:Every connectedgraphhasa :Why is thistrue?Question:Givena connectedgraph , how canyoufinda spanningtreeof ?3WeightedGraphsWeightedGraphs:A weightedgraphis a graph,inwhicheachedgehasa weight(somerealnumber).Weightofa : abcdeabcdeabcdeabcde10973223103223977932 23322310weightedgraphTree2, w=71Tree3, w= anundirectedconnectedweightedgraphis a spanningtreeofminimumweight(amongallspan ningtrees).

Minimum Spanning Tree Problem MST Problem: Given a connected weighted undi-rected graph , design an algorithm that outputs a minimum spanning tree (MST) of . Question: What is most intuitive way to solve? Generic approach: A tree is an acyclic graph. The idea is to start with an empty graph and try to add

  Lecture, Minimum, Tree, Spanning, Algorithm, Pirms, Lecture 7, Minimum spanning trees and prim, Minimum spanning

Download Lecture 7: Minimum Spanning Trees and Prim’s Algorithm


Information

Domain:

Source:

Link to this page:

Please notify us if you found a problem with this document:

Spam in document Broken preview Other abuse

Related search queries