Chapter 5: Q22E (page 165)
Give You are given a graphwith positive edge weights, and a minimum spanning tree with respect to these weights; you may assume GandTare given as adjacency lists. Now suppose the weight of a particular edge is modified fromw(e)to a new value w'(e). You wish to quickly update the minimum spanning tree T to reflect this change, without recomputing the entire tree from scratch. There are four cases. In each case give a linear-time algorithm for updating the tree.
(a) and .
(b) role="math" localid="1658907878059" and .
(c) role="math" localid="1658907882667" and .
(d) role="math" localid="1658907887400" and .
Short Answer
Use G and T as adjacency lists and if weight of special edge is change from old value w(e) to new value w'(e) faster update minimum spanning tree to reflect change.