SlideShare a Scribd company logo
Flow Network Max Flow Algorithm Fundamental Knowledge
Artificial Intelligence
Max Flow Problem
G. Guérard
Department of Nouvelles Energies
Ecole Supérieure d’Ingénieurs Léonard de Vinci
Lecture 4
GG | A.I. 1/15
Flow Network Max Flow Algorithm Fundamental Knowledge
OutlineOutlineOutlineOutlineOutlineOutlineOutlineOutlineOutlineOutlineOutlineOutlineOutlineOutlineOutlineOutlineOutline
1 Flow Network
2 Max Flow Algorithm
GG | A.I. 2/15
Flow Network Max Flow Algorithm Fundamental Knowledge
ApplicationApplicationApplicationApplicationApplicationApplicationApplicationApplicationApplicationApplicationApplicationApplicationApplicationApplicationApplicationApplicationApplication
Various problems can be reducted into MAX FLOW PROBLEM,
for examples:
NETWORK CONNECTIVITY: Edge-disjoint paths, Network
reliability.
MATCHING: Bipartite matching, Maximum matchings.
VERTEX CAPACITIES: Data mining.
SCHEDULING: Airline scheduling, Project selection.
GRAPH CUTS: Image processing.
ASSIGNEMENT: Baseball elimination, Distributed computing.
GG | A.I. 3/15
Flow Network Max Flow Algorithm Fundamental Knowledge
Min cut problemMin cut problemMin cut problemMin cut problemMin cut problemMin cut problemMin cut problemMin cut problemMin cut problemMin cut problemMin cut problemMin cut problemMin cut problemMin cut problemMin cut problemMin cut problemMin cut problem
Flow network
Let G = (V , E) be a directed graph with two distingished
nodes s, the source, and t, the sink. And a capacity c(e) for
each edge e ∈ E.
Min cut problem
Delete a set of edges to disconnect t from s. Found a set to
minimize the sum of edge’s capacity. A CUT is a node partition
(S, T) such that s is in S and t is in T.
MINIMIZE THE SUM OF WEIGHTS OF EDGES LEAVING S.
GG | A.I. 4/15
Flow Network Max Flow Algorithm Fundamental Knowledge
Min cut problemMin cut problemMin cut problemMin cut problemMin cut problemMin cut problemMin cut problemMin cut problemMin cut problemMin cut problemMin cut problemMin cut problemMin cut problemMin cut problemMin cut problemMin cut problemMin cut problem
GG | A.I. 5/15
Flow Network Max Flow Algorithm Fundamental Knowledge
FlowsFlowsFlowsFlowsFlowsFlowsFlowsFlowsFlowsFlowsFlowsFlowsFlowsFlowsFlowsFlowsFlows
Flow
A FLOW f is an assignment of weights to edges so that. The
flow can’t go over the capacity of an edge. The flow entering in a
vertex is equal to the flow leaving it. An s − t flow is a function
that satisfies: for each e ∈ E, 0 ≤ f (e) ≤ c(e) (capacity); for
each v ∈ V − {s, t}, ∑
e∈Γ+
f (e) = ∑
e∈Γ−
f (e).
Max flow
Find s − t flow of maximum value v(f ). An simple and easy
way to know the max flow is to sum flow out of s or to sum
flow in to t: v(f ) = ∑
e∈Γ+(s)
f (e).
GG | A.I. 6/15
Flow Network Max Flow Algorithm Fundamental Knowledge
FlowsFlowsFlowsFlowsFlowsFlowsFlowsFlowsFlowsFlowsFlowsFlowsFlowsFlowsFlowsFlowsFlows
Flow value Lemma
Let f be any flow, and let (A, B) be any cut. Then, the net flow
sent across the cut is equal to the amount leaving
s:v(f ) = ∑
e∈Γ+(A)
f (e) − ∑
e∈Γ−(A)
f (e).
GG | A.I. 7/15
Flow Network Max Flow Algorithm Fundamental Knowledge
Flows and cutsFlows and cutsFlows and cutsFlows and cutsFlows and cutsFlows and cutsFlows and cutsFlows and cutsFlows and cutsFlows and cutsFlows and cutsFlows and cutsFlows and cutsFlows and cutsFlows and cutsFlows and cutsFlows and cuts
Weak duality
Let f be any flow, and let (A, B) be any cut. Then the value of
the flow is at most the capacity of the cut.
GG | A.I. 8/15
Flow Network Max Flow Algorithm Fundamental Knowledge
Flows and cutsFlows and cutsFlows and cutsFlows and cutsFlows and cutsFlows and cutsFlows and cutsFlows and cutsFlows and cutsFlows and cutsFlows and cutsFlows and cutsFlows and cutsFlows and cutsFlows and cutsFlows and cutsFlows and cuts
Corollary
Let f be any flow, and let (A, B) be any cut. If v(f ) is equal to
the capacity of the cut, then f is a max flow and (A, B) forms a
min cut.
GG | A.I. 9/15
Flow Network Max Flow Algorithm Fundamental Knowledge
Augmenting pathAugmenting pathAugmenting pathAugmenting pathAugmenting pathAugmenting pathAugmenting pathAugmenting pathAugmenting pathAugmenting pathAugmenting pathAugmenting pathAugmenting pathAugmenting pathAugmenting pathAugmenting pathAugmenting path
Find a s − t path where each arc has f (e) < u(e) and augment flow
along it by the minimum of u(e) − f (e). A naive algorithm consists
to repeat this process until you get stuck. This method do not give an
optimal value, we need to be able to backtrack.
Residual graph
Let e be an edge from v to w, u(e) its capacity and f (e) the flow
passing by this edge. A residual graph G = (V , E ) represents each
possible evolution of flows in the graph G = (V , E). To construct G
all the arc that have strictly positive flow are duplicate, the new arc
go from the end node to the start node, its capacity is equal to the
flow. The previous has a capacity equal to u(e) − f (e).
GG | A.I. 10/15
Flow Network Max Flow Algorithm Fundamental Knowledge
Augmenting pathAugmenting pathAugmenting pathAugmenting pathAugmenting pathAugmenting pathAugmenting pathAugmenting pathAugmenting pathAugmenting pathAugmenting pathAugmenting pathAugmenting pathAugmenting pathAugmenting pathAugmenting pathAugmenting path
Augmenting path
Find a s − t path in residual graph, it is called augmenting path.
Once the path is selected, increase flow along forward edges,
decrease flow along backward edges.
GG | A.I. 11/15
Flow Network Max Flow Algorithm Fundamental Knowledge
AlgorithmAlgorithmAlgorithmAlgorithmAlgorithmAlgorithmAlgorithmAlgorithmAlgorithmAlgorithmAlgorithmAlgorithmAlgorithmAlgorithmAlgorithmAlgorithmAlgorithm
FORD-FULKERSON’s algorithm is a generic (greedy) method for
solving max flow.
While there exists an augmenting path
find augmenting path P
compute bottleneck capacity of P
augment flow along P
Theorem
A flow f is a max flow iff there are no augmenting paths.
GG | A.I. 12/15
Flow Network Max Flow Algorithm Fundamental Knowledge
AlgorithmAlgorithmAlgorithmAlgorithmAlgorithmAlgorithmAlgorithmAlgorithmAlgorithmAlgorithmAlgorithmAlgorithmAlgorithmAlgorithmAlgorithmAlgorithmAlgorithm
THOSE THREE SENTENCES ARE EQUIVALENT:
f is a max flow.
There is no augmenting path relative to f .
There exists a cut whose capacity equals the value of f .
SO, THE FOLLOWING PROBLEMS ARE EQUIVALENT:
Find a max flow.
Find a min cut.
Use residual graph to find bottlenecks (backward edges without
respecting forwward edges).
Use residual graph to find a min cut (minimum value set of
backward edges without respecting forward edges).
GG | A.I. 13/15
Flow Network Max Flow Algorithm Fundamental Knowledge
Good Augmenting PathGood Augmenting PathGood Augmenting PathGood Augmenting PathGood Augmenting PathGood Augmenting PathGood Augmenting PathGood Augmenting PathGood Augmenting PathGood Augmenting PathGood Augmenting PathGood Augmenting PathGood Augmenting PathGood Augmenting PathGood Augmenting PathGood Augmenting PathGood Augmenting Path
Use care when selecting augmenting paths. Design goal is to
choose augmenting paths so that can find augmenting paths
efficiently and in few iterations, not like:
GG | A.I. 14/15
Flow Network Max Flow Algorithm Fundamental Knowledge
Fundamental knowledgeFundamental knowledgeFundamental knowledgeFundamental knowledgeFundamental knowledgeFundamental knowledgeFundamental knowledgeFundamental knowledgeFundamental knowledgeFundamental knowledgeFundamental knowledgeFundamental knowledgeFundamental knowledgeFundamental knowledgeFundamental knowledgeFundamental knowledgeFundamental knowledge
YOU HAVE TO KNOW BEFORE THE TUTORIAL:
1 Flow definition and max flow problem.
2 Min-cut problem and weak duality.
3 Augmenting path definition.
4 Ford-Fulkerson’s algorithm.
GG | A.I. 15/15

More Related Content

What's hot

GRAPH APPLICATION - MINIMUM SPANNING TREE (MST)
GRAPH APPLICATION - MINIMUM SPANNING TREE (MST)GRAPH APPLICATION - MINIMUM SPANNING TREE (MST)
GRAPH APPLICATION - MINIMUM SPANNING TREE (MST)
Madhu Bala
 
A Maximum Flow Min cut theorem for Optimizing Network
A Maximum Flow Min cut theorem for Optimizing NetworkA Maximum Flow Min cut theorem for Optimizing Network
A Maximum Flow Min cut theorem for Optimizing Network
Shethwala Ridhvesh
 
Max flow min cut
Max flow min cutMax flow min cut
Max flow min cut
Mayank Garg
 
Floyd warshall-algorithm
Floyd warshall-algorithmFloyd warshall-algorithm
Floyd warshall-algorithm
Malinga Perera
 
Maxflow
MaxflowMaxflow
Dijkstra's Algorithm
Dijkstra's Algorithm Dijkstra's Algorithm
Dijkstra's Algorithm
Rashik Ishrak Nahian
 
L21-MaxFlowPr.ppt
L21-MaxFlowPr.pptL21-MaxFlowPr.ppt
L21-MaxFlowPr.ppt
KrishanPalSingh39
 
Flow Network Talk
Flow Network TalkFlow Network Talk
Flow Network Talk
Imane Haf
 
Maximal Flow Problem
Maximal Flow ProblemMaximal Flow Problem
Maximal Flow Problem
SarojKumarBanjara
 
Bellman ford algorithm
Bellman ford algorithmBellman ford algorithm
Bellman ford algorithm
MdSajjadulislamBappi
 
Dijkstra’s algorithm
Dijkstra’s algorithmDijkstra’s algorithm
Dijkstra’s algorithm
faisal2204
 
Graphs
GraphsGraphs
Graphs
Mohd Arif
 
Shortest path algorithm
Shortest path algorithmShortest path algorithm
Shortest path algorithm
sana younas
 
Bellman ford Algorithm
Bellman ford AlgorithmBellman ford Algorithm
Bellman ford Algorithm
taimurkhan803
 
Bellman-Ford-Moore Algorithm and Dijkstra’s Algorithm
Bellman-Ford-Moore Algorithm and Dijkstra’s AlgorithmBellman-Ford-Moore Algorithm and Dijkstra’s Algorithm
Bellman-Ford-Moore Algorithm and Dijkstra’s Algorithm
Fulvio Corno
 
A star algorithms
A star algorithmsA star algorithms
A star algorithms
sandeep54552
 
Kruskal's algorithm
Kruskal's algorithmKruskal's algorithm
Kruskal's algorithm
Raj Kumar Ranabhat
 
Floyd Warshall Algorithm
Floyd Warshall AlgorithmFloyd Warshall Algorithm
Floyd Warshall Algorithm
InteX Research Lab
 
Dijkstra's algorithm presentation
Dijkstra's algorithm presentationDijkstra's algorithm presentation
Dijkstra's algorithm presentation
Subid Biswas
 
Context free grammar
Context free grammarContext free grammar
Context free grammar
Ratnakar Mikkili
 

What's hot (20)

GRAPH APPLICATION - MINIMUM SPANNING TREE (MST)
GRAPH APPLICATION - MINIMUM SPANNING TREE (MST)GRAPH APPLICATION - MINIMUM SPANNING TREE (MST)
GRAPH APPLICATION - MINIMUM SPANNING TREE (MST)
 
A Maximum Flow Min cut theorem for Optimizing Network
A Maximum Flow Min cut theorem for Optimizing NetworkA Maximum Flow Min cut theorem for Optimizing Network
A Maximum Flow Min cut theorem for Optimizing Network
 
Max flow min cut
Max flow min cutMax flow min cut
Max flow min cut
 
Floyd warshall-algorithm
Floyd warshall-algorithmFloyd warshall-algorithm
Floyd warshall-algorithm
 
Maxflow
MaxflowMaxflow
Maxflow
 
Dijkstra's Algorithm
Dijkstra's Algorithm Dijkstra's Algorithm
Dijkstra's Algorithm
 
L21-MaxFlowPr.ppt
L21-MaxFlowPr.pptL21-MaxFlowPr.ppt
L21-MaxFlowPr.ppt
 
Flow Network Talk
Flow Network TalkFlow Network Talk
Flow Network Talk
 
Maximal Flow Problem
Maximal Flow ProblemMaximal Flow Problem
Maximal Flow Problem
 
Bellman ford algorithm
Bellman ford algorithmBellman ford algorithm
Bellman ford algorithm
 
Dijkstra’s algorithm
Dijkstra’s algorithmDijkstra’s algorithm
Dijkstra’s algorithm
 
Graphs
GraphsGraphs
Graphs
 
Shortest path algorithm
Shortest path algorithmShortest path algorithm
Shortest path algorithm
 
Bellman ford Algorithm
Bellman ford AlgorithmBellman ford Algorithm
Bellman ford Algorithm
 
Bellman-Ford-Moore Algorithm and Dijkstra’s Algorithm
Bellman-Ford-Moore Algorithm and Dijkstra’s AlgorithmBellman-Ford-Moore Algorithm and Dijkstra’s Algorithm
Bellman-Ford-Moore Algorithm and Dijkstra’s Algorithm
 
A star algorithms
A star algorithmsA star algorithms
A star algorithms
 
Kruskal's algorithm
Kruskal's algorithmKruskal's algorithm
Kruskal's algorithm
 
Floyd Warshall Algorithm
Floyd Warshall AlgorithmFloyd Warshall Algorithm
Floyd Warshall Algorithm
 
Dijkstra's algorithm presentation
Dijkstra's algorithm presentationDijkstra's algorithm presentation
Dijkstra's algorithm presentation
 
Context free grammar
Context free grammarContext free grammar
Context free grammar
 

Viewers also liked

Finished Business Plan
Finished Business PlanFinished Business Plan
Finished Business Plan
Cary Fisher
 
Universidad técnica de ambato
Universidad técnica de ambatoUniversidad técnica de ambato
Universidad técnica de ambato
Belenstepha
 
Thariq - T & S
Thariq  - T & SThariq  - T & S
Thariq - T & S
Abubacker Thariq
 
Craftcart Catalogue
Craftcart CatalogueCraftcart Catalogue
Craftcart Catalogue
craftcart
 
BKP Resume
BKP  ResumeBKP  Resume
My English Exam 2015
My English Exam 2015My English Exam 2015
My English Exam 2015
nysten1
 
Planned and Unplanned Presentation (1)
Planned and Unplanned Presentation (1)Planned and Unplanned Presentation (1)
Planned and Unplanned Presentation (1)
Dianne Johnson
 
new patrick
new patricknew patrick
new patrick
Patrick Byrne
 
class_desriptions
class_desriptionsclass_desriptions
class_desriptions
Isaac Long
 
Présentation d'APB - Académie de Rouen
Présentation d'APB - Académie de RouenPrésentation d'APB - Académie de Rouen
Présentation d'APB - Académie de Rouen
cdithomascorneille
 
Prasanth Softwear Testing Engineer
Prasanth Softwear Testing EngineerPrasanth Softwear Testing Engineer
Prasanth Softwear Testing Engineer
prasanth konde
 
Curriculum Vitae of Muzi Vilakazi 2
Curriculum Vitae of Muzi Vilakazi 2Curriculum Vitae of Muzi Vilakazi 2
Curriculum Vitae of Muzi Vilakazi 2
muzi vilakazi
 
Tc4 kinilitan
Tc4 kinilitanTc4 kinilitan
Tc4 kinilitan
Kate13Violeta
 
Sachin Resume
Sachin ResumeSachin Resume
Sachin Resume
Sachin Kasana
 
TrouDigital Creative Studio Walkthrough
TrouDigital Creative Studio WalkthroughTrouDigital Creative Studio Walkthrough
TrouDigital Creative Studio Walkthrough
Mario Troullis
 
Daniel Resume 2015
Daniel Resume 2015Daniel Resume 2015
Daniel Resume 2015
Daniel Wishart
 
Racismo no brasil
Racismo no brasilRacismo no brasil
Racismo no brasil
Melonita
 
Universidad estácio de sá power
Universidad estácio de sá powerUniversidad estácio de sá power
Universidad estácio de sá power
Melonita
 

Viewers also liked (20)

Finished Business Plan
Finished Business PlanFinished Business Plan
Finished Business Plan
 
Universidad técnica de ambato
Universidad técnica de ambatoUniversidad técnica de ambato
Universidad técnica de ambato
 
Thariq - T & S
Thariq  - T & SThariq  - T & S
Thariq - T & S
 
Craftcart Catalogue
Craftcart CatalogueCraftcart Catalogue
Craftcart Catalogue
 
BKP Resume
BKP  ResumeBKP  Resume
BKP Resume
 
Benefits Latvija
Benefits LatvijaBenefits Latvija
Benefits Latvija
 
My English Exam 2015
My English Exam 2015My English Exam 2015
My English Exam 2015
 
lob aps
lob apslob aps
lob aps
 
Planned and Unplanned Presentation (1)
Planned and Unplanned Presentation (1)Planned and Unplanned Presentation (1)
Planned and Unplanned Presentation (1)
 
new patrick
new patricknew patrick
new patrick
 
class_desriptions
class_desriptionsclass_desriptions
class_desriptions
 
Présentation d'APB - Académie de Rouen
Présentation d'APB - Académie de RouenPrésentation d'APB - Académie de Rouen
Présentation d'APB - Académie de Rouen
 
Prasanth Softwear Testing Engineer
Prasanth Softwear Testing EngineerPrasanth Softwear Testing Engineer
Prasanth Softwear Testing Engineer
 
Curriculum Vitae of Muzi Vilakazi 2
Curriculum Vitae of Muzi Vilakazi 2Curriculum Vitae of Muzi Vilakazi 2
Curriculum Vitae of Muzi Vilakazi 2
 
Tc4 kinilitan
Tc4 kinilitanTc4 kinilitan
Tc4 kinilitan
 
Sachin Resume
Sachin ResumeSachin Resume
Sachin Resume
 
TrouDigital Creative Studio Walkthrough
TrouDigital Creative Studio WalkthroughTrouDigital Creative Studio Walkthrough
TrouDigital Creative Studio Walkthrough
 
Daniel Resume 2015
Daniel Resume 2015Daniel Resume 2015
Daniel Resume 2015
 
Racismo no brasil
Racismo no brasilRacismo no brasil
Racismo no brasil
 
Universidad estácio de sá power
Universidad estácio de sá powerUniversidad estácio de sá power
Universidad estácio de sá power
 

Similar to Max Flow Problem

On the Implementation of Goldberg's Maximum Flow Algorithm in Extended Mixed ...
On the Implementation of Goldberg's Maximum Flow Algorithm in Extended Mixed ...On the Implementation of Goldberg's Maximum Flow Algorithm in Extended Mixed ...
On the Implementation of Goldberg's Maximum Flow Algorithm in Extended Mixed ...
AIRCC Publishing Corporation
 
08-network-flow-problems that are usefull in Oops
08-network-flow-problems that are usefull in Oops08-network-flow-problems that are usefull in Oops
08-network-flow-problems that are usefull in Oops
sj7033742
 
ON THE IMPLEMENTATION OF GOLDBERG'S MAXIMUM FLOW ALGORITHM IN EXTENDED MIXED ...
ON THE IMPLEMENTATION OF GOLDBERG'S MAXIMUM FLOW ALGORITHM IN EXTENDED MIXED ...ON THE IMPLEMENTATION OF GOLDBERG'S MAXIMUM FLOW ALGORITHM IN EXTENDED MIXED ...
ON THE IMPLEMENTATION OF GOLDBERG'S MAXIMUM FLOW ALGORITHM IN EXTENDED MIXED ...
AIRCC Publishing Corporation
 
ON THE IMPLEMENTATION OF GOLDBERG'S MAXIMUM FLOW ALGORITHM IN EXTENDED MIXED ...
ON THE IMPLEMENTATION OF GOLDBERG'S MAXIMUM FLOW ALGORITHM IN EXTENDED MIXED ...ON THE IMPLEMENTATION OF GOLDBERG'S MAXIMUM FLOW ALGORITHM IN EXTENDED MIXED ...
ON THE IMPLEMENTATION OF GOLDBERG'S MAXIMUM FLOW ALGORITHM IN EXTENDED MIXED ...
AIRCC Publishing Corporation
 
ON THE IMPLEMENTATION OF GOLDBERG'S MAXIMUM FLOW ALGORITHM IN EXTENDED MIXED ...
ON THE IMPLEMENTATION OF GOLDBERG'S MAXIMUM FLOW ALGORITHM IN EXTENDED MIXED ...ON THE IMPLEMENTATION OF GOLDBERG'S MAXIMUM FLOW ALGORITHM IN EXTENDED MIXED ...
ON THE IMPLEMENTATION OF GOLDBERG'S MAXIMUM FLOW ALGORITHM IN EXTENDED MIXED ...
ijcsit
 
Network flows
Network flowsNetwork flows
Network flows
Richa Bandlas
 
MaximumFlow.ppt
MaximumFlow.pptMaximumFlow.ppt
MaximumFlow.ppt
KrishanPalSingh39
 
maxflow.ppt
maxflow.pptmaxflow.ppt
maxflow.ppt
ssuser8244a91
 
Implementing Map Reduce Based Edmonds-Karp Algorithm to Determine Maximum Flo...
Implementing Map Reduce Based Edmonds-Karp Algorithm to Determine Maximum Flo...Implementing Map Reduce Based Edmonds-Karp Algorithm to Determine Maximum Flo...
Implementing Map Reduce Based Edmonds-Karp Algorithm to Determine Maximum Flo...
paperpublications3
 
Node Unique Label Cover
Node Unique Label CoverNode Unique Label Cover
Node Unique Label Cover
msramanujan
 
Sequential and parallel algorithm to find maximum flow on extended mixed netw...
Sequential and parallel algorithm to find maximum flow on extended mixed netw...Sequential and parallel algorithm to find maximum flow on extended mixed netw...
Sequential and parallel algorithm to find maximum flow on extended mixed netw...
csandit
 
SEQUENTIAL AND PARALLEL ALGORITHM TO FIND MAXIMUM FLOW ON EXTENDED MIXED NETW...
SEQUENTIAL AND PARALLEL ALGORITHM TO FIND MAXIMUM FLOW ON EXTENDED MIXED NETW...SEQUENTIAL AND PARALLEL ALGORITHM TO FIND MAXIMUM FLOW ON EXTENDED MIXED NETW...
SEQUENTIAL AND PARALLEL ALGORITHM TO FIND MAXIMUM FLOW ON EXTENDED MIXED NETW...
cscpconf
 
22 - Max Flow Porblem Ford Fulkerson Method.pdf
22 - Max Flow Porblem Ford Fulkerson Method.pdf22 - Max Flow Porblem Ford Fulkerson Method.pdf
22 - Max Flow Porblem Ford Fulkerson Method.pdf
abeedmaleek
 
Network problems 1 (1)
Network problems 1 (1)Network problems 1 (1)
Network problems 1 (1)
Jabnon Nonjab
 
A simulation and analysis of ofdm system for 4 g communications
A simulation and analysis of ofdm system for 4 g communicationsA simulation and analysis of ofdm system for 4 g communications
A simulation and analysis of ofdm system for 4 g communications
Harshal Ladhe
 
Internet
InternetInternet
MDM-Chapter-9-Updated latest.pptx
MDM-Chapter-9-Updated latest.pptxMDM-Chapter-9-Updated latest.pptx
MDM-Chapter-9-Updated latest.pptx
JimSotio
 
RWCap ASCION2011
RWCap ASCION2011RWCap ASCION2011
RWCap ASCION2011
Hao Zhuang
 
ECCV2008: MAP Estimation Algorithms in Computer Vision - Part 2
ECCV2008: MAP Estimation Algorithms in Computer Vision - Part 2ECCV2008: MAP Estimation Algorithms in Computer Vision - Part 2
ECCV2008: MAP Estimation Algorithms in Computer Vision - Part 2
zukun
 
PhD_Slides
PhD_SlidesPhD_Slides
PhD_Slides
Davide Cherubini
 

Similar to Max Flow Problem (20)

On the Implementation of Goldberg's Maximum Flow Algorithm in Extended Mixed ...
On the Implementation of Goldberg's Maximum Flow Algorithm in Extended Mixed ...On the Implementation of Goldberg's Maximum Flow Algorithm in Extended Mixed ...
On the Implementation of Goldberg's Maximum Flow Algorithm in Extended Mixed ...
 
08-network-flow-problems that are usefull in Oops
08-network-flow-problems that are usefull in Oops08-network-flow-problems that are usefull in Oops
08-network-flow-problems that are usefull in Oops
 
ON THE IMPLEMENTATION OF GOLDBERG'S MAXIMUM FLOW ALGORITHM IN EXTENDED MIXED ...
ON THE IMPLEMENTATION OF GOLDBERG'S MAXIMUM FLOW ALGORITHM IN EXTENDED MIXED ...ON THE IMPLEMENTATION OF GOLDBERG'S MAXIMUM FLOW ALGORITHM IN EXTENDED MIXED ...
ON THE IMPLEMENTATION OF GOLDBERG'S MAXIMUM FLOW ALGORITHM IN EXTENDED MIXED ...
 
ON THE IMPLEMENTATION OF GOLDBERG'S MAXIMUM FLOW ALGORITHM IN EXTENDED MIXED ...
ON THE IMPLEMENTATION OF GOLDBERG'S MAXIMUM FLOW ALGORITHM IN EXTENDED MIXED ...ON THE IMPLEMENTATION OF GOLDBERG'S MAXIMUM FLOW ALGORITHM IN EXTENDED MIXED ...
ON THE IMPLEMENTATION OF GOLDBERG'S MAXIMUM FLOW ALGORITHM IN EXTENDED MIXED ...
 
ON THE IMPLEMENTATION OF GOLDBERG'S MAXIMUM FLOW ALGORITHM IN EXTENDED MIXED ...
ON THE IMPLEMENTATION OF GOLDBERG'S MAXIMUM FLOW ALGORITHM IN EXTENDED MIXED ...ON THE IMPLEMENTATION OF GOLDBERG'S MAXIMUM FLOW ALGORITHM IN EXTENDED MIXED ...
ON THE IMPLEMENTATION OF GOLDBERG'S MAXIMUM FLOW ALGORITHM IN EXTENDED MIXED ...
 
Network flows
Network flowsNetwork flows
Network flows
 
MaximumFlow.ppt
MaximumFlow.pptMaximumFlow.ppt
MaximumFlow.ppt
 
maxflow.ppt
maxflow.pptmaxflow.ppt
maxflow.ppt
 
Implementing Map Reduce Based Edmonds-Karp Algorithm to Determine Maximum Flo...
Implementing Map Reduce Based Edmonds-Karp Algorithm to Determine Maximum Flo...Implementing Map Reduce Based Edmonds-Karp Algorithm to Determine Maximum Flo...
Implementing Map Reduce Based Edmonds-Karp Algorithm to Determine Maximum Flo...
 
Node Unique Label Cover
Node Unique Label CoverNode Unique Label Cover
Node Unique Label Cover
 
Sequential and parallel algorithm to find maximum flow on extended mixed netw...
Sequential and parallel algorithm to find maximum flow on extended mixed netw...Sequential and parallel algorithm to find maximum flow on extended mixed netw...
Sequential and parallel algorithm to find maximum flow on extended mixed netw...
 
SEQUENTIAL AND PARALLEL ALGORITHM TO FIND MAXIMUM FLOW ON EXTENDED MIXED NETW...
SEQUENTIAL AND PARALLEL ALGORITHM TO FIND MAXIMUM FLOW ON EXTENDED MIXED NETW...SEQUENTIAL AND PARALLEL ALGORITHM TO FIND MAXIMUM FLOW ON EXTENDED MIXED NETW...
SEQUENTIAL AND PARALLEL ALGORITHM TO FIND MAXIMUM FLOW ON EXTENDED MIXED NETW...
 
22 - Max Flow Porblem Ford Fulkerson Method.pdf
22 - Max Flow Porblem Ford Fulkerson Method.pdf22 - Max Flow Porblem Ford Fulkerson Method.pdf
22 - Max Flow Porblem Ford Fulkerson Method.pdf
 
Network problems 1 (1)
Network problems 1 (1)Network problems 1 (1)
Network problems 1 (1)
 
A simulation and analysis of ofdm system for 4 g communications
A simulation and analysis of ofdm system for 4 g communicationsA simulation and analysis of ofdm system for 4 g communications
A simulation and analysis of ofdm system for 4 g communications
 
Internet
InternetInternet
Internet
 
MDM-Chapter-9-Updated latest.pptx
MDM-Chapter-9-Updated latest.pptxMDM-Chapter-9-Updated latest.pptx
MDM-Chapter-9-Updated latest.pptx
 
RWCap ASCION2011
RWCap ASCION2011RWCap ASCION2011
RWCap ASCION2011
 
ECCV2008: MAP Estimation Algorithms in Computer Vision - Part 2
ECCV2008: MAP Estimation Algorithms in Computer Vision - Part 2ECCV2008: MAP Estimation Algorithms in Computer Vision - Part 2
ECCV2008: MAP Estimation Algorithms in Computer Vision - Part 2
 
PhD_Slides
PhD_SlidesPhD_Slides
PhD_Slides
 

Recently uploaded

THEMATIC APPERCEPTION TEST(TAT) cognitive abilities, creativity, and critic...
THEMATIC  APPERCEPTION  TEST(TAT) cognitive abilities, creativity, and critic...THEMATIC  APPERCEPTION  TEST(TAT) cognitive abilities, creativity, and critic...
THEMATIC APPERCEPTION TEST(TAT) cognitive abilities, creativity, and critic...
Abdul Wali Khan University Mardan,kP,Pakistan
 
在线办理(salfor毕业证书)索尔福德大学毕业证毕业完成信一模一样
在线办理(salfor毕业证书)索尔福德大学毕业证毕业完成信一模一样在线办理(salfor毕业证书)索尔福德大学毕业证毕业完成信一模一样
在线办理(salfor毕业证书)索尔福德大学毕业证毕业完成信一模一样
vluwdy49
 
Remote Sensing and Computational, Evolutionary, Supercomputing, and Intellige...
Remote Sensing and Computational, Evolutionary, Supercomputing, and Intellige...Remote Sensing and Computational, Evolutionary, Supercomputing, and Intellige...
Remote Sensing and Computational, Evolutionary, Supercomputing, and Intellige...
University of Maribor
 
Travis Hills' Endeavors in Minnesota: Fostering Environmental and Economic Pr...
Travis Hills' Endeavors in Minnesota: Fostering Environmental and Economic Pr...Travis Hills' Endeavors in Minnesota: Fostering Environmental and Economic Pr...
Travis Hills' Endeavors in Minnesota: Fostering Environmental and Economic Pr...
Travis Hills MN
 
20240520 Planning a Circuit Simulator in JavaScript.pptx
20240520 Planning a Circuit Simulator in JavaScript.pptx20240520 Planning a Circuit Simulator in JavaScript.pptx
20240520 Planning a Circuit Simulator in JavaScript.pptx
Sharon Liu
 
Randomised Optimisation Algorithms in DAPHNE
Randomised Optimisation Algorithms in DAPHNERandomised Optimisation Algorithms in DAPHNE
Randomised Optimisation Algorithms in DAPHNE
University of Maribor
 
Topic: SICKLE CELL DISEASE IN CHILDREN-3.pdf
Topic: SICKLE CELL DISEASE IN CHILDREN-3.pdfTopic: SICKLE CELL DISEASE IN CHILDREN-3.pdf
Topic: SICKLE CELL DISEASE IN CHILDREN-3.pdf
TinyAnderson
 
EWOCS-I: The catalog of X-ray sources in Westerlund 1 from the Extended Weste...
EWOCS-I: The catalog of X-ray sources in Westerlund 1 from the Extended Weste...EWOCS-I: The catalog of X-ray sources in Westerlund 1 from the Extended Weste...
EWOCS-I: The catalog of X-ray sources in Westerlund 1 from the Extended Weste...
Sérgio Sacani
 
Deep Software Variability and Frictionless Reproducibility
Deep Software Variability and Frictionless ReproducibilityDeep Software Variability and Frictionless Reproducibility
Deep Software Variability and Frictionless Reproducibility
University of Rennes, INSA Rennes, Inria/IRISA, CNRS
 
Basics of crystallography, crystal systems, classes and different forms
Basics of crystallography, crystal systems, classes and different formsBasics of crystallography, crystal systems, classes and different forms
Basics of crystallography, crystal systems, classes and different forms
MaheshaNanjegowda
 
Phenomics assisted breeding in crop improvement
Phenomics assisted breeding in crop improvementPhenomics assisted breeding in crop improvement
Phenomics assisted breeding in crop improvement
IshaGoswami9
 
NuGOweek 2024 Ghent programme overview flyer
NuGOweek 2024 Ghent programme overview flyerNuGOweek 2024 Ghent programme overview flyer
NuGOweek 2024 Ghent programme overview flyer
pablovgd
 
Shallowest Oil Discovery of Turkiye.pptx
Shallowest Oil Discovery of Turkiye.pptxShallowest Oil Discovery of Turkiye.pptx
Shallowest Oil Discovery of Turkiye.pptx
Gokturk Mehmet Dilci
 
aziz sancar nobel prize winner: from mardin to nobel
aziz sancar nobel prize winner: from mardin to nobelaziz sancar nobel prize winner: from mardin to nobel
aziz sancar nobel prize winner: from mardin to nobel
İsa Badur
 
bordetella pertussis.................................ppt
bordetella pertussis.................................pptbordetella pertussis.................................ppt
bordetella pertussis.................................ppt
kejapriya1
 
mô tả các thí nghiệm về đánh giá tác động dòng khí hóa sau đốt
mô tả các thí nghiệm về đánh giá tác động dòng khí hóa sau đốtmô tả các thí nghiệm về đánh giá tác động dòng khí hóa sau đốt
mô tả các thí nghiệm về đánh giá tác động dòng khí hóa sau đốt
HongcNguyn6
 
waterlessdyeingtechnolgyusing carbon dioxide chemicalspdf
waterlessdyeingtechnolgyusing carbon dioxide chemicalspdfwaterlessdyeingtechnolgyusing carbon dioxide chemicalspdf
waterlessdyeingtechnolgyusing carbon dioxide chemicalspdf
LengamoLAppostilic
 
Applied Science: Thermodynamics, Laws & Methodology.pdf
Applied Science: Thermodynamics, Laws & Methodology.pdfApplied Science: Thermodynamics, Laws & Methodology.pdf
Applied Science: Thermodynamics, Laws & Methodology.pdf
University of Hertfordshire
 
Unlocking the mysteries of reproduction: Exploring fecundity and gonadosomati...
Unlocking the mysteries of reproduction: Exploring fecundity and gonadosomati...Unlocking the mysteries of reproduction: Exploring fecundity and gonadosomati...
Unlocking the mysteries of reproduction: Exploring fecundity and gonadosomati...
AbdullaAlAsif1
 
Eukaryotic Transcription Presentation.pptx
Eukaryotic Transcription Presentation.pptxEukaryotic Transcription Presentation.pptx
Eukaryotic Transcription Presentation.pptx
RitabrataSarkar3
 

Recently uploaded (20)

THEMATIC APPERCEPTION TEST(TAT) cognitive abilities, creativity, and critic...
THEMATIC  APPERCEPTION  TEST(TAT) cognitive abilities, creativity, and critic...THEMATIC  APPERCEPTION  TEST(TAT) cognitive abilities, creativity, and critic...
THEMATIC APPERCEPTION TEST(TAT) cognitive abilities, creativity, and critic...
 
在线办理(salfor毕业证书)索尔福德大学毕业证毕业完成信一模一样
在线办理(salfor毕业证书)索尔福德大学毕业证毕业完成信一模一样在线办理(salfor毕业证书)索尔福德大学毕业证毕业完成信一模一样
在线办理(salfor毕业证书)索尔福德大学毕业证毕业完成信一模一样
 
Remote Sensing and Computational, Evolutionary, Supercomputing, and Intellige...
Remote Sensing and Computational, Evolutionary, Supercomputing, and Intellige...Remote Sensing and Computational, Evolutionary, Supercomputing, and Intellige...
Remote Sensing and Computational, Evolutionary, Supercomputing, and Intellige...
 
Travis Hills' Endeavors in Minnesota: Fostering Environmental and Economic Pr...
Travis Hills' Endeavors in Minnesota: Fostering Environmental and Economic Pr...Travis Hills' Endeavors in Minnesota: Fostering Environmental and Economic Pr...
Travis Hills' Endeavors in Minnesota: Fostering Environmental and Economic Pr...
 
20240520 Planning a Circuit Simulator in JavaScript.pptx
20240520 Planning a Circuit Simulator in JavaScript.pptx20240520 Planning a Circuit Simulator in JavaScript.pptx
20240520 Planning a Circuit Simulator in JavaScript.pptx
 
Randomised Optimisation Algorithms in DAPHNE
Randomised Optimisation Algorithms in DAPHNERandomised Optimisation Algorithms in DAPHNE
Randomised Optimisation Algorithms in DAPHNE
 
Topic: SICKLE CELL DISEASE IN CHILDREN-3.pdf
Topic: SICKLE CELL DISEASE IN CHILDREN-3.pdfTopic: SICKLE CELL DISEASE IN CHILDREN-3.pdf
Topic: SICKLE CELL DISEASE IN CHILDREN-3.pdf
 
EWOCS-I: The catalog of X-ray sources in Westerlund 1 from the Extended Weste...
EWOCS-I: The catalog of X-ray sources in Westerlund 1 from the Extended Weste...EWOCS-I: The catalog of X-ray sources in Westerlund 1 from the Extended Weste...
EWOCS-I: The catalog of X-ray sources in Westerlund 1 from the Extended Weste...
 
Deep Software Variability and Frictionless Reproducibility
Deep Software Variability and Frictionless ReproducibilityDeep Software Variability and Frictionless Reproducibility
Deep Software Variability and Frictionless Reproducibility
 
Basics of crystallography, crystal systems, classes and different forms
Basics of crystallography, crystal systems, classes and different formsBasics of crystallography, crystal systems, classes and different forms
Basics of crystallography, crystal systems, classes and different forms
 
Phenomics assisted breeding in crop improvement
Phenomics assisted breeding in crop improvementPhenomics assisted breeding in crop improvement
Phenomics assisted breeding in crop improvement
 
NuGOweek 2024 Ghent programme overview flyer
NuGOweek 2024 Ghent programme overview flyerNuGOweek 2024 Ghent programme overview flyer
NuGOweek 2024 Ghent programme overview flyer
 
Shallowest Oil Discovery of Turkiye.pptx
Shallowest Oil Discovery of Turkiye.pptxShallowest Oil Discovery of Turkiye.pptx
Shallowest Oil Discovery of Turkiye.pptx
 
aziz sancar nobel prize winner: from mardin to nobel
aziz sancar nobel prize winner: from mardin to nobelaziz sancar nobel prize winner: from mardin to nobel
aziz sancar nobel prize winner: from mardin to nobel
 
bordetella pertussis.................................ppt
bordetella pertussis.................................pptbordetella pertussis.................................ppt
bordetella pertussis.................................ppt
 
mô tả các thí nghiệm về đánh giá tác động dòng khí hóa sau đốt
mô tả các thí nghiệm về đánh giá tác động dòng khí hóa sau đốtmô tả các thí nghiệm về đánh giá tác động dòng khí hóa sau đốt
mô tả các thí nghiệm về đánh giá tác động dòng khí hóa sau đốt
 
waterlessdyeingtechnolgyusing carbon dioxide chemicalspdf
waterlessdyeingtechnolgyusing carbon dioxide chemicalspdfwaterlessdyeingtechnolgyusing carbon dioxide chemicalspdf
waterlessdyeingtechnolgyusing carbon dioxide chemicalspdf
 
Applied Science: Thermodynamics, Laws & Methodology.pdf
Applied Science: Thermodynamics, Laws & Methodology.pdfApplied Science: Thermodynamics, Laws & Methodology.pdf
Applied Science: Thermodynamics, Laws & Methodology.pdf
 
Unlocking the mysteries of reproduction: Exploring fecundity and gonadosomati...
Unlocking the mysteries of reproduction: Exploring fecundity and gonadosomati...Unlocking the mysteries of reproduction: Exploring fecundity and gonadosomati...
Unlocking the mysteries of reproduction: Exploring fecundity and gonadosomati...
 
Eukaryotic Transcription Presentation.pptx
Eukaryotic Transcription Presentation.pptxEukaryotic Transcription Presentation.pptx
Eukaryotic Transcription Presentation.pptx
 

Max Flow Problem

  • 1. Flow Network Max Flow Algorithm Fundamental Knowledge Artificial Intelligence Max Flow Problem G. Guérard Department of Nouvelles Energies Ecole Supérieure d’Ingénieurs Léonard de Vinci Lecture 4 GG | A.I. 1/15
  • 2. Flow Network Max Flow Algorithm Fundamental Knowledge OutlineOutlineOutlineOutlineOutlineOutlineOutlineOutlineOutlineOutlineOutlineOutlineOutlineOutlineOutlineOutlineOutline 1 Flow Network 2 Max Flow Algorithm GG | A.I. 2/15
  • 3. Flow Network Max Flow Algorithm Fundamental Knowledge ApplicationApplicationApplicationApplicationApplicationApplicationApplicationApplicationApplicationApplicationApplicationApplicationApplicationApplicationApplicationApplicationApplication Various problems can be reducted into MAX FLOW PROBLEM, for examples: NETWORK CONNECTIVITY: Edge-disjoint paths, Network reliability. MATCHING: Bipartite matching, Maximum matchings. VERTEX CAPACITIES: Data mining. SCHEDULING: Airline scheduling, Project selection. GRAPH CUTS: Image processing. ASSIGNEMENT: Baseball elimination, Distributed computing. GG | A.I. 3/15
  • 4. Flow Network Max Flow Algorithm Fundamental Knowledge Min cut problemMin cut problemMin cut problemMin cut problemMin cut problemMin cut problemMin cut problemMin cut problemMin cut problemMin cut problemMin cut problemMin cut problemMin cut problemMin cut problemMin cut problemMin cut problemMin cut problem Flow network Let G = (V , E) be a directed graph with two distingished nodes s, the source, and t, the sink. And a capacity c(e) for each edge e ∈ E. Min cut problem Delete a set of edges to disconnect t from s. Found a set to minimize the sum of edge’s capacity. A CUT is a node partition (S, T) such that s is in S and t is in T. MINIMIZE THE SUM OF WEIGHTS OF EDGES LEAVING S. GG | A.I. 4/15
  • 5. Flow Network Max Flow Algorithm Fundamental Knowledge Min cut problemMin cut problemMin cut problemMin cut problemMin cut problemMin cut problemMin cut problemMin cut problemMin cut problemMin cut problemMin cut problemMin cut problemMin cut problemMin cut problemMin cut problemMin cut problemMin cut problem GG | A.I. 5/15
  • 6. Flow Network Max Flow Algorithm Fundamental Knowledge FlowsFlowsFlowsFlowsFlowsFlowsFlowsFlowsFlowsFlowsFlowsFlowsFlowsFlowsFlowsFlowsFlows Flow A FLOW f is an assignment of weights to edges so that. The flow can’t go over the capacity of an edge. The flow entering in a vertex is equal to the flow leaving it. An s − t flow is a function that satisfies: for each e ∈ E, 0 ≤ f (e) ≤ c(e) (capacity); for each v ∈ V − {s, t}, ∑ e∈Γ+ f (e) = ∑ e∈Γ− f (e). Max flow Find s − t flow of maximum value v(f ). An simple and easy way to know the max flow is to sum flow out of s or to sum flow in to t: v(f ) = ∑ e∈Γ+(s) f (e). GG | A.I. 6/15
  • 7. Flow Network Max Flow Algorithm Fundamental Knowledge FlowsFlowsFlowsFlowsFlowsFlowsFlowsFlowsFlowsFlowsFlowsFlowsFlowsFlowsFlowsFlowsFlows Flow value Lemma Let f be any flow, and let (A, B) be any cut. Then, the net flow sent across the cut is equal to the amount leaving s:v(f ) = ∑ e∈Γ+(A) f (e) − ∑ e∈Γ−(A) f (e). GG | A.I. 7/15
  • 8. Flow Network Max Flow Algorithm Fundamental Knowledge Flows and cutsFlows and cutsFlows and cutsFlows and cutsFlows and cutsFlows and cutsFlows and cutsFlows and cutsFlows and cutsFlows and cutsFlows and cutsFlows and cutsFlows and cutsFlows and cutsFlows and cutsFlows and cutsFlows and cuts Weak duality Let f be any flow, and let (A, B) be any cut. Then the value of the flow is at most the capacity of the cut. GG | A.I. 8/15
  • 9. Flow Network Max Flow Algorithm Fundamental Knowledge Flows and cutsFlows and cutsFlows and cutsFlows and cutsFlows and cutsFlows and cutsFlows and cutsFlows and cutsFlows and cutsFlows and cutsFlows and cutsFlows and cutsFlows and cutsFlows and cutsFlows and cutsFlows and cutsFlows and cuts Corollary Let f be any flow, and let (A, B) be any cut. If v(f ) is equal to the capacity of the cut, then f is a max flow and (A, B) forms a min cut. GG | A.I. 9/15
  • 10. Flow Network Max Flow Algorithm Fundamental Knowledge Augmenting pathAugmenting pathAugmenting pathAugmenting pathAugmenting pathAugmenting pathAugmenting pathAugmenting pathAugmenting pathAugmenting pathAugmenting pathAugmenting pathAugmenting pathAugmenting pathAugmenting pathAugmenting pathAugmenting path Find a s − t path where each arc has f (e) < u(e) and augment flow along it by the minimum of u(e) − f (e). A naive algorithm consists to repeat this process until you get stuck. This method do not give an optimal value, we need to be able to backtrack. Residual graph Let e be an edge from v to w, u(e) its capacity and f (e) the flow passing by this edge. A residual graph G = (V , E ) represents each possible evolution of flows in the graph G = (V , E). To construct G all the arc that have strictly positive flow are duplicate, the new arc go from the end node to the start node, its capacity is equal to the flow. The previous has a capacity equal to u(e) − f (e). GG | A.I. 10/15
  • 11. Flow Network Max Flow Algorithm Fundamental Knowledge Augmenting pathAugmenting pathAugmenting pathAugmenting pathAugmenting pathAugmenting pathAugmenting pathAugmenting pathAugmenting pathAugmenting pathAugmenting pathAugmenting pathAugmenting pathAugmenting pathAugmenting pathAugmenting pathAugmenting path Augmenting path Find a s − t path in residual graph, it is called augmenting path. Once the path is selected, increase flow along forward edges, decrease flow along backward edges. GG | A.I. 11/15
  • 12. Flow Network Max Flow Algorithm Fundamental Knowledge AlgorithmAlgorithmAlgorithmAlgorithmAlgorithmAlgorithmAlgorithmAlgorithmAlgorithmAlgorithmAlgorithmAlgorithmAlgorithmAlgorithmAlgorithmAlgorithmAlgorithm FORD-FULKERSON’s algorithm is a generic (greedy) method for solving max flow. While there exists an augmenting path find augmenting path P compute bottleneck capacity of P augment flow along P Theorem A flow f is a max flow iff there are no augmenting paths. GG | A.I. 12/15
  • 13. Flow Network Max Flow Algorithm Fundamental Knowledge AlgorithmAlgorithmAlgorithmAlgorithmAlgorithmAlgorithmAlgorithmAlgorithmAlgorithmAlgorithmAlgorithmAlgorithmAlgorithmAlgorithmAlgorithmAlgorithmAlgorithm THOSE THREE SENTENCES ARE EQUIVALENT: f is a max flow. There is no augmenting path relative to f . There exists a cut whose capacity equals the value of f . SO, THE FOLLOWING PROBLEMS ARE EQUIVALENT: Find a max flow. Find a min cut. Use residual graph to find bottlenecks (backward edges without respecting forwward edges). Use residual graph to find a min cut (minimum value set of backward edges without respecting forward edges). GG | A.I. 13/15
  • 14. Flow Network Max Flow Algorithm Fundamental Knowledge Good Augmenting PathGood Augmenting PathGood Augmenting PathGood Augmenting PathGood Augmenting PathGood Augmenting PathGood Augmenting PathGood Augmenting PathGood Augmenting PathGood Augmenting PathGood Augmenting PathGood Augmenting PathGood Augmenting PathGood Augmenting PathGood Augmenting PathGood Augmenting PathGood Augmenting Path Use care when selecting augmenting paths. Design goal is to choose augmenting paths so that can find augmenting paths efficiently and in few iterations, not like: GG | A.I. 14/15
  • 15. Flow Network Max Flow Algorithm Fundamental Knowledge Fundamental knowledgeFundamental knowledgeFundamental knowledgeFundamental knowledgeFundamental knowledgeFundamental knowledgeFundamental knowledgeFundamental knowledgeFundamental knowledgeFundamental knowledgeFundamental knowledgeFundamental knowledgeFundamental knowledgeFundamental knowledgeFundamental knowledgeFundamental knowledgeFundamental knowledge YOU HAVE TO KNOW BEFORE THE TUTORIAL: 1 Flow definition and max flow problem. 2 Min-cut problem and weak duality. 3 Augmenting path definition. 4 Ford-Fulkerson’s algorithm. GG | A.I. 15/15