Question: Question 1 : Shortest path deeper cuts ( a ) Consider the following statements and answer whether they are true or false. Justify your answer
Question : Shortest path deeper cuts
a Consider the following statements and answer whether they are true or false. Justify your
answer by providing a proof to the statement if true or by showing a counter example when
false
Statement A network where all arc costs are different has a unique shortest path
connecting two nodes.
Statement In a directed network, if we drop all directions that is every arc can be
traversed in every direction no matter its original sense the shortest path will not change.
Statement Assume we solved the shortest path problem but we underestimated each
arc cost by units that is instead of we should have used hat Then,
the solution to the two problems should be the same.
Statement Assume we solved the shortest path problem but we underestimated each
arc cost by a factor of that is instead of we should have used hat
Then, the solution to the two problems should be the same.
b In some instances, we may be interested in finding two shortest paths. Why? Well, in
cases where we are focused on the robustness of the proposed solution, we may want to focus
on having a "Plan B Specifically, assume that we are interested in solving the disjointed
shortest paths problem for the same source and terminal nodes. We call two paths disjointed
if they share no arcs they are allowed to share nodes, though
An algorithm to tackle this problem is the ingenious Suurballe's algorithm. A bigpicture
description is offered here:
Compute a shortest path tree from the source to every other node including the terminal
Let be the distance from to in the shortest path tree.
Modify all arc costs to be Note how this modification turns all arcs
that are in the shortest path tree to have a cost of
Construct a residual network by reversing all arcs in the current shortest path from to
as well as removing all arcs that are opposite to the shortest path from to in the
reverse direction than the shortest path from to
Find a shortest path from to in the residual network.
Discard any arc that appears in both shortest paths in opposite directions. The remaining
arcs form two paths from to that share no arcs.
Implement this algorithm using networkx and then solve the network in the Sioux Falls bench
mark see the SiouxFalls.txt file that includes the edges and their cost
Step by Step Solution
There are 3 Steps involved in it
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
