questiongiven directed network g n a with arc


Question

Given directed network G= (N, A) with arc lengths c_ij. Let d_ij be the shortest path distances between the pair (i,j). If length of one arc (x,y) changes to c_xy ' < c_xy. Illustrate algorithm finds modified all pairs shortest path distances.

1: if d_xy+c_xy ' <0 then network has a negative cycle
2: else
3: for each pair (i,j) do
4: d_ij=min[d_ij,d_ix+c_xy ' +d_yj]

Given G=(N,A), suppose after solving all-pairs shortest path problem, you remember that you forgot 5 arcs from network. Show how by reducing problem to (1) reoptimize network (with addition of arcs) in O (n^2) time.

Request for Solution File

Ask an Expert for Answer!!
Computer Engineering: questiongiven directed network g n a with arc
Reference No:- TGS0444752

Expected delivery within 24 Hours