18.04.2013 Views

The.Algorithm.Design.Manual.Springer-Verlag.1998

The.Algorithm.Design.Manual.Springer-Verlag.1998

The.Algorithm.Design.Manual.Springer-Verlag.1998

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

Minimum Spanning Trees<br />

Next: Prim's <strong>Algorithm</strong> Up: Graph <strong>Algorithm</strong>s Previous: Modeling Graph Problems<br />

Minimum Spanning Trees<br />

A tree is a connected graph with no cycles. A spanning tree is a subgraph of G that has the same set of<br />

vertices of G and is a tree. A minimum spanning tree of a weighted graph G is the spanning tree of G<br />

whose edges sum to minimum weight.<br />

Figure: Two spanning trees of point set (a); the minimum spanning tree (b), and the shortest path from<br />

center tree (c)<br />

Minimum spanning trees are useful in finding the least amount of wire necessary to connect a group of<br />

homes or cities, as illustrated in Figure . In such geometric problems, the point set defines a<br />

complete graph, with edge assigned a weight equal to the distance from to . Additional<br />

applications of minimum spanning trees are discussed in Section .<br />

A minimum spanning tree minimizes the total length over all possible spanning trees. However, there can<br />

be more than one minimum spanning tree in any graph. Consider a graph G with m identically weighted<br />

edges. All spanning trees of G are minimum spanning trees, since each contains exactly n-1 equal-weight<br />

edges. For general weighted graphs, however, the problem of finding a minimum spanning tree is more<br />

difficult. It can, however, be solved optimally using two different greedy algorithms. Both are presented<br />

below, to illustrate how we can demonstrate the optimality of certain greedy heuristics.<br />

file:///E|/BOOK/BOOK2/NODE73.HTM (1 of 2) [19/1/2003 1:29:13]

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!