Leaving Certificate Applied Mathematics2.5 Trees and spanning trees

All books

2.5 Trees and spanning trees — Practise

Work independently. The questions and answers are shown together at the end.

The count n−1n - 1 is fixed for every spanning tree, so the question is always which edges, never how many.

  1. A tree has 6 vertices. How many edges has it?
  2. A tree has 12 edges. How many vertices has it?
  3. A connected network has 9 vertices and 14 edges. How many edges must be removed to leave a spanning tree?
  4. State the two conditions that make a connected network a tree.
  5. A connected network has 10 vertices. How many edges has every spanning tree of it?
  6. A connected network has 7 vertices and 7 edges. Explain why it is not a tree, and say what it must contain.

Answers and concise solutions

1. Show the answer

1. Number of edges

Answer: A tree on nn vertices has n−1n - 1 edges, so 6−1=56 - 1 = 5.

2. Show the answer

2. Number of vertices

Answer: n−1=12n - 1 = 12, so n=13n = 13.

3. Show the answer

3. Edges to remove

Answer: A spanning tree on 9 vertices has 9−1=89 - 1 = 8 edges, so 14−8=614 - 8 = 6 edges must be removed. Each removal must not disconnect the network.

4. Show the answer

4. The two conditions

Answer: A tree is a connected network with no cycles. Equivalently, it is a network in which there is exactly one path between every pair of vertices. Adding any edge to a tree creates a cycle; removing any edge disconnects it.

5. Show the answer

5. Edges in a spanning tree

Answer: Every spanning tree on 10 vertices has 10−1=910 - 1 = 9 edges, whatever the network looks like and whatever the weights are. That is why finding a cheapest spanning tree is a matter of choosing which 9 edges, not how many.

6. Show the answer

6. Why it is not a tree

Answer: A tree on 7 vertices has 7−1=67 - 1 = 6 edges. This network has 7, which is one more than a tree. A connected network with more than n−1n - 1 edges must contain a cycle, because the extra edge must join two vertices that were already connected and close a loop. So the network contains at least one cycle.

Settings

Colour scheme

Light or dark pages. Your colour and layout stay the same.

Colour

The paper, ink and lettering. Your layout stays the same.

Quiet colours
Bold colours
Layout

How pages are arranged. Your colours stay the same.

Reading offline

Keep this book on this device and read it offline.