2

Given $P = \{v_0, v_1, \cdots, v_n\} $ be a longest path in tree $T$. Show that the degree of $v_0$ and $v_n$ is 1.

My attempt: I have drawn a tree and simulate some paths so I know which one is the longest. But, once I see the other paths, I learn that the initial and terminal vertices also have the degree of 1. Every vertex in that same position must be 1. But, why it doesn't go logic to the problem? Now, what should I do?

2 Answers2

1

Let's try to prove that there are exactly two vertices in $P$ such that those vertices have degree $1$. If we prove that, obviously, these vertices will be $v_0$ and $v_n$. And this will give us even more general result.

Suppose for a contradiction, there are more than two vertices such that degree of those vertices are $1$ in $P$. Then, by definition of path, all of those vertices must be either start or terminal vertices, which is a contradiction because a path in a tree has only one start and one terminal vertex (since it cannot be a circuit).

Now, suppose for a contradiction, there are less than two vertices with degree $1$ in the path. Since it is a tree, it cannot be zero because if it was zero, we would have a cycle. If the number of vertices with degree $1$ is one, then this is contradicting the assumption that $P$ is the longest path because the vertex with degree $1$ is $v_0$ and if there is no other vertex with degree $1$, then $d(v_n) > 1$ so it is not terminal at all. Therefore, there must be exactly two vertices with degree $1$ in longest path in tree and those are $v_0$ and $v_n$, obviously.

ArsenBerk
  • 13,211
  • Is circuit and cycle the same thing? – Shane Dizzy Sukardy Jan 11 '18 at 10:58
  • No, they are slightly different things. Here: https://math.stackexchange.com/questions/655589/what-is-difference-between-cycle-path-and-circuit-in-graph-theory. But these definitions can be changed from book to book or even among some people. For example cycle definition here is not like the definition I learned. That's why if you are learning graph theory in university or high school, I suggest you to adapt to definitions as they are taught in your school or university. – ArsenBerk Jan 11 '18 at 10:59
  • Really thank you for your answer. Regards – Shane Dizzy Sukardy Jan 11 '18 at 11:17
  • You're welcome, thank you :) – ArsenBerk Jan 11 '18 at 11:33
1

Short answer: If your path ends in a vertex connected to another edge, then you can add this edge and you path is longer than before.

More technical answer:

We have the longest Path $P=v_1,...,v_n$. Let's suppose: $d(v_n) > 1$.

Then there is a vertex $v_{n+1}$ and the edge $e = (v_n, v_{n+1})$ that is not part of the Path $P$. Otherwise we would have a circle in the tree. The Path $v_1,...,v_n,v_{n+1}$ is longer than $P$.

Contradiction!

Hence, $d(v_n) = 1$.

The same applies to $d(v_1)>1$.