The Gateway to Computer Science Excellence
First time here? Checkout the FAQ!
x
0 votes
66 views
What important point we keep in mind while finding the #(number) of spanning tree ?? from the given graph
in Algorithms by Active (4.3k points) | 66 views

1 Answer

+1 vote
Best answer

Depends on the method used to find number of MST's.

If you are using KIRCHOFF's THEOREM, then nothing special (except the theorem itself) is to be kept in mind.

If you are finding them manually using some counting tools (such as P and C etc), then :

1.Any spanning tree of a connected graph with n vertices will have exactly n-1 edges.

2. Look for the vertices which can be reached from multiple paths.Count the number of ways to reach that vertex.

3. Find a cycle(if any) whose edges are necessarily required to be traversed in order to make it an MST. Try to eliminate 1 edge at a time of that cycle and see how many ways are there to use edges of that cycle.

4.If it is a complete a graph that we have formula for number of MST's of a complete graph(google that).

All these points vary on individual basis.One may use them or not.I use these points.

by Junior (941 points)
selected by
0
Can you please explain  KIRCHOFF LAW?

Related questions

Quick search syntax
tags tag:apple
author user:martin
title title:apple
content content:apple
exclude -tag:apple
force match +apple
views views:100
score score:10
answers answers:2
is accepted isaccepted:true
is closed isclosed:true
50,362 questions
55,789 answers
192,413 comments
90,934 users