00:04
We're given a weighted graph and we're asked to find a spanning tree with minimal total weight that contains two edges from this weighted graph.
00:14
So the weighted graph is the one in figure 3 from the book in this section.
00:20
And we're asked to find a spanning tree with the minimal total weight contains the edges ei and gk.
00:30
So to do this, i'll use crucible algorithm.
00:34
So first of all, i'll construct a graph, which can consists only of the vertices of the weight graph.
00:44
So this is the vertices, abc, e, f, g, h, i, j, k, and l.
00:51
And start off, we'll first add the edges, ei, and gk, as we're required to do.
01:08
And these both have a weight of four.
01:23
And now we'll be applying kriscol's algorithm to determine the remaining edges.
01:27
So we have that the smallest weight, of the remaining edges of 1 occurs between b and f, c and d, and k and l.
01:40
So first if we add bf, we see that we don't create a circuit, so this is valid.
01:50
If we add cd, we don't create a circuit, so this is also valid.
01:56
And if we add kl, we don't create a circuit, so this is valid too.
02:06
Now in the remaining graph, the smallest weight, which is 2, is between the same.
02:12
Between a and b between c and g and between f and j.
02:18
So first, if we add a and b, we don't obtain a circuit...