7. Dinic Algorithm 5/15/2019 Copyright 2000, Kevin Wayne.

Slides:



Advertisements
Similar presentations
and 6.855J Cycle Canceling Algorithm. 2 A minimum cost flow problem , $4 20, $1 20, $2 25, $2 25, $5 20, $6 30, $
Advertisements

Max Flow Min Cut. Theorem The maximum value of an st-flow in a digraph equals the minimum capacity of an st-cut. Theorem If every arc has integer capacity,
CSCI 256 Data Structures and Algorithm Analysis Lecture 18 Some slides by Kevin Wayne copyright 2005, Pearson Addison Wesley all rights reserved, and some.
1 Augmenting Path Algorithm s t G: Flow value = 0 0 flow capacity.
1 Chapter 7 Network Flow Slides by Kevin Wayne. Copyright © 2005 Pearson-Addison Wesley. All rights reserved.
Nick McKeown Spring 2012 Maximum Matching Algorithms EE384x Packet Switch Architectures.
CSE 421 Algorithms Richard Anderson Lecture 22 Network Flow.
1 Augmenting Path Algorithm s t G: Flow value = 0 0 flow capacity.
3 t s the black numbers next to an arc is its capacity.
A network is shown, with a flow f. v u 6,2 2,2 4,1 5,3 2,1 3,2 5,1 4,1 3,3 Is f a maximum flow? (a) Yes (b) No (c) I have absolutely no idea a b c d.
1 Efficient implementation of Dinic’s algorithm for maximum flow.
7. Preflow-Push Demo. 2 Preflow-Push Algorithm s 2 1 t 10 2 G: 5 3 s 2 1 t G f :
Algorithm Design by Éva Tardos and Jon Kleinberg Copyright © 2005 Addison Wesley Slides by Kevin Wayne 7. Edmonds-karp Demo.
Network Flow. Network flow formulation A network G = (V, E). Capacity c(u, v)  0 for edge (u, v). Assume c(u, v) = 0 if (u, v)  E. Source s and sink.
Maximum Flow Algorithms —— ACM 黄宇翔. 目录 Max-flow min-cut theorem 12 Augmenting path algorithms 3 Push-relabel maximum flow algorithm.
& 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.
CSCI-256 Data Structures & Algorithm Analysis Lecture Note: Some slides by Kevin Wayne. Copyright © 2005 Pearson-Addison Wesley. All rights reserved. 25.
CSCI 256 Data Structures and Algorithm Analysis Lecture 20 Some slides by Kevin Wayne copyright 2005, Pearson Addison Wesley all rights reserved, and some.
CSCI-256 Data Structures & Algorithm Analysis Lecture Note: Some slides by Kevin Wayne. Copyright © 2005 Pearson-Addison Wesley. All rights reserved. 23.
Markov Random Fields in Vision
ENGM 631 Maximum Flow Solutions. Maximum Flow Models (Flow, Capacity) (0,3) (2,2) (5,7) (0,8) (3,6) (6,8) (3,3) (4,4) (4,10)
Cycle Canceling Algorithm
Network Flow.
Max-flow, Min-cut Network flow.
Network flow problem [Adapted from M.Chandy].
Lecture 22 Network Flow, Part 2
Network Flow.
Copyrights apply.
Maximum Flow Solutions
Max-flow, Min-cut Network flow.
Network Flow 2016/04/12.
Edmonds-Karp Algorithm
Efficient implementation of Dinic’s algorithm for maximum flow
The Shortest Augmenting Path Algorithm for the Maximum Flow Problem
Chapter 7 Network Flow Slides by Kevin Wayne. Copyright © 2005 Pearson-Addison Wesley. All rights reserved.
Network Flow and Connectivity in Wireless Sensor Networks
7. Ford-Fulkerson Demo.
7. Ford-Fulkerson Demo.
Network Flow-based Bipartitioning
Richard Anderson Lecture 21 Network Flow
Augmenting Path Algorithm
Flow Networks and Bipartite Matching
Complexity of Ford-Fulkerson
Project Selection Bin Li 10/29/2008.
Chapter 7 Network Flow Slides by Kevin Wayne. Copyright © 2005 Pearson-Addison Wesley. All rights reserved.
Network Flow CSE 373 Data Structures.
Network Flow.
7. Ford-Fulkerson Demo.
7. Ford-Fulkerson Algorithm with multiple optimal solutions
The Shortest Augmenting Path Algorithm for the Maximum Flow Problem
The Shortest Augmenting Path Algorithm for the Maximum Flow Problem
MAXIMUM flow by Eric Wengert.
Augmenting Path Algorithm
Introduction to Maximum Flows
7. Preflow-Push Demo.
7. Edmonds-Karp Algorithm
7. Edmonds-karp Demo.
7. Ford-Fulkerson Demo.
7. Ford-Fulkerson Demo.
7. Ford-Fulkerson Demo.
7. Ford-Fulkerson Demo.
Lecture 22 Network Flow, Part 2
Introduction to Maximum Flows
Network Flow.
7. Ford-Fulkerson Demo.
An Information Flow Model for Conflict and Fission in Small Groups
7. Ford-Fulkerson Demo.
7. Ford-Fulkerson Demo 02/25/19 Copyright 2000, Kevin Wayne.
The Residual Network Given a flow x, the residual capacity rij of arc (i, j) is the maximum additional flow that can be sent from i to j using arcs (i,
Presentation transcript:

7. Dinic Algorithm 5/15/2019 Copyright 2000, Kevin Wayne

Max-Flow instance G: flow capacity Flow value = 0 2 4 s 3 5 t 5/15/2019 Max-Flow instance flow 2 4 4 capacity G: 10 8 6 2 10 s 10 3 9 5 10 t Flow value = 0 Copyright 2000, Kevin Wayne 2

Dinic Algorithm G: Gf: GL: Flow value = 0 flow capacity 5/15/2019 Dinic Algorithm Flow value = 0 flow 2 4 4 capacity G: 10 8 6 2 10 s 10 3 9 5 10 t 2 4 4 residual capacity Gf: 10 8 6 2 10 s 10 3 9 5 10 t 2 4 4 5 4 GL: 1 4 X 10 8 10 1 s 10 3 9 5 10 t 9 9 9 X 10 Copyright 2000, Kevin Wayne 3

Dinic Algorithm G: Gf: GL: Flow value = 14 X X X X X X X 5 5 5 5 5 5 5 5/15/2019 Dinic Algorithm Flow value = 14 X 4 2 4 4 G: X X 4 5 X 1 10 8 6 2 10 9 9 10 X X X s 10 3 9 5 10 t 2 4 4 Gf: 4 5 1 5 7 6 2 6 s 1 3 9 5 10 t 9 2 4 GL: 5 5 5 5 7 6 6 5 s 1 3 5 t Copyright 2000, Kevin Wayne 4

Dinic Algorithm G: Gf: GL: Flow value = 19 X X 5 1 X 4 X X X X X 10 2 5/15/2019 Dinic Algorithm Flow value = 19 X 4 2 4 4 G: X 9 10 5 1 X 6 4 X 10 8 6 X 2 10 5 9 10 X 9 X X s 10 3 9 5 10 t 2 4 4 Gf: 9 6 10 2 1 2 1 5 s 1 3 9 5 10 t 9 2 4 GL: 2 1 1 s 1 3 5 t Copyright 2000, Kevin Wayne 5

Dinic Algorithm G: Gf: X X 5 4 X 1 X X X X X Cut capacity = 19 5/15/2019 Dinic Algorithm X 4 2 4 4 G: X 5 4 X 9 10 1 X 6 8 6 X 10 2 10 5 9 9 10 X X X s 10 3 9 5 10 t Cut capacity = 19 Flow value = 19 2 4 4 Gf: 9 6 10 2 1 2 1 5 s 1 3 9 5 10 t 9 Copyright 2000, Kevin Wayne 6