Presentation is loading. Please wait.

Presentation is loading. Please wait.

CSE, IIT KGP Application of Network Flows: Matrix Rounding.

Similar presentations


Presentation on theme: "CSE, IIT KGP Application of Network Flows: Matrix Rounding."— Presentation transcript:

1 CSE, IIT KGP Application of Network Flows: Matrix Rounding

2 CSE, IIT KGP Matrix Rounding 16.5 13.5 10.9 9.8 18.5 14.4 Ʃ Ʃ [16,17] [14,15] [10,11] [18,19] [9,10] [13,14] x1x1 x2x2 x3x3 y1y1 y2y2 y3y3

3 CSE, IIT KGP Solution Step 1: Represent the consistent rounding problem as a feasible flow problem.Step 1: Represent the consistent rounding problem as a feasible flow problem. Step 2: Convert the feasible flow problem into a feasible circulation problem.Step 2: Convert the feasible flow problem into a feasible circulation problem. Step 3: Convert the feasible circulation problem into a Demand and Supplies problem.Step 3: Convert the feasible circulation problem into a Demand and Supplies problem. Step 4: Convert the transportation problem into a network flows problem.Step 4: Convert the transportation problem into a network flows problem.

4 CSE, IIT KGP Solution Step 1: Represent the consistent rounding problem as a feasible flow problem.Step 1: Represent the consistent rounding problem as a feasible flow problem. Step 2: Convert the feasible flow problem into a feasible circulation problem.Step 2: Convert the feasible flow problem into a feasible circulation problem. Step 3: Convert the feasible circulation problem into a Demand and Supplies problem.Step 3: Convert the feasible circulation problem into a Demand and Supplies problem. Step 4: Convert the transportation problem into a network flows problem.Step 4: Convert the transportation problem into a network flows problem.

5 CSE, IIT KGP [16,17] [14,15] [10,11] [18,19] [9,10] [13,14] x1x1 x2x2 x3x3 y1y1 y2y2 y3y3 [18,19] [9,10] [13,14] [16,17] [14,15] [10,11] x1x1 x2x2 x3x3 y1y1 y2y2 y3y3 st [6,7] [3,4] [7,8] [4,5] [2,3] [5,6] [2,3] [4,5] Feasible Flow Problem Formulation

6 CSE, IIT KGP Solution Step 1: Represent the consistent rounding problem as a feasible flow problem.Step 1: Represent the consistent rounding problem as a feasible flow problem. Step 2: Convert the feasible flow problem into a feasible circulation problem.Step 2: Convert the feasible flow problem into a feasible circulation problem. Step 3: Convert the feasible circulation problem into a Demand and Supplies problem.Step 3: Convert the feasible circulation problem into a Demand and Supplies problem. Step 4: Convert the transportation problem into a network flows problem.Step 4: Convert the transportation problem into a network flows problem.

7 CSE, IIT KGP [18,19] [9,10] [13,14] [16,17] [14,15] [10,11] x1x1 x2x2 x3x3 y1y1 y2y2 y3y3 st [6,7] [3,4] [7,8] [4,5] [2,3] [5,6] [2,3] [4,5] Feasible Circulation Problem [0,∞] Add an edge from t → s with bounds [0,∞]

8 CSE, IIT KGP Solution Step 1: Represent the consistent rounding problem as a feasible flow problem.Step 1: Represent the consistent rounding problem as a feasible flow problem. Step 2: Convert the feasible flow problem into a feasible circulation problem.Step 2: Convert the feasible flow problem into a feasible circulation problem. Step 3: Convert the feasible circulation problem into a Demand and Supplies problem.Step 3: Convert the feasible circulation problem into a Demand and Supplies problem. Step 4: Convert the transportation problem into a network flows problem.Step 4: Convert the transportation problem into a network flows problem.

9 CSE, IIT KGP Transportation Problem [18,19] [9,10] [13,14] [16,17] [14,15] [10,11] x1x1 x2x2 x3x3 y1y1 y2y2 y3y3 st [6,7] [3,4] [7,8] [4,5] [2,3] [5,6] [2,3] [4,5] [0,∞] c(x 1,y 1 ) = 1 l - (x 1 ) = 18 l + (x 1 ) = 6+7+4=17 b(x 1 ) = 18-17 = 1

10 CSE, IIT KGP vl - (v)l + (v)b(v)=l - (v)-l + (v) s040-40 (D) x1x1 1817+1 (S) x2x2 98 x3x3 1312+1 (S) y1y1 1516-1 (D) y2y2 1314-1 (D) y3y3 910-1 (D) t400+40 (S) [18,19] [9,10] [13,14] [16,17] [14,15] [10,11] x1x1 x2x2 x3x3 y1y1 y2y2 y3y3 st [6,7] [3,4] [7,8] [4,5] [2,3] [5,6] [2,3] [4,5] [0,∞] S – Supply Node D – Demand Node

11 CSE, IIT KGP 1 1 1 1 1 1 x1x1 x2x2 x3x3 y1y1 y2y2 y3y3 s t 1 1 1 1 1 1 1 1 1 Back to a Network Flows Problem ∞ s' t' If b(v) ≥ 0, add an edge from s’ to v else add an edge from v to t’, with capacity b(v). Add a new source s’ and a new sink t’. 1 1 1 1 1 1 40 Is there a flow equal to the total capacity on the edges leaving s’? (In this case 43)


Download ppt "CSE, IIT KGP Application of Network Flows: Matrix Rounding."

Similar presentations


Ads by Google