GateAI
Discrete Mathematics

GATE CSE 2022 · Q30

NAT1 markEasy

Time

Consider a simple undirected graph of 10 vertices. If the graph is disconnected, then the maximum number of edges it can have is ________.

Your answerNumerical answer

Enter a value to check

Solution

Step-by-step verified solution

Official answer: 36

Discrete Mathematics

For a simple undirected graph with nn 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 n−1n-1 vertices, and the remaining component should be an isolated vertex (11 vertex):

Maximum edges=(n−12)\text{Maximum edges} = \binom{n-1}{2}

For n=10n = 10:

(10−12)=(92)=9×82=36\binom{10-1}{2} = \binom{9}{2} = \frac{9 \times 8}{2} = 36

Thus, the maximum number of edges is 36.

Try the question first, then check your work.

Think the official key or this write-up is wrong?

Report error or challenge

Examiner trap

The misconception this question tests

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

Where do you stand for GATE?

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.

One GATE CSE PYQ every morning

An official question by email at 7 AM IST, with a link to its verified solution. Unsubscribe in one click.

Discrete Mathematics in GATE CSE

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 Mathematics

More from GATE CSE 2022

Share this solution

A plain-text card for WhatsApp or Telegram study groups.

GateAI solution cardGATE CSE 2022 · Q30 · NAT

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

Independent practice explanation verified by the GateAI team. GATE is conducted by the IITs; question text follows the official paper.