00:01
In this question, we need to find the minimum cost weight of a spanning tree of each with the help of given input.
00:08
So if we talk about the first part of the problem, we can here say that let us write it 1 and then it will be 2 and then it will be here written as 0.
00:19
Now if we join them, they will look like this and then over here they will look like this.
00:25
And we can name these paths as one and this one will be my two and then this one will be three.
00:34
So here we can say weightage of all age will be, let us write it, w -e -i -g -h -t, so weight of all ages.
00:48
So this one can be written as over here.
00:51
So basically we can say for 0 1, it will be 1, and then for 1 2, it will be 2, and then here, for 2, 0, it will be 3, right? so we can here say that from kruskal algorithm, let us write the word.
01:14
So it is k -r -u -s, k -a -l -s, and then it will be.
01:21
Algorithm.
01:23
So from this very algorithm we will be able to write that minimum spanning tree will be equals to so we can just underline this one because this is very important part of the answer.
01:37
So we can here say that minimum spanning tree can be written over here as weight and this will be equals to 1 plus 2 and this.
01:51
Comes out to be equal to 3.
01:54
So the answer for the first part of this problem is 3...