00:01
Okay, with the kruskal's algorithm, the first step is to count the number of vertices.
00:07
We're going from v0 to v7, so there are eight vertices, and that means i've got to find seven edges, one less than the number of vertices.
00:23
Always start with the least weighted edge.
00:27
That will be 2 here from v3 to v4.
00:37
V3, v4, the first one, length 2.
00:41
Next will be 4, and the key thing is do not complete a cycle.
00:51
So far we're fine, so v0, v5 is the next one, length 4.
01:00
Then we have 5 here, length 5, v1, v3.
01:10
After 5 we have 7, but 7 is no good.
01:14
If i do 7, it completes the cycle, and that's not going to work, so i skip 7.
01:20
Go on to 8, which is v5, v6.
01:29
After 8 we have 10, and 10 is good, no cycle completed.
01:37
So v4, v5 is 10.
01:44
Next we have, well, 12 is no good...