Next Topic ⮕
Minimum Operations to Make Network ConnectedVertices (V) | Edges | MST Weight | Description |
---|---|---|---|
4 | [(0,1,1), (0,2,3), (1,2,1), (1,3,4), (2,3,2)] | 4 | Edges chosen: (0-1), (1-2), (2-3) |
3 | [(0,1,10), (1,2,5), (0,2,15)] | 15 | Edges chosen: (1-2), (0-1) |
5 | [(0,1,1), (0,2,7), (1,2,5), (1,3,4), (2,4,6), (3,4,2)] | 12 | MST edges avoid cycles and select minimal weights |
1 | [] | 0 | Single node, no edges |
2 | [(0,1,100)] | 100 | Only one edge to connect the two nodes |