Consider a simple undirected graph of 10 vertices. If the graph is disconnected, then the maximum number of edges it can have is …
Topic-wise GATE CS PYQs with verified steps
GATE CSE 2022 · Q30
Time
Your answerNumerical answer
Solution
Official answer: 36
Discrete MathematicsFor a simple undirected graph with vertices to be disconnected, it must have at least two connected components.
To maximize the number of edges while keeping the graph disconnected, one connected component should be a complete graph on vertices, and the remaining component should be an isolated vertex ( vertex):
For :
Thus, the maximum number of edges is 36.
Try the question first, then check your work.
Examiner trap
A disconnected graph with maximum edges consists of a complete subgraph and one isolated vertex.
This Discrete Mathematics previous year question is Q30 of the GATE CSE 2022 paper. Find more GATE CSE PYQs on Discrete Mathematics in Engineering Mathematics, or browse all GATE CSE PYQs.
Free diagnostic
Take the 20-minute diagnostic: the 3 topics that cost you the most marks, and a rank range. Or sit 5 related Discrete Mathematics PYQs now with no account.
An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.
Discrete Mathematics has 50 GATE CSE PYQs across 23 papers from 2011 to 2026. 10 of them are 1-mark NAT questions like this one, and GATE CSE 2022 has 3.
How GATE tests Discrete MathematicsIndependent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.