GATE CS 2014, set 3 · Question 61 · Engineering Mathematics · Multiple choice (MCQ) · 2 marks · −2/3 for a wrong answer

If G is a forest with n vertices and k connected components, how many edges does G have?

  1. (A) ⌊ n/k ⌋
  2. (B) ⌈ n/k ⌉
  3. (C) n-k
  4. (D) n-k+1
Answer

Answer (C)

Answer from the official GATE CS 2014 answer key.

The step-by-step solution, where available, is part of GATE CS Pro. See what Pro includes