Project Selection Bin Li 10/29/2008.

Slides:



Advertisements
Similar presentations
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.
Advertisements

EMIS 8374 Vertex Connectivity Updated 20 March 2008.
MAXIMUM FLOW Max-Flow Min-Cut Theorem (Ford Fukerson’s Algorithm)
1 Augmenting Path Algorithm s t G: Flow value = 0 0 flow capacity.
CSE 421 Algorithms Richard Anderson Lecture 22 Network Flow.
1 Augmenting Path Algorithm s t G: Flow value = 0 0 flow capacity.
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.
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.
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.
Introduction to Operations Research
9/23/2015ACM-ICPC1 Maximum Flow Problem Source t fg e 42 Target (sink) flow capacity b s c a de 2/3/ actual flow 1/2/ 1/ 2/ 1.Actual flow  capacity.
Lecture 16 Maximum Matching. Incremental Method Transform from a feasible solution to another feasible solution to increase (or decrease) the value of.
Applications of the Max-Flow Min-Cut Theorem. S-T Cuts SF D H C A NY S = {SF, D, H}, T={C,A,NY} [S,T] = {(D,A),(D,C),(H,A)}, Cap [S,T] =
Maximization of Network Survivability against Intelligent and Malicious Attacks (Cont’d) Presented by Erion Lin.
1 CPSC 320: Intermediate Algorithm Design and Analysis July 11, 2014.
Maximum Flow Algorithms —— ACM 黄宇翔. 目录 Max-flow min-cut theorem 12 Augmenting path algorithms 3 Push-relabel maximum flow algorithm.
Max Flow – Min Cut Problem. Directed Graph Applications Shortest Path Problem (Shortest path from one point to another) Max Flow problems (Maximum material.
Maximum Flow Problem (Thanks to Jim Orlin & MIT OCW)
The Ford-Fulkerson Augmenting Path Algorithm for the Maximum Flow Problem Thanks to Jim Orlin & MIT OCW.
15.082J and 6.855J March 4, 2003 Introduction to Maximum Flows.
CSCI-256 Data Structures & Algorithm Analysis Lecture Note: Some slides by Kevin Wayne. Copyright © 2005 Pearson-Addison Wesley. All rights reserved. 25.
1 EE5900 Advanced Embedded System For Smart Infrastructure Static Scheduling.
CSE 421 Algorithms Richard Anderson Lecture 22 Network Flow.
EMIS 8374 The Ford-Fulkerson Algorithm (aka the labeling algorithm) Updated 4 March 2008.
CSE 421 Algorithms Richard Anderson Lecture 21 Shortest Paths and Network Flow.
CS 312: Algorithm Design & Analysis Lecture #29: Network Flow and Cuts This work is licensed under a Creative Commons Attribution-Share Alike 3.0 Unported.
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)
TU/e Algorithms (2IL15) – Lecture 8 1 MAXIMUM FLOW (part II)
Network Flow What is a network? Flow network and flows
Maximum Flow Chapter 26.
Max-flow, Min-cut Network flow.
Maximum Flow Chapter 26.
Lectures on Network Flows
Richard Anderson Lecture 23 Network Flow
Lecture 22 Network Flow, Part 2
CSCI 3160 Design and Analysis of Algorithms Tutorial 8
Max Flow min Cut.
Chapter 5. Optimal Matchings
Maximum Flow Solutions
Max-flow, Min-cut Network flow.
Maximum Flow Problem flow capacity Actual flow  capacity
Lecture 16 Maximum Matching
Network Flow 2016/04/12.
Instructor: Shengyu Zhang
Edmonds-Karp Algorithm
Network Flow and Connectivity in Wireless Sensor Networks
3.4 Push-Relabel(Preflow-Push) Maximum Flow Alg.
Flow Networks Topics Flow Networks Residual networks
Richard Anderson Lecture 23 Network Flow
Richard Anderson Lecture 23 Network Flow
Richard Anderson Lecture 21 Network Flow
Problem Solving 4.
Max Flow Application: Precedence Relations
Max Flow Min Cut, Bipartite Matching Yin Tat Lee
Augmenting Path Algorithm
Flow Networks General Characteristics Applications
Flow Networks and Bipartite Matching
Algorithms (2IL15) – Lecture 7
EE5900 Advanced Embedded System For Smart Infrastructure
Max Flow / Min Cut.
Lecture 21 Network Flow, Part 1
Augmenting Path Algorithm
Richard Anderson Lecture 22 Network Flow
Lecture 21 Network Flow, Part 1
Lecture 22 Network Flow, Part 2
Richard Anderson Lecture 22 Network Flow
Maximum Flow Problems in 2005.
Vertex Covers and Matchings
EMIS The Maximum Flow Problem: Flows and Cuts Updated 6 March 2008
Presentation transcript:

Project Selection Bin Li 10/29/2008

Contents Background Problem Formulation Algorithm Design

Background The telecommunication company is assessing the pros and cons of a project to offer some new type high-speed access service to residential customers. The revenue from the high-speed access service might not be enough to updating the routers; however, once the company has updated the routers, they’ll earn more money. These projects often interact each other. The question is: which projects should be pursued, and which should be passed up?

Problem Formulation(1) n projects 1,2,…,n Dependencies between projects Project i depends on project j implies project i cannot be done unless project j is done. Each project i has a cost/profit pi pi>0 implies project i generates pi profit pi<0 implies project i requires a cost pi

Problem Formulation (2) Constrains: For a set A of projects A is a valid solution if A is dependency closed, that is for every , all projects that project i depends on are also in A. Our goal Find valid A to maximize profit(A)

Algorithm Design Max-flow Min-cut theorem If f is a flow in a flow network G=(V,E) with source s and sink t, then the following conditions are equivalent: f is a maximum flow in G The residual network Gf contains no augmenting paths. |f|=c (S, T) for some cut (S, T) of G.

Algorithm Design(2) Build a flow network Projects represented as nodes in a graph If project i depends on project j, then (i, j) is an edge Add source s and sink t For each project i with pi>0, add edge (s, i) with capacity pi For each project i with pi<0, add edge (i, t) with capacity –pi For each dependency edge (i, j), we put capacity ∞ We can see that the capacity of the cut({s},PU{t}) is , so the maximum-flow value in this flow network is at most C.

Algorithm Design(3) Example There are four project{1,2,3,4},where p1>0,p2>0,p3<0,p4<0 project 1 is dependent on project 4 Project 2 is dependent on project 3

Algorithm Design(4) Lemma 1 Proof Suppose (A’, B’) is a an s-t cut of finite capacity (no ∞) edges. Then projects in A=A’-{s} are a valid solution. Proof If A=A’-{s} is not a valid solution then there is a project and a project such that i depends on j. Since (i, j) capacity is ∞, implies the cut(A’,B’) capacity is ∞, contradicting assumption.

Algorithm Design(5) Lemma 2 Proof The capacity of the cut (A’,B’), where A’=AU{s} and A is a valid solution, is Proof Edge in the flow network: The edges Leaving the source: The edges Entering the sink: Other edges: contribute Zero

Algorithm Design(6)

Algorithm Design(7) We have shown that if (A’,B’) is an s-t cut in G with finite capacity then A=A’-{s} is a valid set of projects Therefore a minimum s-t cut(A*,B*) gives a maximum set of projects A*-{s} since C is fixed.

Thank you for your attention! Questions?