GateAI
Graph Theory

GATE CSE 2024 Set 1 · Q34

NAT1 markEasy

Time

The number of spanning trees in a complete graph of 4 vertices labelled A, B, C, and D is ________

Your answerNumerical answer

Enter a value to check

Solution

Step-by-step verified solution

Official answer: 16 (±0)

Graph Theory

According to Cayley's Formula, the number of spanning trees in a labeled complete graph KnK_n with nn vertices is given by:

Number of spanning trees=nn−2\text{Number of spanning trees} = n^{n-2}

For n=4n = 4:

44−2=42=164^{4-2} = 4^2 = 16

Thus, the total number of spanning trees is 16.

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 Graph Theory previous year question is Q34 of the GATE CSE 2024 Set 1 paper. Find more GATE CSE PYQs on Graph Theory 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 Graph Theory 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.

Graph Theory in GATE CSE

Graph Theory has 21 GATE CSE PYQs across 14 papers from 2012 to 2026. 3 of them are 1-mark NAT questions like this one, and GATE CSE 2024 Set 1 has 3.

How GATE tests Graph Theory

More from GATE CSE 2024 Set 1

Share this solution

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

GateAI solution cardGATE CSE 2024 Set 1 · Q34 · NAT

The number of spanning trees in a complete graph of 4 vertices labelled A, B, C, and D 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.