A tree with at least 2 vertices has at least 2 leaves

  • Thread starter Thread starter Jcampuzano2
  • Start date Start date
  • Tags Tags
    Tree
Jcampuzano2
Messages
5
Reaction score
0

Homework Statement


Prove by induction:
A tree with n≥2 vertices has at least two leaves.

Homework Equations


A tree is a graph in which any vertices are connected by exactly 1 simple path, connected and has no cycles.

A leaf is a vertex with degree = 1.

The Attempt at a Solution



I have to prove by induction, so I used the following steps so far:

Base case: Let n = 2 vertices, then the vertices can be labeled as v1 and v2, and there is exactly 1 edge connecting the two vertices. Since there is only 1 edge, both v1 and v2 have degree 1, therefore v1 and v2 are leaves.

Inductive hypothesis: Let's assume that for any tree with n = k vertices that the statement holds, that is, the tree has at least 2 leaves.

Inductive step: This is where I was having trouble thinking of a solution that works? I was thinking that maybe I could do something like, every vertex with degree 2 can be deleted, thus the two vertices connecting to it will now be connected, and this can be followed until the tree is down to only leaves and vertices of degree > 2. but I didn't think that made much sense.

Or something along the lines of there must be at least 2 vertices with only 1 path leading to the next vertex? I'm kind of stuck at this point.
 
Physics news on Phys.org
Suppose you first show there is at least one leaf. Can you see a different inductive step from there?
 

Similar threads

  • · Replies 3 ·
Replies
3
Views
3K
Replies
3
Views
3K
Replies
1
Views
2K
Replies
1
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
5K
Replies
2
Views
2K
  • · Replies 2 ·
Replies
2
Views
2K
  • · Replies 22 ·
Replies
22
Views
4K
  • · Replies 5 ·
Replies
5
Views
3K