Skip to content

ISRO Scientist/Engineer CSE 2011Discrete Mathematics › Graph Theory

ISRO Scientist/Engineer CSE 2011 PYQ: How many edges are there in a forest with $v$ vertices and $k$ components?

How many edges are there in a forest with $v$ vertices and $k$ components?

  1. A
    $(v+1) - k$
  2. B
    $(v+1)/2 - k$
  3. C
    $v - k$
    Correct answer
  4. D
    $v + k$

Answer

(C) $v - k$

Approach

A forest is a disjoint union of trees. Use the fact that a tree on $n$ vertices has exactly $n-1$ edges, and sum this over all components.

Reviewed by ISRO IQ Editorial Team.