Answer to Question #219391 in Discrete Mathematics for Tran Hao

Question #219391

Use breadth-first search to produce a spanning tree for

each of the simple graphs in Exercises 1 3-15. Choose

a as the root of each spanning tree. 


1
Expert's answer
2021-07-22T11:12:20-0400

• Start with arbitrarily chosen vertex of the graph as the root.

• Add all edges incident to the vertex along with the other vertex connected to each edge

– The new vertices added become the vertices at level 1 in the spanning tree

– Arbitrarily order the new vertices 

• For each vertex at level 1, visited in order, add each edge incident to this vertex and the other vertex connected to the edge to the tree as long as it does not produce a simple circuit

– Arbitrarily order the children of each vertex at level 1

– The new vertices added become the new vertices at level 2 in the spanning tree

• Repeat the procedure until all vertices in the graph have been added







Need a fast expert's response?

Submit order

and get a quick answer at the best price

for any assignment or question with DETAILED EXPLANATIONS!

Comments

No comments. Be the first!

Leave a comment

LATEST TUTORIALS
New on Blog
APPROVED BY CLIENTS