(Latest Revision: March 12, 2021)

MST Problems


First MST Problem:

Suppose G=(V,E) is a connected undirected graph whose vertex set V is equal to {1,2,3,4,5,6,7}. Suppose that the edges of G are as follows, sorted by increasing weight.
edge  weight

{6, 7}   1  
{1, 6}   2
{1, 7}   3  
{4, 7}   4  
{1, 4}   5  
{5, 7}   6  
{4, 5}   7  
{5, 6}   8  
{2, 3}   9  
{3, 5}  10  
{2, 5}  11
{1, 2}  12
{2, 7}  13
{3, 6}  14
{2, 4}  15
Use Kruskal's algorithm to determine the edges in a min cost spanning tree. In your answer, list the edges in the min cost spanning tree, and their weights, in the order that Kruskal's algorithm would find them.

Second MST Problem:

Use Prim's algorithm to determine the edges in a min cost spanning tree. Assume that node #1 is the start node. In your answer, list the edges in the min cost spanning tree, and their weights, in the order that Prim's algorithm would find them.

Directions For Submitting Solution:

Send an E-mail to
tester2@cs.csustan.edu
with this subject line:
CS 4440 MST Problem
(Copy & Paste that exact subject line. Get it right, or get no credit.)

In the message, first write the words
"Kruskal List," followed by the list of edges in the order that Kruskal's algorithm would choose them.
Write edges just like I did, in the form {x, y} z, where x and y are the ends of the edge and z is the cost.

Second in the message, write the words
"Prim List," followed by the list of edges in the order that Prim's algorithm would choose them.
Write edges just like I did, in the form {x, y} z, where x and y are the ends of the edge and z is the cost.