1
You visited us
1
times! Enjoying our articles?
Unlock Full Access!
Byju's Answer
Standard VIII
Mathematics
Superset
What will be ...
Question
What will be the cost of the Minimum spanning Tree (MST) of such a graph with n nodes
A
n
2
−
n
+
1
Right on! Give the BNAT exam to get a 100% scholarship for BYJUS courses
B
1
12
(
11
n
2
−
5
n
)
No worries! We‘ve got your back. Try BYJU‘S free classes today!
C
2
n
+
1
No worries! We‘ve got your back. Try BYJU‘S free classes today!
D
6
n
−
11
No worries! We‘ve got your back. Try BYJU‘S free classes today!
Open in App
Solution
The correct option is
A
n
2
−
n
+
1
We observe a pattern in weight of MST being formed:
F
o
r
n
=
3
⇒
(
1
+
2
+
3
)
+
(
1
)
F
o
r
n
=
4
⇒
(
1
+
2
+
3
+
4
)
+
(
1
+
2
)
F
o
r
n
=
5
⇒
(
1
+
2
+
3
+
4
+
5
)
+
(
1
+
2
+
3
)
F
o
r
n
=
6
⇒
(
1
+
2
+
3
+
4
+
5
+
6
)
+
(
1
+
2
+
3
+
4
)
In general, total weight of MST for n:
=
∑
n
i
=
1
i
+
∑
n
−
2
i
=
1
i
=
n
2
−
n
+
1
Suggest Corrections
0
Similar questions
Q.
Consider a binary tree, where for every node P -
Q
≤
2
, where P represents number of nodes in left sub tree for node S and Q represents the number of nodes in right sub tree for node S for h > 0. The minimum number of nodes present in such a binary tree of height h = 4 will be
Q.
Given a graph G, F is a spanning tree of G, if
(i) F is subgraph of G containing all the nodes of G
(ii) F is an ordered forest containing tree
T
1
,
T
2
,
.
.
.
.
.
.
Tn.
(iii) Ti contain all the nodes that are reachable in G from the root Ti and are not contained in Ti for some j<i of these.
Q.
A minimal spanning tree of a graph G is -
Q.
The complete graph
K
n
has ________ different spanning trees.
Q.
Complexity of Kruskal's algorithm for finding the minimum spanning tree of an undirected graph containing n vertices and m edges if the edges are sorted is
View More
Join BYJU'S Learning Program
Grade/Exam
1st Grade
2nd Grade
3rd Grade
4th Grade
5th Grade
6th grade
7th grade
8th Grade
9th Grade
10th Grade
11th Grade
12th Grade
Submit
Related Videos
Subset and Superset
MATHEMATICS
Watch in App
Explore more
Superset
Standard VIII Mathematics
Join BYJU'S Learning Program
Grade/Exam
1st Grade
2nd Grade
3rd Grade
4th Grade
5th Grade
6th grade
7th grade
8th Grade
9th Grade
10th Grade
11th Grade
12th Grade
Submit
AI Tutor
Textbooks
Question Papers
Install app