GATE / CS ARCHIVE

GATE CSE 2022 / QUESTION 30

GATE CSE 2022 Q30

Discrete Mathematics · Graph Theory · Full GATE CSE 2022 paper

GATE 2022, Q30 1 mark · NAT
Report issue

Graph Theory

Question 30, GATE 2022: What is the maximum possible edge count of a disconnected simple undirected graph on 10 vertices?
Tap to enlarge
Answer & solution

Official answer: 36

For a disconnected simple graph with 10 vertices, maximize edges by making each component complete. Moving vertices into the largest component increases the sum of binomial(component size, 2), so the maximum uses sizes 9 and 1. This gives binomial(9, 2)=36 edges.

If two nonempty components have a and b vertices, merging them would add ab edges. To keep at least two components while maximizing edges, use one largest possible component and one isolated vertex. Equivalently for a split k and 10−k the complete-component bound is C(10,2)−k(10−k), largest at k=1 or 9.

Original paper, page 22 · Answer key