Computer Science EngineeringVery hard

A simple undirected graph has 10 vertices and exactly 3 connected components. What is the maximum possible number of edges?

  1. A. 28
  2. B. 36
  3. C. 21
  4. D. 45

Correct answer: A. 28

The maximum is (n-k)(n-k+1)/2 = 7*8/2 = 28, obtained by one clique on 8 vertices and two isolated vertices.

More Algorithms, Data Structures & Programming (ISRO CS) questions

Exams that ask this topic