Question

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

Official answer and solution
Official answer
16
From
Official GATE 2024 answer key

Solution

Apply Cayley's formula nn−2n^{n-2} for the number of spanning trees in a labelled complete graph KnK_n.

By Cayley's formula, the number of spanning trees in a complete graph KnK_n on nn labelled vertices is nn−2n^{n-2}. For n=4n = 4:

Number of spanning trees=44−2=42=16\text{Number of spanning trees} = 4^{4-2} = 4^2 = 16
Final answer

16

The answer is the one in the official GATE answer key. The solution is this site's own explanation.

Source

Paper
GATE 2024 Computer Science and Information Technology - Set 1 (CS1)
Question
34 of 65
Section
Computer Science and Information Technology

Report an error in this question

GATE questions are the work of the organising institutes. This site is independent and is not affiliated with them.