Introduction to Maximum Flows

Slides:



Advertisements
Similar presentations
MAXIMUM FLOW Max-Flow Min-Cut Theorem (Ford Fukerson’s Algorithm)
Advertisements

1 Augmenting Path Algorithm s t G: Flow value = 0 0 flow capacity.
CSE 421 Algorithms Richard Anderson Lecture 22 Network Flow.
1 Augmenting Path Algorithm s t G: Flow value = 0 0 flow capacity.
Maximum Flows Lecture 4: Jan 19. Network transmission Given a directed graph G A source node s A sink node t Goal: To send as much information from s.
and 6.855J The Capacity Scaling Algorithm.
Maximum Flow Problem (Thanks to Jim Orlin & MIT OCW)
& 6.855J & ESD.78J Algorithm Visualization The Ford-Fulkerson Augmenting Path Algorithm for the Maximum Flow Problem.
The Ford-Fulkerson Augmenting Path Algorithm for the Maximum Flow Problem Thanks to Jim Orlin & MIT OCW.
15.082J and 6.855J March 4, 2003 Introduction to Maximum Flows.
Cycle Canceling Algorithm
Network Simplex Animations
Dijkstra’s Algorithm with two levels of buckets
Network Flow 2016/04/12.
Edmonds-Karp Algorithm
The Shortest Augmenting Path Algorithm for the Maximum Flow Problem
Network Flow and Connectivity in Wireless Sensor Networks
Introduction to Maximum Flows
Introduction to Maximum Flows
15.082J & 6.855J & ESD.78J Visualizations
15.082J & 6.855J & ESD.78J Visualizations
Lecture 6 Shortest Path Problem.
7. Ford-Fulkerson Demo.
7. Ford-Fulkerson Demo.
Breadth first search animation
Lecture 4 Graph Search.
Richard Anderson Lecture 21 Network Flow
Introduction to Minimum Cost Flows
Spanning Tree Algorithms
and 6.855J Flow Decomposition
Primal-Dual Algorithm
Complexity of Ford-Fulkerson
Algorithms (2IL15) – Lecture 7
Successive Shortest Path Algorithm
EE5900 Advanced Embedded System For Smart Infrastructure
and 6.855J March 6, 2003 Maximum Flows 2
15.082J & 6.855J & ESD.78J Radix Heap Animation
Network Optimization Depth First Search
Introduction to Algorithms
Min Global Cut Animation
Lecture 21 Network Flow, Part 1
7. Ford-Fulkerson Demo.
7. Ford-Fulkerson Algorithm with multiple optimal solutions
Dijkstra’s Algorithm for Shortest Paths
The Shortest Augmenting Path Algorithm for the Maximum Flow Problem
Reading before Lecture 13
The Shortest Augmenting Path Algorithm for the Maximum Flow Problem
The Ford-Fulkerson Algorithm
Network Optimization Topological Ordering
and 6.855J The Goldberg-Tarjan Preflow Push Algorithm for the Maximum Flow Problem Obtain a network, and use the same network to illustrate the.
and 6.855J Dijkstra’s Algorithm
Visualizations Dijkstra’s Algorithm
Introduction to Maximum Flows
Network Simplex Animations
and 6.855J The Goldberg-Tarjan Preflow Push Algorithm for the Maximum Flow Problem Obtain a network, and use the same network to illustrate the.
Eulerian Cycles in directed graphs
and 6.855J Topological Ordering
15.082J & 6.855J & ESD.78J Visualizations
The Minimum Cost Spanning Tree Problem
and 6.855J Depth First Search
7. Ford-Fulkerson Demo.
7. Ford-Fulkerson Demo.
7. Ford-Fulkerson Demo.
Breadth first search animation
7. Ford-Fulkerson Demo.
7. Ford-Fulkerson Demo.
Richard Anderson Lecture 22 Network Flow
7. Ford-Fulkerson Demo.
Max Flows 3 Preflow-Push Algorithms
15.082J & 6.855J & ESD.78J Visualizations
Presentation transcript:

Introduction to Maximum Flows Lecture 13 Introduction to Maximum Flows

Flow Network

The Ford Fulkerson Maximum Flow Algorithm Begin x := 0; create the residual network G(x); while there is some directed path from s to t in G(x) do begin let P be a path from s to t in G(x); ∆:= δ(P); send ∆ units of flow along P; update the r's; End end {the flow x is now maximum}.

The Ford-Fulkerson Augmenting Path Algorithm for the Maximum Flow Problem Obtain a network, and use the same network to illustrate the shortest path problem for communication networks, the max flow problem, the minimum cost flow problem, and the multicommodity flow problem. This will be a very efficient way of introducing the four problems. (Perhaps under 10 minutes of class time.)

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 1 1 2 2 s 4 t 3 2 1 3 Find any s-t path in G(x)

Ford-Fulkerson Max Flow 4 2 5 1 3 1 1 2 1 2 s 4 t 1 2 3 2 1 1 1 3 Determine the capacity D of the path. Send D units of flow in the path. Update residual capacities.

Ford-Fulkerson Max Flow 4 2 5 1 3 1 1 2 1 2 s 4 t 1 2 3 2 1 1 1 3 Find any s-t path

Ford-Fulkerson Max Flow 4 2 5 1 3 1 1 2 1 1 1 s 4 t 1 1 2 3 2 2 1 1 1 1 1 3 Determine the capacity D of the path. Send D units of flow in the path. Update residual capacities.

Ford-Fulkerson Max Flow 4 2 5 1 3 1 1 2 1 1 1 s 4 t 1 1 2 3 2 2 1 1 1 1 1 3 Find any s-t path

Ford-Fulkerson Max Flow 4 2 5 1 3 1 1 1 1 1 s 4 t 1 2 2 1 3 2 1 1 1 1 1 3 Determine the capacity D of the path. Send D units of flow in the path. Update residual capacities.

Ford-Fulkerson Max Flow 4 2 5 1 3 1 1 2 1 1 1 s 4 t 2 1 1 2 2 3 1 1 1 1 1 3 Find any s-t path

Ford-Fulkerson Max Flow 4 2 5 1 3 1 1 2 1 1 1 s 4 t 2 1 1 2 2 1 1 1 1 2 1 1 2 3 Determine the capacity D of the path. Send D units of flow in the path. Update residual capacities.

Ford-Fulkerson Max Flow 4 2 5 1 3 1 1 2 1 1 1 s 4 t 1 2 1 2 1 2 1 1 2 1 2 1 3 Find any s-t path

Ford-Fulkerson Max Flow 4 3 2 5 1 1 2 3 1 1 1 1 s 4 t 2 1 1 2 1 2 1 1 2 1 1 2 3 Determine the capacity D of the path. Send D units of flow in the path. Update residual capacities.

Ford-Fulkerson Max Flow 3 4 2 5 1 1 2 3 1 1 1 1 s 4 t 1 2 1 2 1 2 1 1 2 1 2 1 3 There is no s-t path in the residual network. This flow is optimal

Ford-Fulkerson Max Flow 4 3 2 2 5 5 1 1 2 3 1 1 1 1 s s 4 4 t 2 1 2 1 1 2 1 1 1 2 1 2 3 3 These are the nodes that are reachable from node s.

Ford-Fulkerson Max Flow 1 2 s 4 5 3 t Here is the optimal flow

Review for cutset theorem

Quiz Sample

Polynomial-time