Data structure unit 5 imp
Data structure unit 5 imp
Tutorial-5
Short Questions
Long Questions
7 2 10
71 14 3 5
8 12 12 1
4
3
87 4 5 2 20
6 6
5. What is minimum spanning tree? Write down Prim’s algorithm to obtain
minimum cost spanning tree. Use Prim’s algo to find minimum cost spanning
tree in the following graph:
4
B D
3
2 1 2
A 1
E
6 4
C G
2
2 1
F
10
b e
4 8 6
7
a d
5 g
9
2 9
8 2
e f
5 C D
2