Maximum Flow Network
Maximum Flow Network
Submitted By:-
Contents:
Maximum Flow Network
Cuts and Flows
Residual Network
Augmenting Path
Ford-Fulkerson Method
Matching
Network Flows
Types of Networks
Internet
Telephone
Cell
Highways
Rail
Electrical Power
Water
Sewer
Gas
Network Flow
Instance:
A Network is a directed graph G
Edges represent pipes that carry flow
Each edge (u,v) has a maximum capacity c(u,v)
I.
II.
Typical example:
Here IEI>=IVI-1; E represents edges and V represents vertices.
3/3
3/3
0/2
s
2/3
Notation:
Flow/Capacity
2/2
1/4
2/2
t
2/3
Flow:
G=(V,E): a flow network with capacity function c.
f (e) f (e)
e.in.v
e.out .v
2/2
3/3
3/3
0/2
s
2/3
1/4
2/2
t
2/3
12/12
15/20
11/16
1/4
8/13
4/9
11/14
7/7
4/4
Residual Networks
The network given by the undirected arcs and
residual capacities is called residual network.
The residual capacity of an edge (u, v) in a network with a flow f is
given by:
Flow Network:
Residual Network:
Augmenting Paths
Augmenting path=path in the residual network
Given a flow network G=(V,E) and a flow f, an augmenting path P
is a simple path from s to t in residual network Gf .
An augmenting path is a directed path from the source to the sink in
the residual network such that every arc on this path has positive residual
capacity.
Flow Network:
Solution:
Original graph G=(V,E)
(a) Flow f (e)
(b)Arc e=(v, w) E
Flow
capacity
11/16
S
Residual Graph:
V1
Gf =(V, Ef)
=(W,V)
Residual Capacity
V1
11
Residual Capacity
Residual Network:
3
Augmenting Path
Ford-Fulkerson Method
Depends on two ideas1.
Residual networks
2.
Augmented path
Example:
Augmenting path
Flow Network
Original Network
Resulting Flow =4
Residual Network
19
CSE 3101
Flow Network
Resulting Flow =11
Residual Network
Flow Network
Residual Network
Flow Network
Resulting Flow =23
Residual Network
No augmenting path
Maxflow=23
BIPARTITE GRAPH
A Bipartite graph G(V,E) is a graph in which all vertices
People
Tasks
graph
L
MATCHING
A matching in a graph is a subset of edges in which no two
BIPARTITE MATCHING
MAXIMUM MATCHING
Advantages
Cost is low
Time is redeuced
Disadvantages
It is an unidirectional network
THANK YOU