Question:medium

In a tree on a vertices there is exactly one vertex with degree 2 and remaining vertices are of degree either 1 or 3. Then the number of pendant vertices is

Show Hint

Sum of degrees = $2(E)$ and $E = n-1$ for tree.
Updated On: Apr 30, 2026
  • $8$
  • $5$
  • $4$
  • $6$
Show Solution

The Correct Option is C

Solution and Explanation

To determine the number of pendant vertices in the given tree, we need to analyze the structure of the tree based on the provided information.

Let's break down the problem:

  1. A tree is a connected graph with no cycles.
  2. We have exactly one vertex with degree 2.
  3. The remaining vertices have degrees of either 1 or 3.
  4. We need to find the number of pendant vertices. Pendant vertices are vertices with degree 1.

Let's denote:

  • \(n\) = Total number of vertices.
  • \(P\) = Number of pendant vertices (degree 1).
  • \(d_3\) = Number of vertices with degree 3.
  • One vertex with degree 2, and the rest have degrees of 1 or 3.

From the property of trees, we know that the sum of degrees of all vertices is twice the number of edges, and a tree with \(n\) vertices has \(n-1\) edges. Thus,

\(\sum \text{{degree}} = 2(n-1)\)

The vertices in the tree consist of:

  • Vertices with degree 1: \(P\)
  • One vertex with degree 2
  • Vertices with degree 3: \(d_3\)

Thus, the equation for the sum of degrees becomes:

\(P \times 1 + 1 \times 2 + d_3 \times 3 = 2(n-1)\)

Simplifying further:

\(P + 2 + 3d_3 = 2(n-1)\)

We also note that the total number of vertices \(n\) can be expressed as:

\(n = P + 1 + d_3\)

Substitute \(n\) into the degrees equation:

\(P + 2 + 3d_3 = 2((P + 1 + d_3) - 1)\)

Simplifying gives:

\(P + 2 + 3d_3 = 2(P + d_3)\)

\(P + 2 + 3d_3 = 2P + 2d_3\)

Rearranging terms, we find:

\(d_3 = P - 2\)

Since \(d_3\) must be non-negative, we solve:

\(P - 2 \geq 0\)

\(P \geq 2\)

By assuming various values of \(P\) and simplifying, we find that the logical solution given the constraints confirms:

When \(P = 4\), we satisfy all criteria:

1 vertex degree 2, 4 vertices degree 1, and 2 vertices degree 3, aligning the vertex and edge count.

Hence, the number of pendant vertices is \(4\).

Was this answer helpful?
0