Excess Scaling Approach Algorithm

Slides:



Advertisements
Similar presentations
Min Cost Flow: Polynomial Algorithms. Overview Recap: Min Cost Flow, Residual Network Potential and Reduced Cost Polynomial Algorithms Approach Capacity.
Advertisements

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.
15.082J & 6.855J & ESD.78J October 14, 2010 Maximum Flows 2.
Max Flows 2: The Excess Scaling Algorithm and Variants. James Orlin.
Chapter 6 Maximum Flow Problems Flows and Cuts Augmenting Path Algorithm.
Network Optimization Models: Maximum Flow Problems
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.
The Out of Kilter Algorithm in Introduction The out of kilter algorithm is an example of a primal-dual algorithm. It works on both the primal.
Chapter 7 Maximum Flows: Polynomial Algorithms
A New Approach to the Maximum-Flow Problem Andrew V. Goldberg, Robert E. Tarjan Presented by Andrew Guillory.
Network Optimization Models: Maximum Flow Problems In this handout: The problem statement Solving by linear programming Augmenting path algorithm.
1 Maximum flow: The preflow/push method of Goldberg and Tarjan (87)
A B C D The diagram below shows water flowing through a pipework system. The values on the edges are the capacities of water that they.
Lecture 8. Why do we need residual networks? Residual networks allow one to reverse flows if necessary. If we have taken a bad path then residual networks.
3/3/ Alperovich Alexander. Motivation  Find a maximal flow over a directed graph  Source and sink vertices are given 3/3/
A New Approach to the Maximum-Flow Problem Andrew V. Goldberg, Robert E. Tarjan Presented by Andrew Guillory.
Here is an example that involves what is called ‘back flow’ 0 A C B D S T Arrows have already been drawn initially.
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.
and 6.855J The Capacity Scaling Algorithm.
Advanced Algorithms Piyush Kumar (Lecture 5: Preflow Push) Welcome to COT5405.
15.082J and 6.855J and ESD.78J October 19, 2010 Max Flows 3 Preflow-Push Algorithms.
CS 4407, Algorithms University College Cork, Gregory M. Provan Network Optimization Models: Maximum Flow Problems In this handout: The problem statement.
The diagram below shows water flowing through a pipework system. The values on the edges are the capacities of water that they can carry.
and 6.855J The Goldberg-Tarjan Preflow Push Algorithm for the Maximum Flow Problem.
and 6.855J March 6, 2003 Maximum Flows 2. 2 Network Reliability u Communication Network u What is the maximum number of arc disjoint paths from.
1 EE5900 Advanced Embedded System For Smart Infrastructure Static Scheduling.
Outline Standard 2-way minimum graph cut problem. Applications to problems in computer vision Classical algorithms from the theory literature A new algorithm.
15.082J and 6.855J and ESD.78J October 21, 2010 Max Flows 4.
1 Maximum Flows CONTENTS Introduction to Maximum Flows (Section 6.1) Introduction to Minimum Cuts (Section 6.1) Applications of Maximum Flows (Section.
Preflow Push Algorithm M. Amber Hassaan. Preflow Push Algorithm2 Max Flow Problem Given a graph with “Source” and “Sink” nodes we want to compute:  The.
TU/e Algorithms (2IL15) – Lecture 8 1 MAXIMUM FLOW (part II)
Ford-Fulkerson Recap.
Cycle Canceling Algorithm
Algorithms and Networks Hans Bodlaender
EMIS 8374 Dijkstra’s Algorithm Updated 18 February 2008
Maximum flow: The preflow/push method of Goldberg and Tarjan (87)
Network Flows – Labelling procedure
Network Flows – Back flow
The Shortest Augmenting Path Algorithm for the Maximum Flow Problem
Introduction to Maximum Flows
3.4 Push-Relabel(Preflow-Push) Maximum Flow Alg.
(Push-relabel algorithms)
Not Always Feasible 2 (3,5) 1 s (0,2) 3 (, u) t.
Primal-Dual Algorithm
Complexity of Ford-Fulkerson
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.
Algorithms (2IL15) – Lecture 7
Successive Shortest Path Algorithm
EE5900 Advanced Embedded System For Smart Infrastructure
and 6.855J March 6, 2003 Maximum Flows 2
Network Flows – Restricted vertices
Min Global Cut Animation
Network Flows – Minimum capacities
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.
The Ford-Fulkerson Algorithm
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 The Goldberg-Tarjan Preflow Push Algorithm for the Maximum Flow Problem Obtain a network, and use the same network to illustrate the.
7. Preflow-Push Demo.
Maximum flow: The preflow/push method of Goldberg and Tarjan (87)
Piyush Kumar (Lecture 3: Preflow Push)
The Successive Shortest Path Algorithm
Not Always Feasible 2 (3,5) 1 s (0,2) 3 (, u) t.
Network Optimization Models: Maximum Flow Problems
Max Flows 3 Preflow-Push Algorithms
Maximum Flow Problems in 2005.
Class 11 Max Flows Obtain a network, and use the same network to illustrate the shortest path problem for communication networks, the max flow.
Vertex Covers and Matchings
EMIS 8374 Max-Flow in Undirected Networks Updated 18 March 2008
Presentation transcript:

Excess Scaling Approach Algorithm January 31,2008 Instructor Dr. Naveen Garg Scribe by : Anjali Agarwal(2007mcs2900) Nidhi Arora(2007mcs2913)

Excess Scaling Approach Need For Excess Scaling Approach: To reduce the time spent in non saturating pushes in the preflow - push algorithm covered before. Let, U = Maximum capacity edge in the network. (It can also be maximum capacity edge e originating from source as maximum flow along any path cannot be more than capacity of e) = the scaling parameter. It is chosen to be minimum value greater than U in the power of two. e(i) = Excess on node i. e(i) = jN xji - jN xij  0, for all i  N – {s, t}. level(i) = d(i) (ie distance label of node i)

Excess scaling approach algorithm Let U be the maximum capacity edge originating from the source. Let  be the minimum power of two, greater than U. Excess approach( ) begin push all the flow from the source s to its neighbour level(s)=n Do select a node j(except source and sink) with excess e(j) such that e(j)>=/2 level(j) is minimum (lowest level node with excess >=/2)

Algorithm continue 62 28 24 2 64  Check whether selected node has valid distance label if not relabel otherwise Push the flow from the selected node such that no node j has excess e(j) >  Until(No node left with excess >=/2) =/2 Until(No node left with excess except source and sink) 62  2 40 28 24 2 36 4 2 64 Fig:-residual graph with excess and residual capacity when 

Analysis of excess flow algorithm Number of relabelling steps: A node can be relabelled at most 2n-1 times. A node if has an excess then there is a path from node to the source. Distance label of the source is n. Therefore node can have highest distance label as 2n-1. Thus a node can be relabelled at most 2n-1 times (distance label never decreases). Since there are n nodes, Thus number of relabels can be at most O(n2).

Analysis continued:- Relabeling time: To relabel node j, one needs to scan each arc of A(j). So, each arc gets scanned at most 2n times. Total relabel time is O(nm). Saturating push time: Saturating push is the flow send along any edge which is equal to the residual capacity of that edge. To push the flow again from this edge the end nodes need to relabeled As a node can be relabeled at most 2n times and number of edges are m, therefore time taken for saturating pushes is O(nm).

Saturating push decreases the potential which is negligible. Analysis continued:- Time taken for non saturating pushes:- Let potential function be ɸ=∑((e(j).d(j))/) Now,relabeling increases the potential by at most 1 and at by least ½. d(j) increases by one(because of relabellings). <=e(j)<=. therefore, 1/2<=(e(j)/)<=1. Number of relabels n2 Total increase in potential due to relabel O(n2). Potential always decreases after a flow . Saturating push decreases the potential which is negligible. Let non saturating push be x Non saturating pushes decrease potential by at least ½. Push is done only when excess >= /2. so, at least /2 excess is increased at the lower level and /2 is decreased at this(node) level. Potential decrease due to non-saturating pushes is at least x/2.

Analysis continued:- The total time taken by excess scaling algorithm :- time taken for relabel O(nm) time taken by saturating pushes O(nm) time taken by non – saturating pushes O(n2log U) total time taken O(nm + n2log U) Initial potential : 2n2. final potential : zero. Therefore, -x/2+2n2+c*n2=0 x=c1*n2 Time taken by non – saturating pushes in a phase is O(n2) Number of phases log U. Time taken due to non saturating pushes are O(n2log U).