Problem

You are given a graph G = (V, E) with positive edge weights, and a minimum spanning tree T...

You are given a graph G = (V, E) with positive edge weights, and a minimum spanning tree T = (V, E’) with respect to these weights; you may assume G and T are given as adjacency lists. Now suppose the weight of a particular edge eE is modified from w(e) to a new value ŵ(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) eE’ and ŵ(e) > w(e).


(b) eE' and ŵ (e) < w(e).


(c) eE' and ŵ (e) < w(e).


(d) eE' and ŵ (e) > w (e).

Step-by-Step Solution

Request Professional Solution

Request Solution!

We need at least 10 more requests to produce the solution.

0 / 10 have requested this problem solution

The more requests, the faster the answer.

Request! (Login Required)


All students who have requested the solution will be notified once they are available.
Add your Solution
Textbook Solutions and Answers Search
Solutions For Problems in Chapter 5