CS Lunch This Week. Special Talk This Week. Soviet Rail Network, Flow Networks. Slides20 - Network Flow Intro.key - December 5, 2016

Similar documents
Maximum Flow and Minimum Cut

6/3/2009. CS 244 Algorithm Design Instructor: t Artur Czumaj. Lecture 8 Network flows. Maximum Flow and Minimum Cut. Minimum Cut Problem.

! Abstraction for material flowing through the edges. ! G = (V, E) = directed graph, no parallel edges.

Soviet Rail Network, 1955

Soviet Rail Network, 1955

Algorithm Design and Analysis

Max Flow, Min Cut COS 521. Kevin Wayne Fall Soviet Rail Network, Cuts. Minimum Cut Problem. Flow network.

Greedy. I Divide and Conquer. I Dynamic Programming. I Network Flows. Network Flow. I Previous topics: design techniques

Network Flows: Introduction & Maximum Flow

Network Flow. Data Structures and Algorithms Andrei Bulatov

Flow networks. Flow Networks. A flow on a network. Flow networks. The maximum-flow problem. Introduction to Algorithms, Lecture 22 December 5, 2001

Flow Networks. Ma/CS 6a. Class 14: Flow Exercises

Reminder: Flow Networks

Graphs III - Network Flow

Today. Flow review. Augmenting paths. Ford-Fulkerson Algorithm. Intro to cuts (reason: prove correctness)

4/12/12. Applications of the Maxflow Problem 7.5 Bipartite Matching. Bipartite Matching. Bipartite Matching. Bipartite matching: the flow network

Today: Max Flow Proofs

Lecture 20: Riccati Equations and Least Squares Feedback Control

Matching. Slides designed by Kevin Wayne.

CS4445/9544 Analysis of Algorithms II Solution for Assignment 1

The Residual Graph. 12 Augmenting Path Algorithms. Augmenting Path Algorithm. Augmenting Path Algorithm

Algorithm Design and Analysis

I. Introduction to place/transition nets. Place/Transition Nets I. Example: a vending machine. Example: a vending machine

Admin MAX FLOW APPLICATIONS. Flow graph/networks. Flow constraints 4/30/13. CS lunch today Grading. in-flow = out-flow for every vertex (except s, t)

Maximum Flow. Jie Wang. University of Massachusetts Lowell Department of Computer Science. J. Wang (UMass Lowell) Maximum Flow 1 / 27

Running Time. Assumption. All capacities are integers between 1 and C.

Topics in Combinatorial Optimization May 11, Lecture 22

1 Motivation and Basic Definitions

Embedded Systems 5. Midterm, Thursday December 18, 2008, Final, Thursday February 12, 2009, 16-19

The Residual Graph. 11 Augmenting Path Algorithms. Augmenting Path Algorithm. Augmenting Path Algorithm

Problem Set If all directed edges in a network have distinct capacities, then there is a unique maximum flow.

Math 333 Problem Set #2 Solution 14 February 2003

Main Reference: Sections in CLRS.

Solutions to Assignment 1

Two Applications of Maximum Flow

1 Review for Lecture 2 MaxFlow

Point Processes, Week 3, Wednesday

t 2 B F x,t n dsdt t u x,t dxdt

CHAPTER 10 VALIDATION OF TEST WITH ARTIFICAL NEURAL NETWORK

Math 36. Rumbos Spring Solutions to Assignment #6. 1. Suppose the growth of a population is governed by the differential equation.

Flow networks, flow, maximum flow. Some definitions. Edmonton. Saskatoon Winnipeg. Vancouver Regina. Calgary. 12/12 a.

Math 2214 Solution Test 1B Fall 2017

CMPS 6610/4610 Fall Flow Networks. Carola Wenk Slides adapted from slides by Charles Leiserson

Module 2 F c i k c s la l w a s o s f dif di fusi s o i n

Math 115 Final Exam December 14, 2017

CSE 521: Design & Analysis of Algorithms I

Chapter 7. Network Flow. CS 350: Winter 2018

Algorithms and Theory of Computation. Lecture 11: Network Flow

DOOR TO DOOR FREIGHT TRANSPORTATION F O R M U L A T I O N S

Algorithmic Discrete Mathematics 6. Exercise Sheet

Maximum Flow in Planar Graphs

MAXIMUM FLOW. introduction Ford-Fulkerson algorithm maxflow-mincut theorem

Math 116 Second Midterm March 21, 2016

Network flows. The problem. c : V V! R + 0 [ f+1g. flow network G = (V, E, c), a source s and a sink t uv not in E implies c(u, v) = 0

Adaptation and Synchronization over a Network: stabilization without a reference model

Algorithm Design and Analysis

Maximum Flow. Contents. Max Flow Network. Maximum Flow and Minimum Cut

Agenda. Soviet Rail Network, We ve done Greedy Method Divide and Conquer Dynamic Programming

Chapter 7. Network Flow. Slides by Kevin Wayne. Copyright 2005 Pearson-Addison Wesley. All rights reserved.

ME 391 Mechanical Engineering Analysis

18 Extensions of Maximum Flow

Wrap up: Weighted, directed graph shortest path Minimum Spanning Tree. Feb 25, 2019 CSCI211 - Sprenkle

University of Cyprus Biomedical Imaging and Applied Optics. Appendix. DC Circuits Capacitors and Inductors AC Circuits Operational Amplifiers

Network Flows UPCOPENCOURSEWARE number 34414

CSC 364S Notes University of Toronto, Spring, The networks we will consider are directed graphs, where each edge has associated with it

Note: For all questions, answer (E) NOTA means none of the above answers is correct.

, where P is the number of bears at time t in years. dt (a) If 0 100, lim Pt. Is the solution curve increasing or decreasing?

Differential Equations

EXERCISES FOR SECTION 1.5

Optima and Equilibria for Traffic Flow on a Network

Algorithm Design and Analysis

Computer-Aided Analysis of Electronic Circuits Course Notes 3

Direct Current Circuits. February 19, 2014 Physics for Scientists & Engineers 2, Chapter 26 1

EEEB113 CIRCUIT ANALYSIS I

Algorithm Design and Analysis

Ford-Fulkerson Algorithm for Maximum Flow

AP CALCULUS AB/CALCULUS BC 2016 SCORING GUIDELINES. Question 1. 1 : estimate = = 120 liters/hr

Math Week 14 April 16-20: sections first order systems of linear differential equations; 7.4 mass-spring systems.

Deep Learning: Theory, Techniques & Applications - Recurrent Neural Networks -

20/20 20/20 0/5 0/5 20/20 20/20 5/5 0/5 0/5 5/5 0/20 25/30 20/20 30/30 20/20 0/5 5/5 20/20 0/5 0/5 15/20 15/25 20/20 10/10

Signal and System (Chapter 3. Continuous-Time Systems)

MEMS 0031 Electric Circuits

Course Notes for EE227C (Spring 2018): Convex Optimization and Approximation

Math Final Exam Solutions

Vanishing Viscosity Method. There are another instructive and perhaps more natural discontinuous solutions of the conservation law

Notes for Lecture 17-18

Statistical Mechanics

Max Flow: Algorithms and Applications

Lecture 8. Lecturer: Finn R. Førsund. Transmission 1

4.6 One Dimensional Kinematics and Integration

Algorithms and Data Structures 2011/12 Week 9 Solutions (Tues 15th - Fri 18th Nov)

MATH 128A, SUMMER 2009, FINAL EXAM SOLUTION

Waveform Transmission Method, A New Waveform-relaxation Based Algorithm. to Solve Ordinary Differential Equations in Parallel

Global Optimization for Scheduling Refinery Crude Oil Operations

6. DYNAMIC PROGRAMMING II

Soviet Rail Network, 1955

Energy Storage and Renewables in New Jersey: Complementary Technologies for Reducing Our Carbon Footprint

3/3/2015. Chapter 7. Network Flow. Maximum Flow and Minimum Cut. Minimum Cut Problem

!dp= fj f dv for any f e C* (S).

Expert Advice for Amateurs

Transcription:

CS Lunch This Week Panel on Sudying Engineering a MHC Wednesday, December, : Kendade Special Talk This Week Learning o Exrac Local Evens from he Web John Foley, UMass Thursday, December, :, Carr Sovie Rail Nework, Reference: On he hisory of he ransporaion and maximum flow problems. lexander Schrijver in Mah Programming, :,. Flow Neworks Flow nework. bsracion for maerial flowing hrough he edges. G = (V, E) = direced graph Two disinguished nodes: s = source, =. capaciy Slides - Nework Flow Inro.key - December,

Flows n s- flow is a funcion ha saisfies: Capaciy condiion: For each e E: f(e) c(e) Conservaion condiion: For each v V {s, : f(e) = f(e) e ino y e ou of y flow = Flows The value of a flow f is: v(f) = f(e) e ou of s value = flow = Flows The value of a flow f is: v(f) = f(e) e ou of s value = flow = Slides - Nework Flow Inro.key - December,

Maximum Flow Problem Find s- flow of maximum value. value = flow = Residual Graph Original edge: e = (u, v) E. Flow f(e), capaciy c(e). u v Residual edges. e = (u, v) wih capaciy c(e) - f(e) ND e R = (v, u) wih capaciy f(e) Residual graph: G f = (V, E f ). Residual edges wih posiive residual capaciy. E f = {e : f(e) < c(e) {e R : f(e) >. u residual capaciy v ugmening Pah lgorihm Ford-Fulkerson(G, s,, c) { foreach e E f(e) // iniially, no flow // iniially, he residual // graph is he original graph while (here exiss an s- pah P in Gf) { f ugmen(f, c, P) // change he flow updae G f // build a new residual graph ugmen(f, c, P) { b boleneck(p) // edge on P wih leas capaciy // forward edge, increase flow in G // reverse edge, decrease flow in G le e be he forward edge corresponding o e R Slides - Nework Flow Inro.key - December,

ugmening Pah lgorihm Ford-Fulkerson(G, s,, c) { foreach e E f(e) Cos - while (here exiss an s- pah P in Gf) { f ugmen(f, c, P) updae G f ugmen(f, c, P) { b boleneck(p) le e be he forward edge corresponding o e R ugmening Pah lgorihm Ford-Fulkerson(G, s,, c) { foreach e E f(e) Cos - while (here exiss an s- pah P in Gf) { f ugmen(f, c, P) updae G f ugmen(f, c, P) { b boleneck(p) ieraions le e be he forward edge corresponding o e R ugmening Pah lgorihm Ford-Fulkerson(G, s,, c) { foreach e E f(e) Cos - while (here exiss an s- pah P in Gf) { f ugmen(f, c, P) updae G f ugmen(f, c, P) { b boleneck(p) le e be he forward edge corresponding o e R ieraions Toal = Slides - Nework Flow Inro.key - December,

ugmening Pah lgorihm Ford-Fulkerson(G, s,, c) { foreach e E f(e) while (here exiss an s- pah P in Gf) { f ugmen(f, c, P) updae G f ugmen(f, c, P) { b boleneck(p) le e be he forward edge corresponding o e R Cos O(m+n) O(m+n) o find pah, O(C) ieraions, where C = max flow ieraions Toal = - ugmening Pah lgorihm Ford-Fulkerson(G, s,, c) { foreach e E f(e) while (here exiss an s- pah P in Gf) { f ugmen(f, c, P) updae G f ugmen(f, c, P) { b boleneck(p) le e be he forward edge corresponding o e R Cos O(m+n) O(m+n) o find pah, O(C) ieraions, where C = max flow Toal = O(C(m+n)) ieraions Toal = - ugmening Pah lgorihm Ford-Fulkerson(G, s,, c) { foreach e E f(e) while (here exiss an s- pah P in Gf) { f ugmen(f, c, P) updae G f ugmen(f, c, P) { b boleneck(p) le e be he forward edge corresponding o e R Cos O(m+n) O(m+n) o find pah, O(C) ieraions, where C = max flow Toal = O(C(m+n)) ieraions Toal = O(C(m+n)) - a pseudopolynomial - Slides - Nework Flow Inro.key - December,

Cus n s- cu is a pariion (, ) of V wih s and. The capaciy of a cu (, ) is: Σ c(e) e ou of capaciy of cu = Cus capaciy of cu = + + + = (Capaciy is sum of weighs on edges leaving.) Flow value lemma. Le f be any flow, and le (, ) be any s- cu. Then, he ne flow sen across he cu is equal o he amoun leaving s. value = Flows and Cus f(e) - f(e) = v(f) e ou of a e ino a Slides - Nework Flow Inro.key - December,

Flows and Cus Flow value lemma. Le f be any flow, and le (, ) be any s- cu. Then, he ne flow sen across he cu is equal o he amoun leaving s. value = f(e) - f(e) = v(f) e ou of a e ino a Flow value lemma. Le f be any flow, and le (, ) be any s- cu. Then, he ne flow sen across he cu is equal o he amoun leaving s. value = Flows and Cus f(e) - f(e) = v(f) e ou of a e ino a Slides - Nework Flow Inro.key - December,