Discrete Mathematics and Its Applications, Seventh Edition

Published by McGraw-Hill Education
ISBN 10: 0073383090
ISBN 13: 978-0-07338-309-5

Chapter 11 - Section 11.4 - Spanning Trees - Exercises - Page 797: 45

Answer

justifying that For Which graphs do depth-first search, and breadth-first search produce identical spanning trees no matter which vertex is selected as the root of the tree

Work Step by Step

--Certainly these two procedures produce the identical spanning trees if the graph -we are working with is a tree itself, because in this case there is only one spanning tree (the whole graph). -This is the only case in which that happens, -however. -If the original graph has any other edges, they must be back edges and hence, join a vertex to an ancestor or descendant, they must connect vertices at the same level or at levels that differ by 1. - Clearly these two possibilities are mutually exclusive. -Therefore there can be no edges other than tree edges if the two spanning trees are to be the same.
Update this answer!

You can help us out by revising, improving and updating this answer.

Update this answer

After you claim an answer you’ll have 24 hours to send in a draft. An editor will review the submission and either publish your submission or provide feedback.