00:01
We are given a weighted graph and we are asked to use cruikuls algorithm to find a minimum spanning tree for this graph.
00:10
The weighted graph we're given is the one from exercise 3, which is a weighted graph on the vertices, a, b, c, d, e, f, g, h, and i.
00:21
We call that an exercise 3.
00:23
We're asked to use prims algorithm to find the minimum spanning tree.
00:27
So essentially, this is a very similar problem except for now we're using cruikers algorithm.
00:37
Refer on to the book for the edge weights.
00:42
Now, the first step of cruikers ' algorithm is to draw the weighted graph with none of its edges.
00:47
So we just have the vertices, a, b, c, d, e, f, g, and i.
00:52
The next step is to find the edges with the smallest weights.
00:58
So we see that the smallest weight in this graph is 1, which belongs to the edge ef.
01:06
So we'll add this edge to the graph.
01:09
The next step is look for the next smallest weight.
01:15
So the smallest weight in the remaining graph is going to be 2, which belongs to the edges ad and h .i.
01:24
So first let's add ad.
01:27
This is perfectly valid.
01:28
It doesn't cause any circuits.
01:31
And let's add hi.
01:32
This is also valid.
01:33
It does not cause any circuits.
01:39
And now the smallest weight in the remaining graph is 3.
01:44
And this belongs to the edges bd, c .f.
01:48
And eh...