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?
- A$(v+1) - k$
- B$(v+1)/2 - k$
- C$v - k$Correct answer
- 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.