06.03.2017 Views

Mathematics for Computer Science

e9ck2Ar

e9ck2Ar

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.

“mcs” — 2017/3/3 — 11:21 — page 513 — #521<br />

12.10. References 513<br />

0 0.04 0.08<br />

1<br />

1.04 1.08 1.12<br />

u<br />

0.01 0.05 0.09<br />

w<br />

1.01<br />

1.05<br />

1.09<br />

1.13<br />

0.02 0.06 0.10<br />

1.02<br />

1.06<br />

1.10<br />

0.03 v 0.07 0.11<br />

1.14<br />

Figure 12.35<br />

The 4x4 array graph G<br />

For any step in Prim’s procedure, describe a black-white coloring of the graph<br />

components so that the edge Prim chooses is the minimum weight “gray edge”<br />

according to Lemma 12.9.11.<br />

(c) The 6.042 “parallel” MST algorithm can grow an MST <strong>for</strong> G by starting with<br />

the upper left corner vertex along with the vertices labelled v and w. Regard each<br />

of the three vertices as one-vertex trees. Successively add, <strong>for</strong> each tree in parallel,<br />

the minimum weight edge among the edges with exactly one endpoint in the tree.<br />

Stop working on a tree when it is within distance two of another tree. Continue<br />

until there are no more eligible trees—that is, each tree is within distance two of<br />

some other tree—then go back to applying the general gray-edge method until the<br />

parallel trees merge to <strong>for</strong>m a spanning tree of G.<br />

(d) Verify that you got the same MST each time. Problem 12.63 explains why<br />

there is a unique MST <strong>for</strong> any finite, connected, weighted graph where no two<br />

edges have the same weight.

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

Saved successfully!

Ooh no, something went wrong!