Dynamic Flows Dynamic Transshipment & Evolving Graphs 2/28/2012 TCS Group Seminar 1.

Slides:



Advertisements
Similar presentations
Maximum flow Main goals of the lecture:
Advertisements

Min Cost Flow: Polynomial Algorithms. Overview Recap: Min Cost Flow, Residual Network Potential and Reduced Cost Polynomial Algorithms Approach Capacity.
Max Flow Problem Given network N=(V,A), two nodes s,t of V, and capacities on the arcs: uij is the capacity on arc (i,j). Find non-negative flow fij for.
1 EE5900 Advanced Embedded System For Smart Infrastructure Static Scheduling.
1 Maximum flow sender receiver Capacity constraint Lecture 6: Jan 25.
3/17/2003Tucker, Applied Combinatorics Section 4.2a 1 Network Flows Michael Duquette & Whitney Sherman Tucker, Applied Combinatorics, Section 4.2a, Group.
Chapter 6 Maximum Flow Problems Flows and Cuts Augmenting Path Algorithm.
MS&E 211 Minimum Cost Flow LP Ashish Goel. Minimum Cost Flow (MCF) Need to ship some good from “supply” nodes to “demand” nodes over a network – Example:
MAX FLOW APPLICATIONS CS302, Spring 2013 David Kauchak.
Introduction To Algorithms CS 445 Discussion Session 8 Instructor: Dr Alon Efrat TA : Pooja Vaswani 04/04/2005.
Network Optimization Models: Maximum Flow Problems
CSE 326: Data Structures Network Flow and APSP Ben Lerner Summer 2007.
The Maximum Network Flow Problem. CSE Network Flows.
Chapter 10: Iterative Improvement The Maximum Flow Problem The Design and Analysis of Algorithms.
Advanced Algorithm Design and Analysis (Lecture 8) SW5 fall 2004 Simonas Šaltenis E1-215b
4/5/05Tucker, Sec Applied Combinatorics, 4rth Ed. Alan Tucker Section 4.3 Graph Models Prepared by Jo Ellis-Monaghan.
Lectures on Network Flows
1 Maximum Flow Networks Suppose G = (V, E) is a directed network. Each edge (i,j) in E has an associated ‘capacity’ u ij. Goal: Determine the maximum amount.
Chapter 7 Maximum Flows: Polynomial Algorithms
CSE 421 Algorithms Richard Anderson Lecture 22 Network Flow.
A New Approach to the Maximum-Flow Problem Andrew V. Goldberg, Robert E. Tarjan Presented by Andrew Guillory.
CSE 589 Part III The computer is useless It can only answer questions. -- Pablo Picasso.
Network Optimization Models: Maximum Flow Problems In this handout: The problem statement Solving by linear programming Augmenting path algorithm.
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.
Maximum flow Algorithms and Networks. A&N: Maximum flow2 Today Maximum flow problem Variants Applications Briefly: Ford-Fulkerson; min cut max flow theorem.
Graph-Cut Algorithm with Application to Computer Vision Presented by Yongsub Lim Applied Algorithm Laboratory.
A New Approach to the Maximum-Flow Problem Andrew V. Goldberg, Robert E. Tarjan Presented by Andrew Guillory.
UMass Lowell Computer Science Analysis of Algorithms Prof. Karen Daniels Fall, 2004 Lecture 5 Wednesday, 10/6/04 Graph Algorithms: Part 2.
CSE 421 Algorithms Richard Anderson Lecture 22 Network Flow.
NetworkModel-1 Network Optimization Models. NetworkModel-2 Network Terminology A network consists of a set of nodes and arcs. The arcs may have some flow.
MAX FLOW CS302, Spring 2013 David Kauchak. Admin.
CS774. Markov Random Field : Theory and Application Lecture 13 Kyomin Jung KAIST Oct
Network Flow How to solve maximal flow and minimal cut problems.
Announcements Network Flow today, depending on how far we get, we will do String Matching on Wednesday Then Review for Final next Monday This week’s lab.
Single Source Shortest-Path: The General Case (with negative edges) Bellman-Ford algorithm. Iteratively relax all edges |V|-1 times Running time? O(VE).
Maximum Flow Algorithms —— ACM 黄宇翔. 目录 Max-flow min-cut theorem 12 Augmenting path algorithms 3 Push-relabel maximum flow algorithm.
CS 4407, Algorithms University College Cork, Gregory M. Provan Network Optimization Models: Maximum Flow Problems In this handout: The problem statement.
MAX FLOW APPLICATIONS CS302, Spring 2012 David Kauchak.
Flows in Planar Graphs Hadi Mahzarnia. Outline O Introduction O Planar single commodity flow O Multicommodity flows for C 1 O Feasibility O Algorithm.
Max Flow – Min Cut Problem. Directed Graph Applications Shortest Path Problem (Shortest path from one point to another) Max Flow problems (Maximum material.
1 Network Models Transportation Problem (TP) Distributing any commodity from any group of supply centers, called sources, to any group of receiving.
1 WEEK 11 Graphs III Network Flow Problems A Simple Maximum-Flow Algorithm Izmir University of Economics.
Maximum Flow Problem (Thanks to Jim Orlin & MIT OCW)
CS223 Advanced Data Structures and Algorithms 1 Maximum Flow Neil Tang 3/30/2010.
15.082J and 6.855J March 4, 2003 Introduction to Maximum Flows.
1 EE5900 Advanced Embedded System For Smart Infrastructure Static Scheduling.
Data Structures & Algorithms Network Flow Richard Newman based on book by R. Sedgewick.
CSE 421 Algorithms Richard Anderson Lecture 22 Network Flow.
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)
Maximum Flow - Anil Kishore Graph Theory Basics. Prerequisites What is a Graph Directed, Weighted graphs How to traverse a graph using – Depth First Search.
1 Maximum Flows CONTENTS Introduction to Maximum Flows (Section 6.1) Introduction to Minimum Cuts (Section 6.1) Applications of Maximum Flows (Section.
The Maximum Network Flow Problem
TU/e Algorithms (2IL15) – Lecture 8 1 MAXIMUM FLOW (part II)
The Maximum Network Flow Problem
Maximum Flow c v 3/3 4/6 1/1 4/7 t s 3/3 w 1/9 3/5 1/1 3/5 u z 2/2
Lectures on Network Flows
Algorithms and Networks Hans Bodlaender
Maximum Flow Solutions
Instructor: Shengyu Zhang
Maximum Flow c v 3/3 4/6 1/1 4/7 t s 3/3 w 1/9 3/5 1/1 3/5 u z 2/2
3.4 Push-Relabel(Preflow-Push) Maximum Flow Alg.
Richard Anderson Lecture 21 Network Flow
Flow Networks and Bipartite Matching
Primal-Dual Algorithm
Algorithms (2IL15) – Lecture 7
EE5900 Advanced Embedded System For Smart Infrastructure
Maximum Flow c v 3/3 4/6 1/1 4/7 t s 3/3 w 1/9 3/5 1/1 3/5 u z 2/2
Lecture 21 Network Flow, Part 1
Richard Anderson Lecture 22 Network Flow
Max Flows 3 Preflow-Push Algorithms
Presentation transcript:

Dynamic Flows Dynamic Transshipment & Evolving Graphs 2/28/2012 TCS Group Seminar 1

Seminar outline Earliest Arrival Flows reminder & example evacuation problems Dynamic Transshipment & Evolving GraphsLexicographically Maximal FlowsPush-Relabel framework 2/28/2012TCS Group Seminar 2

Earliest Arrival Flows Example 2/28/2012TCS Group Seminar 3 S+ABS-

Earliest Arrival Flows Time-expanded Graph ▫(Ford-Fulkerson ’58) 2/28/2012TCS Group Seminar 4 S+ABS- t=1 t=2 t=3 t=4 t=5 t=7 t=0 t=6

Earliest Arrival Flows 1.Compute distance labels in residual graph 1.it defines a cut 2.no augmenting path can arrive before 2/28/2012TCS Group Seminar 5 S+ABS- t=1 t=2 t=3 t=4 t=5 t=7 t=0 t=6 S+ABS- 0123

Earliest Arrival Flows 1.Compute distance labels in residual graph 2.Add shortest path 3.Repeat 2/28/2012TCS Group Seminar 6 S+ABS- t=1 t=2 t=3 t=4 t=5 t=7 t=0 t=6 S+ABS

Earliest Arrival Flows 1.Compute distance labels in residual graph 2.Add shortest path 3.Repeat 2/28/2012TCS Group Seminar 7 S+ABS- t=1 t=2 t=3 t=4 t=5 t=7 t=0 t=6 S+ABS- 0347

Earliest Arrival Flows Several sources: evacuation problem See: works from Skutella, Minieka, and students. Maybe interesting for extracting maximum information from a short-lived WSN ▫battlezone ▫vulcano, nuclear reactor... 2/28/2012TCS Group Seminar 8

Seminar outline Earliest Arrival FlowsDynamic Transshipment & Evolving Graphs definitions equivalence submodularity Lexicographically Maximal FlowsPush-Relabel framework 2/28/2012TCS Group Seminar 9

Dynamic transshipment Several sources with a fixed supply Several sinks with a fixed demand 2/28/2012TCS Group Seminar 10 S2 ABS-S1

Evolving graph Edges have a schedule [t1;t2], [t3,t4],... 2/28/2012TCS Group Seminar 11 S+ABS-

Dynamic transshipment = Flow in evolving graph 2/28/2012TCS Group Seminar 12 S2 ABS-S1 [-2;0] [-3;0] S

Flow in evolving graph = dynamic transshipment 2/28/2012TCS Group Seminar 13 [t1;t2] similar to capacitated max flow = uncapacitated transshipment in static graphs. demand: t2-t1 delay: T-t2 supply: t2-t1 delay: t1

Submodularity The dual of the dynamic transshipment problem is to find a subset of sources/sinks and a minimum cut in the time-expanded graph between those subsets. ▫(solve a min-cost flow for each sources/sinks subset) The min-cut function is submodular on sources/sinks subsets. 2/28/2012TCS Group Seminar 14

Submodularity Minimizing a submodular function can be done with a variant of the Ellipsoid method ▫convex function on convex sets ▫P, but not practical Test feasibility of dynamic transshipment with a submodular oracle (Hoppe&Tardos ’95) 2/28/2012TCS Group Seminar 15

Seminar outline Earliest Arrival FlowsDynamic Transshipment & Evolving GraphsLexicographically Maximal Flows definition algorithm building a solution Push-Relabel framework 2/28/2012TCS Group Seminar 16

Lexicographically Maximal Flows Given a sequence of sources/sinks ▫(a,b,c,d,e...) A lexicographically maximal flow maximizes the amount of flow ▫from a to (b,c,d,e...) ▫from (a,b) to (c,d,e...) ▫from (a,b,c) to (d,e...) ▫etc. It exists and is easily computable (Megiddo ’74) 2/28/2012TCS Group Seminar 17

Lexicographically maximal dynamic flows 1.Put distance labels at 0 for sources and at T for sinks 2.Compute min-cost flow (= max dynamic flow) from {a,b,...,x,y} to {z} 3.Compute min-cost augmenting flow from {a,b,...,x} to {y,z} Compute min-cost augmenting flow from {a} to {b,...,x,y,z} 2/28/2012TCS Group Seminar 18

Lexicographically maximal dynamic flows At each step, the subset of sources decreases ▫distance labels can only increase ▫augmenting flows yield a valid dynamic solution The labels at a given step indicate a minimum cut for the current subset of sources ▫the final solution saturates that cut ▫the actual proof is rather technical (see Hoppe&Tardos ’00) 2/28/2012TCS Group Seminar 19

Solution with submodular oracle Do a complex dichotomic search with the help of the oracle in order to 1.restrict the capacities of edges that exit the sources/enter the sinks 2.order the sources and sinks The obtained lexicographically maximal dynamic flow answers the dynamic transshipment problem 2/28/2012TCS Group Seminar 20

Seminar outline Earliest Arrival FlowsDynamic Transshipment & Evolving GraphsLexicographically Maximal FlowsPush-relabel framework similarities & problems fractional solution integral solution 2/28/2012TCS Group Seminar 21

Push-relabel similarities & problems A lexicographically maximal flow is actually a giant saturating push with labels ▫a:26, b:25, c:24, d:23,...., z:1 Idea: dynamic push-relabel algorithm Difficulties: ▫non-saturating pushes ▫several vertices at the same level 2/28/2012TCS Group Seminar 22

Push-relabel similarities & problems Non-saturating push problem ▫Having a minimum cost flow (= maximum dynamic flow) is vital for coherent distance labels and coherent solution Same level problem: ▫pushing from a vertex may send flow to other vertices at same level a,b,{c,d,e},f 2/28/2012TCS Group Seminar 23

Push-relabel framework All sources & sinks start at potential 0. The algorithm maintains a lexicographically maximal dynamic flow from potential 26 down to potential 0 When a node has excess flow, increase its potential by 1 and ▫recompute the lex-max dynamic flow ▫(1 min-cost flow computation) ▫= saturating push What if it’s too much ??? 2/28/2012TCS Group Seminar 24

Fractional push-relabel Fractional push ▫a node is at potential P in 0.72 of the solution and at potential P+1 in 0.28 of the solution When a node has excess flow, try to increase its potential to a full number. ▫if it still has excess flow, fine. ▫if it has a deficit, make a linear combination of (full push/no action) to have zero excess Nodes on a same level: ▫find a linear combination for all nodes (doable) 2/28/2012TCS Group Seminar 25

Fractional push-relabel Min-cost flow corresponding to potential P/P+1 is not affected by fractions of other potentials ▫(a,{a,b(0.27)},{a,b,c(0.3),d(0.5)},{a,b,c,d,e}) At a given level, try to push all potentials to full number: ▫(a,{a,b(0.27)},{a,b,c,d},{a,b,c,d,e}) ▫effect is c:+4 unit, d -1 unit, e-3 units ▫select a fraction so that c and d are non negative, and c or d is at zero ▫push the other node alone. 2/28/2012TCS Group Seminar 26

Staggered push-relabel Natural approach for integral solutions: ▫dichotomic search on source/sink capacities (i.e. size of the hose) A node has full capacity at potential P, and partial capacity at potential P+1: ▫(a, {a,b},{a,b,c(partial)},{a,b,c,d}) Problem with multiple nodes at same level: ▫multiple dichotomic search is actually exponential. 2/28/2012TCS Group Seminar 27

Staggered push-relabel Assign unique potentials to each node: ▫a: 0, 52, 104, ▫b: 0,1, 51, 53, 103, ▫c: 0, 2, 50, 54, 102, Maximum number of pushes unchanged ▫(still 26 per node) Saturating push: increase node level. Non-saturating push: increase node capacity on top level 2/28/2012TCS Group Seminar 28

Conclusion It is possible to augment/modify a dynamic flow under the condition of strictly increasing distance labels. A lex-max dynamic flow is actually a configuration in a push/relabel scheme. Non-saturating push can be done while maintaining feasibility by: 1.using fractional solutions 2.using unique potentials and restricted capacities 2/28/2012TCS Group Seminar 29