Chapter 5

Shortest Path Problems

[23/100%]
Show
LaTeX
Problem 5.1

Prove Theorem 1: Dijkstra's algorithm finds the SD from a fixed vertex (v)(v) to any vertex ii in the network if there is a path from vv to ii.

?
Problem 5.2

Using Dijksra's algorithm, find a shortest distance arborescence rooted at vertex 1 of the directed network shown in Fig. 5-8.

Fig. 5-8Fig. 5-8

?
Problem 5.3

Using Dijkstra's algorithm, find a shortest distance arborescence for the network whose weight matrix is

A=[0−4103−−−0112110−908321−400863−012031−113200−43−−20] A=\left[\begin{array}{rrrrrrr} 0 & - & 4 & 10 & 3 & - & - \\ - & 0 & 1 & 1 & 2 & 11 & 0 \\ - & 9 & 0 & 8 & 3 & 2 & 1 \\ - & 4 & 0 & 0 & 8 & 6 & 3 \\ - & 0 & 1 & 2 & 0 & 3 & 1 \\ - & 1 & 1 & 3 & 2 & 0 & 0 \\ - & 4 & 3 & - & - & 2 & 0 \end{array}\right]
?
Problem 5.4

Prove Theorem 5.2: The Floyd-Warshall algorithm using the triangle operation correctly solves the SD and SP problem.

?
Problem 5.5

Find the SD matrix and the SP matrix of the network in which the weight matrix AA is

A=[01−−−14102−−−1−202−−4−−203−−−−−30931−−−90−414−3−0] A=\left[\begin{array}{ccccccc} 0 & 1 & - & - & - & 1 & 4 \\ 1 & 0 & 2 & - & - & - & 1 \\ - & 2 & 0 & 2 & - & - & 4 \\ - & - & 2 & 0 & 3 & - & - \\ - & - & - & 3 & 0 & 9 & 3 \\ 1 & - & - & - & 9 & 0 & - \\ 4 & 1 & 4 & - & 3 & - & 0 \end{array}\right]
?
Problem 5.6

Find the SD matrix and the SP matrix of the network for which the weight matrix is

A=[0−4103−−−0−1−12110−908321−400863−01203−1−−1−13200−43−−20] A=\left[\begin{array}{rrrrrrr} 0 & - & 4 & 10 & 3 & - & - \\ - & 0 & -1 & -1 & 2 & 11 & 0 \\ - & 9 & 0 & 8 & 3 & 2 & 1 \\ - & 4 & 0 & 0 & 8 & 6 & 3 \\ - & 0 & 1 & 2 & 0 & 3 & -1 \\ - & -1 & -1 & 3 & 2 & 0 & 0 \\ - & 4 & 3 & - & - & 2 & 0 \end{array}\right]
?
Problem 5.7

In Problem 5.6, find an SP from vertex 4 to vertex 2.

?
Problem 5.8

Construct a shortest distance arborescence rooted at vertex 1 in the network of Problem 5.6, the path matrix.

?
Problem 5.9

Suppose the negative entry ( -1 ) that appears in the fourth column of the weight matrix in problem 5.6 is replaced by a smaller negative entry ( -3 ). Find a negative cycle in the modified network.

?
Problem 5.10

In Problem 5.6, obtain the distance matrix and the path matrix that will give the shortest distance between every pair of vertices using paths that will not use vertices 5,6, and 7 as intermediate vertices. Use these two matrices to obtain a path of minimum length from vertex 7 to vertex 4 that does not use vertices 5 and 6 as intermediate vertices.

?
Problem 5.11

Prove Theorem 3: Let {1,2,3,…,n}\left\{ 1,2,3, \ldots , n\right\} be the vertex set of the complete graph GG with a nonnegative weight function ww satisfying the triangle property w({i,j})≤w({i,k})+w({k,j})w(\left\{ i, j\right\} ) \leq w(\left\{ i, k\right\} )+w(\left\{ k, j\right\} ) for any three vertices i,ji, j, and kk. If WW is a set of mm vertices in network GG, there exists a Steiner tree for WW in the network that contains at most (n−2)(n-2) Steiner points.

?
Problem 5.12

Find a Steiner tree for the set W={1,2,3,4}W=\left\{ 1,2,3,4\right\} in the network shown in Fig. 5-4.

?
Problem 5.13

Find the Steiner points of the set {1,3,5}\left\{ 1,3,5\right\} in the network of Problem 5.5.

?
Problem 5.14

Find the median of the network of Problem 5.5.

?
Problem 5.15

Find the weighted median of the network of Problem 5.5 if the weights of the vertices are 1,0,3,3,31,0,3,3,3, 1, and 2, respectively.

?
Problem 5.16

Find the center of the network of Problem 5.5.

?
Problem 5.17

In a network, the minimum value of the eccentricity is the radius r(G)\boldsymbol {r}(\boldsymbol {G}), and the maximum value is the diameter d(G)\boldsymbol {d}(\boldsymbol {G}). Show that r(G)≤d(G)≤2r(G)r(G) \leq d(G) \leq 2 r(G).

?
Problem 5.18

Show that if each edge of a tree has a nonnegative weight, the cardinality of its center (median) is at most 2.

?
Problem 5.19

List the arcs of the shortest distance arborescence rooted at vertex 1 of the network with V={1,2,3,4,5,6}V=\left\{ 1,2,3,4,5,6\right\} and E={(1,2),(1,3),(1,4),(2,3),(2,5),(3,6),(4,5),(5,6)}E=\left\{ (1,2),(1,3),(1,4),(2,3),(2,5),(3,6),(4,5),(5,6)\right\} with weights 4,7,3,3,2,2,34,7,3,3,2,2,3, and 2, respectively.

?
Problem 5.20

List the arcs of the shortest distance arborescence rooted at vertex 1 of the network with V={1,2,3,4,5,6}V=\left\{ 1,2,3,4,5,6\right\} and E={(1,2),(1,5),(2,3),(2,4),(2,5),(3,4),(4,5),(4,6),(5,3)}E=\left\{ (1,2),(1,5),(2,3),(2,4),(2,5),(3,4),(4,5),(4,6),(5,3)\right\} with weights 3,7,7,2,5,3,2,53,7,7,2,5,3,2,5, and 1, respectively.

?
Problem 5.21

Find the SD matrix A5A_{5} and the SP matrix P5P_{5} of the undirected network with V={1,2,3,4,5}V=\left\{ 1,2,3,4,5\right\} and E={{1,2},{1,5},{2,3},{2,4},{3,4},{4,5}}E= \left\{ \left\{ 1,2\right\} ,\left\{ 1,5\right\} ,\left\{ 2,3\right\} ,\left\{ 2,4\right\} ,\left\{ 3,4\right\} ,\left\{ 4,5\right\} \right\} with weights 1,4,5,1,21,4,5,1,2, and 1, respectively.

?
Problem 5.22

Find the SD matrix and the SP matrix of the network with the following weight matrix:

[−15−−9−−−353−−−−−6−21−−−−27−4−2−−−−5−−−] \left[\begin{array}{rrrrrr} - & 15 & - & - & 9 & - \\ - & - & 35 & 3 & - & - \\ - & - & - & 6 & - & 21 \\ - & - & - & - & 2 & 7 \\ - & 4 & - & 2 & - & - \\ - & - & 5 & - & - & - \end{array}\right]
?
Problem 5.23

Find the weight of a Steiner tree of the set {1,2,3}\left\{ 1,2,3\right\} in the network whose weight matrix is

[−6513−−6−−−23−5−−3−721−3−2−132−2−−4−37−−−4−−2144−] \left[\begin{array}{ccccccc} - & 6 & 5 & 1 & 3 & - & - \\ 6 & - & - & - & 2 & 3 & - \\ 5 & - & - & 3 & - & 7 & 2 \\ 1 & - & 3 & - & 2 & - & 1 \\ 3 & 2 & - & 2 & - & - & 4 \\ - & 3 & 7 & - & - & - & 4 \\ - & - & 2 & 1 & 4 & 4 & - \end{array}\right]
?