Documenti di Didattica
Documenti di Professioni
Documenti di Cultura
Show that the following matrices are or are not totally unimodular:
1 1 0 0
0 1 1 0 1 1 0 1
1 0
0 0 1 1 0 1
1 1 1 1
1 0 0 1
1 1 0 0
0 1 1 0
0 0 1 1
1 0 0 1
The matrix is totally unimodular because it satisfied all condition to be total unimodular.
1 1 0 1
1 0 0 1
1 1 1 1
This matrix is not totally unimodular because there is more than 2 nonzero in column
that shown on red circle. This condition does not satisfy the condition to be totally
unimodular.
29. Consider the 4-node network corresponding to the following matrix, where the entry on the ith row
and the jth column is the probability that arc (i,j) fails:
0.3 0.7 0.9
0.1 0.3
0.3 0.5
Find the most reliable chain from node 1 to node 4. Compute the probability of success. Use
Dijkstra's algorithm.
We change the matrix value, so the matrix contain the probability of success as shown below
0.7 0.3 0.1
0.9 0.7
0.7 0.5
Dijkstra's algorithm
Step 1 2 3 4
1 [0] 0.7 0.3 0.1
2 [0] [0.7] 0.3 0.1
3 [0] [0.7] 0.63 0.49
4 [0] [0.7] [0.63] 0.49
5 [0] [0.7] [0.63] [0.49]
a Use Ford's algorithm to find the length of the shortest path from node 1 to node 4. Find the arcs in
the path.
b Use Floyd's algorithm to find the length of the shortest path between any two nodes. Find the arcs
in the path from node 1 to node 4.
Ford's algorithm
Step 1 2 3 4
1 [0] 3 2
2 [0] 3 [2]
3 [0] 3 [2]
4 [0] [3] -1 2
5 [0] [3] [-1] 2
6 [0] [3] [-1] 0
7 [0] [3] [-1] [0]
35. In the network having the net-flow coefficient matrix shown below, node 1 has a supply of four units
of flow and node 2 has a demand of one unit. (a) Draw the network showing all arc data. (b) What
kind of network is this? (c) If all supply available is used, how many units of flow will be available at
node 4 after following the path 1-3-2-4? (d) Write the flow-conservation condition for node 2.
1 1 0 0 0 0
-3 0 1 1 - 1/2 0
0 -6 -2 0 1 1
0 0 0 - 2/3 0 - 1/3