Question: Problem : MST You are given a graph G(V, E) with distinct positive edge weights, and a minimum spanning tree T(V, ) with respect to

Problem : MST

You are given a graph G(V, E) with distinct positive edge weights, and a minimum spanning tree T(V, Problem : MST You are given a graph G(V, E) with distinct) with respect to these weights; you may assume G and T are given as adjacency lists. Now suppose the weight of a particular edge e E is modied from w(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)epositive edge weights, and a minimum spanning tree T(V, ) with respect and w(e)

(b)eto these weights; you may assume G and T are given as and w(e)>w(e).

(c) eadjacency lists. Now suppose the weight of a particular edge e Eis modied from w(e) to a new value w(e). You wish to and w(e)

(d )equickly update the minimum spanning tree T to reflect this change, withoutrecomputing the entire tree from scratch. There are four cases. In each and w(e) > w(e).

Hint: DFS works in linear time.

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Databases Questions!