UGC-NET Jul 2016 · Arrays & Matrix Representation

MCQ · 2 marks · Problem PROG-DSTR-0026

The number of different spanning trees in complete graph, $K_4$ and bipartite graph, $K_{2,2}$ have and respectively.
  1. A
    14, 14
  2. B
    16, 14
  3. C
    16, 4
  4. D
    14, 4

Solve it on GATE DA practice →More Basic Data Structures problems

Show the worked solutionComplete graph, Cayley's formula:\[\boxed{\tau(K_n)=n^{n-2}}\qquad \tau(K_4)=4^2=16.\]Complete bipartite graph:\[\boxed{\tau(K_{m,n})=m^{n-1}n^{m-1}}\qquad \tau(K_{2,2})=2\cdot2=4.\]Check: \(K_{2,2}\) is the 4-cycle, and deleting any one of its 4 edges gives a spanning tree.Answer: C

GATE DA practice: past exam problems by chapter, with worked solutions · gatedaprep.com