1.

Consider a complete graph G with 4 vertices. The graph G has ____ spanning trees.(a) 15(b) 8(c) 16(d) 13I got this question during an interview for a job.The query is from Minimum Spanning Tree in portion Minimum Spanning Tree of Data Structures & Algorithms II

Answer»

Right option is (c) 16

Easy explanation - A GRAPH can have many spanning TREES. And a complete graph with N vertices has n^(n-2) spanning trees. So, the complete graph with 4 vertices has 4^(4-2)= 16 spanning trees.



Discussion

No Comment Found

Related InterviewSolutions