Final answer:
To find the MST of G', we will use Kruskal's algorithm. The running time of this algorithm is O(n), where n is the number of nodes in G.
Step-by-step explanation:
To find the MST of G', we will use Kruskal's algorithm. The steps are:
- Create an empty graph G' initially.
- Add all the edges of MST T to G'.
- Add the new edge e = (u, v) to G'.
- Sort all the edges of G' in non-decreasing order of their weights.
- Initialize an empty set S to store the connected components of G'.
- Iterate over the sorted edges of G':
- If the current edge does not create a cycle in G', add it to the MST and update S.
The running time of this algorithm is O(n), where n is the number of nodes in G. This is because we are sorting the edges of G' and iterating over them, which takes linear time.