Question: ( 3 0 points ) Recall the problem of single - source shortest path ( SSSP ) with general edge lengths. Consider a directed graph
points Recall the problem of singlesource shortest path SSSP with general edge lengths. Consider a directed graph and lengths inR for edges The total length of any cycle is nonnegative, ie Further consider a source vertex We want to find the shortest distances from to other vertices in the graph; you may assume that all vertices are reachable from
The BellmanFord algorithm solves this problem in polynomial time. We will reexamine this question through the lens of LP
a points Let variables denote the shortest distances from to vertices vinV. Consider the basic update step of BellmanFord. Can you rephrase the logic behind the basic update step as linear inequalities for these variables?
b points Can you further design an objective function such that solving the LP with the constraints in part a gives the shortest distance from to a vertex Argue for the correctness of your approach.
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
