For the following graph and beginning at vertex a, draw the following three trees: 3. Its BFS traversal tree (show the progress of the queue contents as described by the algorithm given in the lecture). 4. Its DFS traversal tree (show the progress of the stack contents as described by the algorithm given in the lecture). 5. Its minimum spanning tree (show that both Prim and Kruskal's algorithms result in minimum spanning trees with the same cost. Show the progress of applying both algorithms).
Notes:
Make sure to break any ties by selecting the vertex
a
h
whose letter comes alphabetically first.
- No programming code is required for this problem.
6
4
5
2
3
e
g