15.082 and 6.855J

15
1 15.082 and 6.855J The Ford-Fulkerson Augmenting Path Algorithm for the Maximum Flow Problem

description

15.082 and 6.855J. The Ford-Fulkerson Augmenting Path Algorithm for the Maximum Flow Problem. Ford-Fulkerson Max Flow. 4. 2. 5. 1. 3. 1. 1. 2. 2. s. 4. t. 3. 2. 1. 3. This is the original network, and the original residual network. Ford-Fulkerson Max Flow. 4. 2. 5. 1. 3. - PowerPoint PPT Presentation

Transcript of 15.082 and 6.855J

Page 1: 15.082 and 6.855J

1

15.082 and 6.855J

The Ford-Fulkerson Augmenting Path Algorithm for the Maximum

Flow Problem

Page 2: 15.082 and 6.855J

3

Ford-Fulkerson Max Flow

4

11

2

21

2

3

3

1

s

2

4

5

3

t

This is the original network, and the original residual network.

Page 3: 15.082 and 6.855J

4

4

11

2

21

2

3

3

1

Ford-Fulkerson Max Flow

Find any s-t path in G(x)

s

2

4

5

3

t

Page 4: 15.082 and 6.855J

5

4

1

1

2

13

Ford-Fulkerson Max Flow

Determine the capacity of the path.

Send units of flow in the path.Update residual capacities.

11

1

21

2

3

2

1

s

2

4

5

3

t

Page 5: 15.082 and 6.855J

6

4

1

1

2

13

Ford-Fulkerson Max Flow

Find any s-t path

11

1

21

2

3

2

1

s

2

4

5

3

t

Page 6: 15.082 and 6.855J

7

4

2

1

1

1

12

2

1

1

1

13

Ford-Fulkerson Max Flow

11

1

1

3

2

1

s

2

4

5

3

t

Determine the capacity of the path.

Send units of flow in the path.Update residual capacities.

Page 7: 15.082 and 6.855J

8

4

2

1

1

1

12

2

1

1

1

13

Ford-Fulkerson Max Flow

11

1

1

3

2

1

s

2

4

5

3

t

Find any s-t path

Page 8: 15.082 and 6.855J

9

11 1

11

4

1

2

1

12

11

3

Ford-Fulkerson Max Flow

113

2

1

s

2

4

5

3

t

Determine the capacity of the path.

Send units of flow in the path.Update residual capacities.

Page 9: 15.082 and 6.855J

10

11 1

11

4

1

2

1

1

2

2

11

3

Ford-Fulkerson Max Flow

113

2

1

s

2

4

5

3

t

Find any s-t path

Page 10: 15.082 and 6.855J

11

1

11

2 1 1

11

4

2

2

1

1

2

21

Ford-Fulkerson Max Flow

113

1

1

s

2

4

5

3

t

Determine the capacity of the path.

Send units of flow in the path.Update residual capacities.

2

Page 11: 15.082 and 6.855J

12

11

2 1 1

11

4

2

2

1

1

2

21

Ford-Fulkerson Max Flow

113

1

1

s

2

4

5

3

t

Find any s-t path

2

Page 12: 15.082 and 6.855J

13

111

11

4

13

11

2 1 1

3

2

21

21

Ford-Fulkerson Max Flow

2

1s

2

4

5

3

t

2

Determine the capacity of the path.

Send units of flow in the path.Update residual capacities.

Page 13: 15.082 and 6.855J

14

111

11

4

13

11

2 1 1

3

2

21

21

Ford-Fulkerson Max Flow

2

1s

2

4

5

3

t

2

There is no s-t path in the residual network. This flow is optimal

Page 14: 15.082 and 6.855J

15

111

11

4

13

11

2 1 1

3

2

21

21

Ford-Fulkerson Max Flow

2

1s

2

4

5

3

t

2

These are the nodes that are reachable from node s.

s

2

4

5

3

Page 15: 15.082 and 6.855J

16

Ford-Fulkerson Max Flow

1

1

2

2

2

1

2s

2

4

5

3

t

Here is the optimal flow