- Asked 3/14
- 2074 Bhadra · 6 marks
Kruskal's MST on 7-vertex graph
Short answer
Using Kruskal, sort edges: C-E1, F-G1, A-C2, B-F2, D-F2, C-D4 accepted; B-D3, B-G3 rejected. MST edges: C-E, F-G, A-C, B-F, D-F, C-D. Minimum cost = 12.
Create minimum spanning tree for the following graph using Kruskal's algorithm. [Figure: undirected weighted graph on vertices A to G with edges A-B 5, A-C 2, A-D 6, B-D 3, B-F 2, B-G 3, C-D 4, C-E 1, D-F 2, D-G 4, E-F 6, F-G 1]
Edges of the graph (A to G, 7 vertices, so the MST needs 6 edges), sorted by weight: C-E 1, F-G 1, A-C 2, B-F 2, D-F 2, B-D 3, B-G 3, C-D 4, D-G 4, A-B 5, A-D 6, E-F 6.
| Step | Edge | Weight | Decision | Components after |
|---|---|---|---|---|
| 1 | C-E | 1 | accept | {C,E} |
| 2 | F-G | 1 | accept | {F,G} |
| 3 | A-C | 2 | accept | {A,C,E} |
| 4 | B-F | 2 | accept | {B,F,G} |
| 5 | D-F | 2 | accept | {B,D,F,G} |
| 6 | B-D | 3 | reject (B, D already connected) | |
| 7 | B-G | 3 | reject (cycle B-F-G) | |
| 8 | C-D | 4 | accept | {A,B,C,D,E,F,G} |
Six edges selected, stop.
E
| 1
A --2-- C --4-- D --2-- F --2-- B
|
1
G
Edges of the MST: C-E, F-G, A-C, B-F, D-F, C-D.
Minimum cost = 1 + 1 + 2 + 2 + 2 + 4 = 12.
✓ Answer checked by Claude Opus 5.5 (high effort)
Related questions
- Kruskal's MST on 9-vertex graph · Data Structure and Algorithm, chapter 10 · asked 3×
- Kruskal's MST on graph A to G · Data Structure and Algorithm, chapter 10 · asked 3×
- MST definition; Kruskal's MST on 6-vertex graph · Data Structure and Algorithm, chapter 10
- Spanning tree properties; Round Robin MST · Data Structure and Algorithm, chapter 10
- Round Robin MST on 7-vertex graph · Data Structure and Algorithm, chapter 10
- Kruskal's algorithm with example · Data Structure and Algorithm, chapter 10 · asked 3×
- Write Kruskal's algorithm · Data Structure and Algorithm, chapter 10 · asked 3×