Chapter 7: Q28E (page 245)
Question: A linear program for shortest path. Suppose we want to compute the shortest path from node s to node t in a directed graph with edge lengths .
a) Show that this is equivalent to finding an s - tflow fthat minimizes subject to size (f) = 1. There are no capacity constraints.
b) Write the shortest path problem as a linear program.
c) Show that the dual LP can be written as
role="math" localid="1659250472483"
d) An interpretation for the dual is given in the box on page 223. Why isn’t our dual LP identical to the one on that page?
Short Answer
a) It can be shown that the equivalent to an s - t flow f that minimizes to size(f)=1.
b) Linear program:
c) Yes, the dual LP can be written as given.
d) Because, the dual in the box is written for undirected graph and the dual written in this problem is written for directed graph.