EMIS 8374 Max-Flow in Undirected Networks Updated 18 March 2008
description
Transcript of EMIS 8374 Max-Flow in Undirected Networks Updated 18 March 2008
![Page 1: EMIS 8374 Max-Flow in Undirected Networks Updated 18 March 2008](https://reader036.fdocuments.in/reader036/viewer/2022062408/56813b7f550346895da4a0ba/html5/thumbnails/1.jpg)
EMIS 8374
Max-Flow in Undirected Networks
Updated 18 March 2008
![Page 2: EMIS 8374 Max-Flow in Undirected Networks Updated 18 March 2008](https://reader036.fdocuments.in/reader036/viewer/2022062408/56813b7f550346895da4a0ba/html5/thumbnails/2.jpg)
Slide 2
Max Flow in Undirected Networks
1
2
4
3
s t
4
10
3
8
6
5
10
4
5
6
1
2
![Page 3: EMIS 8374 Max-Flow in Undirected Networks Updated 18 March 2008](https://reader036.fdocuments.in/reader036/viewer/2022062408/56813b7f550346895da4a0ba/html5/thumbnails/3.jpg)
Slide 3
2
6
Replace Edge {i,j} With Arcs (i,j) and (j,i)
1
2
4
3
s
t4
10
3
8
65
10
41
5 5
6
1
2
6
5
10
48
3
10
4
![Page 4: EMIS 8374 Max-Flow in Undirected Networks Updated 18 March 2008](https://reader036.fdocuments.in/reader036/viewer/2022062408/56813b7f550346895da4a0ba/html5/thumbnails/4.jpg)
Slide 4
2
0
Max Flow in Directed Network
1
2
4
3
s
t4
0
3
0
0
0
10
01
2 4
6
0
0
6
4
0
47
0
10
0
![Page 5: EMIS 8374 Max-Flow in Undirected Networks Updated 18 March 2008](https://reader036.fdocuments.in/reader036/viewer/2022062408/56813b7f550346895da4a0ba/html5/thumbnails/5.jpg)
Slide 5
2
Max Flow in Directed Network
4
3
s
t4
3
10
1
4
1
2
2
6
64
47
10
![Page 6: EMIS 8374 Max-Flow in Undirected Networks Updated 18 March 2008](https://reader036.fdocuments.in/reader036/viewer/2022062408/56813b7f550346895da4a0ba/html5/thumbnails/6.jpg)
Slide 6
Remove Bi-directional flows
if xij xji then xij = xij – xji and xji = 0
else xji = xji – xij and xij = 0
1
2
2 4
4 6
12 10
1
2
2-2=0 4-2=2
4 6
12 10
![Page 7: EMIS 8374 Max-Flow in Undirected Networks Updated 18 March 2008](https://reader036.fdocuments.in/reader036/viewer/2022062408/56813b7f550346895da4a0ba/html5/thumbnails/7.jpg)
Slide 7
Max Flow in Undirected Network
1
2
4
3
s t
4
10
3
7
6
4
10
4
2
6
1
2
Arrows indicate flow direction
![Page 8: EMIS 8374 Max-Flow in Undirected Networks Updated 18 March 2008](https://reader036.fdocuments.in/reader036/viewer/2022062408/56813b7f550346895da4a0ba/html5/thumbnails/8.jpg)
Slide 8
Remove Saturated Edges
1
2
4
3
s t
S = {s, 4}T = {1, 2, 4, t}
![Page 9: EMIS 8374 Max-Flow in Undirected Networks Updated 18 March 2008](https://reader036.fdocuments.in/reader036/viewer/2022062408/56813b7f550346895da4a0ba/html5/thumbnails/9.jpg)
Slide 9
Undirected s-t Cut
1
2
4
3
s t
4
10
3
7
6
4
10
4
2
6
1
2
u[S, T] = 24
![Page 10: EMIS 8374 Max-Flow in Undirected Networks Updated 18 March 2008](https://reader036.fdocuments.in/reader036/viewer/2022062408/56813b7f550346895da4a0ba/html5/thumbnails/10.jpg)
Slide 10
All-Pairs Minimum Cut Problem
• Find the minimum value of u[A, B] where [A, B] is an partition of the nodes such that |A|>0 and |B|>0.
• Also known as the minimum 2-cut.
• Note that no specific source or sink nodes are specified.
![Page 11: EMIS 8374 Max-Flow in Undirected Networks Updated 18 March 2008](https://reader036.fdocuments.in/reader036/viewer/2022062408/56813b7f550346895da4a0ba/html5/thumbnails/11.jpg)
Slide 11
Min 2-Cut Algorithm
• Since the network is undirected, u[A, B] = u[A, B]
• Don’t need to try s = j and t = i if we’ve already tried s = i and t = j
![Page 12: EMIS 8374 Max-Flow in Undirected Networks Updated 18 March 2008](https://reader036.fdocuments.in/reader036/viewer/2022062408/56813b7f550346895da4a0ba/html5/thumbnails/12.jpg)
Slide 12
Min 2-Cut Algorithmv* = ;for s = 1 .. |N| - 1 for t = s + 1 .. |N| begin solve max s-t flow problem;
identify min cut [S, T]; if u[S, T] < v* then begin A = S; B = T; end end
![Page 13: EMIS 8374 Max-Flow in Undirected Networks Updated 18 March 2008](https://reader036.fdocuments.in/reader036/viewer/2022062408/56813b7f550346895da4a0ba/html5/thumbnails/13.jpg)
Slide 13
Min 2-Cut Example
1 2
4
35
10
8
3 3
2 5
4
3
1
![Page 14: EMIS 8374 Max-Flow in Undirected Networks Updated 18 March 2008](https://reader036.fdocuments.in/reader036/viewer/2022062408/56813b7f550346895da4a0ba/html5/thumbnails/14.jpg)
Slide 14
Minimum Cut: s = 1, t = 2
1 2
4
35
10
8
3 3
2 5
4
3
1
S = {1}T = {2, 3, 4, 5}u[S, T] = 17
![Page 15: EMIS 8374 Max-Flow in Undirected Networks Updated 18 March 2008](https://reader036.fdocuments.in/reader036/viewer/2022062408/56813b7f550346895da4a0ba/html5/thumbnails/15.jpg)
Slide 15
Minimum Cut s = 1, t = 310
1 2
4
35 8
3 3
2 5
4
3
1
S = {1,2}T = {3,4,5}u[S, T]=14
![Page 16: EMIS 8374 Max-Flow in Undirected Networks Updated 18 March 2008](https://reader036.fdocuments.in/reader036/viewer/2022062408/56813b7f550346895da4a0ba/html5/thumbnails/16.jpg)
Slide 16
Minimum Cut: s = 1, t = 4
1 2
4
35
10
8
3 3
2 5
4
3
1
S = {1,2,3,5}T={4}u[S, T]=12
![Page 17: EMIS 8374 Max-Flow in Undirected Networks Updated 18 March 2008](https://reader036.fdocuments.in/reader036/viewer/2022062408/56813b7f550346895da4a0ba/html5/thumbnails/17.jpg)
Slide 17
Minimum Cut: s = 1, t = 510
1 2
4
35 8
3 3
2 5
4
3
1
S = {1,2}T = {3,4,5}u[S, T]=14
![Page 18: EMIS 8374 Max-Flow in Undirected Networks Updated 18 March 2008](https://reader036.fdocuments.in/reader036/viewer/2022062408/56813b7f550346895da4a0ba/html5/thumbnails/18.jpg)
Slide 18
Minimum Cut: s = 2, t =310
1 2
4
35 8
3 3
2 5
4
3
1
S = {2,1}T = {3,4,5}u[S, T]=14
![Page 19: EMIS 8374 Max-Flow in Undirected Networks Updated 18 March 2008](https://reader036.fdocuments.in/reader036/viewer/2022062408/56813b7f550346895da4a0ba/html5/thumbnails/19.jpg)
Slide 19
Observation• Suppose s = 2 and t = 3 and let [A, B] be a
minimum 2-3 cut.• Case 1: node 1 is in A
– [A, B] is also a 1-3 cut– Thus, we already know u[A, B] 14
• Case 2: node 1 is in N2
– [A, B] is also a 2-1 (1-2) cut– Thus, we already know u[A, B] 17
• There is no need to solve the max-flow problem for s = 2 and t =3.
![Page 20: EMIS 8374 Max-Flow in Undirected Networks Updated 18 March 2008](https://reader036.fdocuments.in/reader036/viewer/2022062408/56813b7f550346895da4a0ba/html5/thumbnails/20.jpg)
Slide 20
An Improved Min 2-Cut Algorithm
• Consider a minimum 2-cut [A, B]• Let A be the set containing node 1.• Since |B| > 0, it must contain at least one
node in {2, 3, 4, 5}.• Thus we can discover [A, B] by solving only
|N| - 1 max flow problems with s =1 and t = 2, t = 3, …, t = |N|.
• Complexity is O(n f(n, m)) where f(n, m) is the complexity of solving a max flow problem
![Page 21: EMIS 8374 Max-Flow in Undirected Networks Updated 18 March 2008](https://reader036.fdocuments.in/reader036/viewer/2022062408/56813b7f550346895da4a0ba/html5/thumbnails/21.jpg)
Slide 21
Minimum 2-Cut
1 2
4
35
10
8
3 3
2 5
4
3
1
u[A, B]=12
A = {1,2,3,5}
B = {4}
![Page 22: EMIS 8374 Max-Flow in Undirected Networks Updated 18 March 2008](https://reader036.fdocuments.in/reader036/viewer/2022062408/56813b7f550346895da4a0ba/html5/thumbnails/22.jpg)
Edge Connectivity
• In a so-called unweighted graph where each edge as a capacity of 1 unit, the capacity of a minimum 2-cut is known as the edge connectivity of the graph
• Connectivity is an important measure of a network’s reliability.
• In a telecommunications network an edge connectivity of two (2) means that the network can survive single-link failures.
Slide 22