Prim's algorithm finds a minimum-cost spanning tree of an edge-weighted, connected, undirected graph . The algorithm constructs the minimum-cost spanning tree of a graph by selecting edges from the graph one-by-one and adding those edges to the spanning tree. http://compprog.wordpress.com/2007/11/09/minimal-spanning-trees-prims-algorithm/
No comments:
Post a Comment