Skip to content
Official PYQ · 2024

GATE CS 2024 Set 1 Q24 — Graphs: Connectivity, Matching, Colouring

Explain with AI

The number of spanning trees in a complete graph of 44 vertices labelled A, B, C,\text{A, B, C,} and D\text{D} is _________.

View worked solution

Answer: 16

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

N=nn−2N = n^{n-2}

For the given complete graph with 44 labeled vertices (A, B, C, D\text{A, B, C, D}), we have n=4n = 4. Substituting this value into the formula:

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

Alternative Verification:

We can classify the spanning trees of K4K_4 by their structural isomorphism types:

  1. Star Graphs (S4S_4): One central vertex of degree 3 connected to three leaf vertices.
    • The central vertex can be chosen in (41)=4\binom{4}{1} = 4 ways.
    • This gives 44 spanning trees.
  2. Path Graphs (P4P_4): A simple path of length 3 containing all 4 vertices.
    • The number of ways to arrange 4 distinct vertices in a line is 4!=244! = 24.
    • Since a path is identical when read forwards or backwards, we divide by 2: 242=12\frac{24}{2} = 12 ways.
    • This gives 1212 spanning trees.

Total number of spanning trees = 4+12=164 + 12 = 16.

Free practice · Your answers on this page are not saved.

Published
Report a correction
Keep exploringMore Graphs: Connectivity, Matching, Colouring questions