Skip to main content
Library homepage
 

Text Color

Text Size

 

Margin Size

 

Font Type

Enable Dyslexic Font
Mathematics LibreTexts

16.8: Exercises

( \newcommand{\kernel}{\mathrm{null}\,}\)

Exercise 16.8.1

Prove that if a graph contains a closed trail then it also contains a proper cycle.

Spanning trees.

For each of the graphs in Exercises 2–3, draw a spanning tree by inspection.

Exercise 16.8.2

clipboard_eb181561a5325de24f789f31a4b646074.png
Figure 16.8.1

Exercise 16.8.3

clipboard_e38fab3ded5b016bf7717ea130109379d.png
Figure 16.8.2

Reducing to a spanning tree.

For each of the graphs in Exercises 4–5, use the following algorithm to obtain a spanning tree.

  • If the graph contains a proper cycle, remove one edge of that cycle.
  • If the resulting subgraph contains a proper cycle, remove one edge of that cycle.
  • If the resulting subgraph contains a proper cycle, remove one edge of that cycle.
  • etc..
  • Continue until there are no proper cycles left.

Exercise 16.8.4

clipboard_eae76bedf050e0e90c819de5a847bcc27.png
Figure 16.8.3

Exercise 16.8.5

clipboard_e0326fca7acd6cf19a546e96feeed062d.png
Figure 16.8.4

Depth-first and breadth-first spanning trees.

For each of the graphs in Exercises 6–8, determine both a depth-first and breadth-first spanning tree. Use any vertex you like as the starting node.

Exercise 16.8.6

clipboard_e9467f72552af2dda72124506cfd64f25.png
Figure 16.8.5

Exercise 16.8.7

clipboard_e5eacd659dc637eb67e03ce36d596e4f6.png
Figure 16.8.6

Exercise 16.8.8

clipboard_eb459fc9ddadd315f303ed6de777d82fc.png
Figure 16.8.7

This page titled 16.8: Exercises is shared under a GNU Free Documentation License 1.3 license and was authored, remixed, and/or curated by Jeremy Sylvestre via source content that was edited to the style and standards of the LibreTexts platform.

  • Was this article helpful?

Support Center

How can we help?