00:01
So we need to draw two different spanning trees with this graph, first using a breadth -first search, and, or first using a depth -first search, and then a breadth -first search.
00:10
Trees are green, so i'm going to draw my spanning trees in green here, a little bigger.
00:18
And first, so first we have a depth -first search, so we're starting at a, we're going to go to the smallest node available, b, then from b we'll go to the smallest node, again by the alphabetical ordering available, which is e.
00:35
E can now go either to h, c, f, or i, so it's going to go to c, which then goes to f, which then goes to i, which can't do anything, right? i no longer connects to an unconnected node, so we'll go backtrack here until we find e has something that it can connect to.
00:59
H can go to g, which can go d, and there's our spanning tree...