GATE CS 2024 Set 1 — Question 34

NAT+1 / -0EasyTrees & Spanning TreesGraph Theory (Math)Engineering Mathematics

Engineering Mathematics → Graph Theory (Math) → Trees & Spanning Trees

Last updated

Question

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

Correct answer

16 to 16

Solution

The number of spanning trees in a complete graph with nn vertices (KnK_n) is given by Cayley's formula:Number of spanning trees=nn2\text{Number of spanning trees} = n^{n-2}Given n=4n = 4:442=42=164^{4-2} = 4^2 = 16

More questions on Graph Theory (Math)

Practice GATE CS PYQs with adaptive difficulty

Timed practice, skill tracking, and AI explanations — free to start.

Start practicing free