00:01
We're given a weighted graph and we're asked to find a maximum spanning tree for this graph.
00:08
The weighted graph is the one in exercise three.
00:13
If you look in the book, you see that this is a graph on vertices a, b, c, d, e, f, g, h, i with weighted edges.
00:24
And to find a maximum spanning tree for this graph, we're going to use a modified version of cruikull's algorithm, which we derived in earlier exercise.
00:42
So the first step of cruikull's algorithm is to start with the graph that contains only the vertices and no edges of our giving graph.
00:51
So first we just pointed to all the vertices, a, b, c, d, e, f, j, g, h, and i.
01:08
In the next step, i'm going to find the edge with the largest weight in the given graph this is 8 and it occurs between d and h so i'll add the edge dh in the next step find in the remaining graph the edge with the largest weight this is 7 and it occurs between d and e so i'll add this edge to our graph so it does not create a circuit in the next step i'll find the edge with the largest weight in the remaining graph.
02:02
This is now six, and this occurs between d and g and f.
02:08
So first, consider dg.
02:12
If we are to add edge dg, this will not create a circuit, so this is perfectly valid.
02:20
And if we are to add the edge ef, we also won't create a circuit there, so that's also valid.
02:30
I'm sorry, d and f, my mistake...