Con$nuous Op$miza$on: The "Right" Language for Fast Graph Algorithms? Aleksander Mądry
|
|
- Lucinda Daniel
- 5 years ago
- Views:
Transcription
1 Con$nuous Op$miza$on: The "Right" Language for Fast Graph Algorithms? Aleksander Mądry
2 We have been studying graph algorithms for a while now Tradi$onal view: Graphs are combinatorial objects graph algorithms should be combinatorial too ( combinatorial = talks about paths, trees, cuts, par@@ons, matchings, ) Conven$onal wisdom: combinatorial = fast There are notable excep@ons (spectral graph theory!) but this is the dominant mindset But: Is this mindset (and conven@onal wisdom) actually correct? OGen: combinatorial = ad hoc/hard to analyze (We are stuck on many central graph problems because of that) Is there a bejer way to approach graph algorithms?
3 BeJer(?) approach: Augment our combinatorial understanding of graphs with tools and concepts of Combinatorial methods (trees, paths, matchings, ) Convex opt. primi$ves (gradient- descent, interior- point methods, ) Linear- algebraic tools (eigenvalues, electrical flows, linear systems, ) Our plan for today: Illustrate this theme on an example of a single problem Problem: Maximum flow
4 Maximum flow problem Input: Directed graph G, integer capaci$es u e, source s and sink t s t Think: arcs = roads capaci@es = # of lanes s/t = origin/des@na@on Task: Find a feasible s- t flow of max value (Think: Es@mate the max possible rate of traffic from s to t)
5 Maximum flow problem value = net flow out of s Input: Directed graph G, integer capaci$es u e, source s and sink t s t Think: arcs = roads capaci@es = # of lanes s/t = origin/des@na@on Max flow value Here, value = 7 F*=10 no overflow on arcs: 0 f(e) u(e) no leaks at all v s,t Task: Find a feasible s- t flow of max value (Think: Es@mate the max possible rate of traffic from s to t)
6 Maximum flow problem Input: Directed graph G, integer capaci$es u e, source s and sink t s t Think: arcs = roads capaci@es = # of lanes s/t = origin/des@na@on Max flow value Here, value = 7 F*=10 Task: Find a feasible s- t flow of max value (Think: Es@mate the max possible rate of traffic from s to t)
7 Why is this a good problem to study? Max flow is a fundamental op@miza@on problem Extensively studied since 1930s (classic textbook problem ) Surprisingly diverse set of applica$ons Very influen$al in development of (graph) algorithms Transporta$on (Route planning) Graph par$$oning (Clustering) Scheduling, Assignment problems Connec$vity Analysis Max Flow Computer Vision (Image segmenta@on)
8 What is known about Max Flow? A LOT of previous work
9 What is known about Max Flow? A (very) rough history outline [Dantzig 51] [Ford Fulkerson 56] [Dinitz 70] O(mn 2 U) O(mn U) O(mn 2 ) [Dinitz 70] [Edmonds Karp 72] O(m 2 n) [Dinitz 73] [Edmonds Karp 72] O(m 2 log U) [Dinitz 73] [Gabow 85] O(mn log U) [Goldberg Rao 98] Õ(m min(m 1/2,n 2/3 ) log U) [Lee Sidford 14] Õ(mn 1/2 log U) Our focus: Sparse graph (m=o(n)) and unit- capacity (U=1) regime It is a good benchmark for combinatorial graph algorithms Already captures interes@ng problems, e.g., bipar$te matching (n = # of ver@ces, m = # of arcs, U = max capacity, Õ() hides polylogs)
10 What is known about Max Flow? A (very) rough history outline [Dantzig 51] [Ford Fulkerson 56] [Dinitz 70] O(n 3 ) O(n 2 ) O(n 3 ) [Dinitz 70] [Edmonds Karp 72] O(n 3 ) [Dinitz 73] [Edmonds Karp 72] Õ(n 2 ) [Dinitz 73] [Gabow 85] Õ(n 2 ) [Goldberg Rao 98] Õ(n 3/2 ) [Lee Sidford 14] Õ(n 3/2 ) Our focus: Sparse graph (m=o(n)) and unit- capacity (U=1) regime It is a good benchmark for combinatorial graph algorithms Already captures interes@ng problems, e.g., bipar$te matching (n = # of ver@ces, m = # of arcs, U = max capacity, Õ() hides polylogs)
11 What is known about Max Flow? Emerging barrier: Ω(n 3/2 ) [Even Tarjan 75, Karzanov 73]: Achieved this bound for U=1 ago Last 40 years: Matching this bound in increasingly more general seengs, but no improvement This indicates a fundamental limita@on of our techniques Our goal: A new approach finally breaking this barrier (n = # of ver@ces, m = # of arcs, U = max capacity, Õ() hides polylogs)
12 Breaking the Ω(n 3/2 ) barrier Undirected graphs and approx. answers (Ω(n 3/2 ) barrier s@ll holds here) [M 10]: Crude approx. of max flow value in close to [CKMST 11]: (1- ε)- approx. to max flow in Õ(n 4/3 ε - 3 [LSR 13, S 13, KLOS 14, P 14]: (1- ε)- approx. in Õ(nε - 2 But: What about the directed and exact seeng? [M 13]: Exact Õ(n 10/7 )=Õ(n 1.43 alg. (n = # of ver@ces, Õ() hides polylog factors)
13 Previous approach
14 Augmen$ng paths framework [Ford Fulkerson 56] Basic idea: Repeatedly find s- t paths in the residual graph s t
15 Augmen$ng paths framework [Ford Fulkerson 56] Basic idea: Repeatedly find s- t paths in the residual graph s t
16 Augmen$ng paths framework [Ford Fulkerson 56] Basic idea: Repeatedly find s- t paths in the residual graph s t
17 Augmen$ng paths framework [Ford Fulkerson 56] Basic idea: Repeatedly find s- t paths in the residual graph s t
18 Augmen$ng paths framework [Ford Fulkerson 56] Basic idea: Repeatedly find s- t paths in the residual graph Advantage: Simple, purely combinatorial and greedy (flow is built path- by- path) Problem: Very difficult to analyze s Naïve implementa$on: Unclear O(n 2 how to get ( n augmen@ng a further paths speed- up + via to this find route each path) Sophis$cated implementa$on and arguments: O(n 3/2 [Karzanov 73] [Even Tarjan 75] t
19 Beyond augmen$ng paths
20 New approach: Bring linear- algebraic techniques into play Idea: Probe the global flow structure of the graph by solving linear systems How to relate flow structure to linear algebra? (And why should it even help?) Key object: Electrical flows
21 Electrical flows (Take I) Input: Undirected graph G, resistances r e, source s and sink t s t Recipe for elec. flow: 1) Treat edges as resistors
22 Electrical flows (Take I) Input: Undirected graph G, resistances r e, source s and sink t s t resistance r e Recipe for elec. flow: 1) Treat edges as resistors 2) Connect a bajery to s and t
23 Electrical flows (Take I) Input: Undirected graph G, resistances r e, source s and sink t s t resistance r e Recipe for elec. flow: 1) Treat edges as resistors 2) Connect a bajery to s and t
24 Electrical flows (Take II) Input: Undirected graph G, resistances r e, source s and sink t Principle of least energy Electrical flow of value F: The unique minimizer of the energy E(f) = Σ e r e f(e) 2 among all s- t flows f of value F Electrical flows = l 2 - minimiza@on
25 How to compute an electrical flow? L x = b Electrical flow computa@on Solving linear systems in graph Laplacian (Laplacian = a key object in spectral graph theory) Result: Electrical flow is a nearly- linear $me primi@ve [ST 04, KMP 10, KMP 11, KOSZ 13, LS 13, CKPPR 14] How to employ it?
26 From electrical flows to undirected max flow [CKMST 11]
27 Approx. undirected max flow via electrical flows Assume: F * known (via binary search) s Treat edges as resistors of resistance 1 t
28 Approx. undirected max flow via electrical flows Assume: F * known (via binary search) s Treat edges as resistors of resistance 1 Compute electrical flow of value F * t
29 Approx. undirected max flow via electrical flows Assume: F * known (via binary search) Treat edges as resistors of resistance 1 Compute electrical flow of value F * (This flow has no leaks, but can overflow some edges) 3/4 3/4 s 3/ /4 t
30 Approx. undirected max flow via electrical flows Assume: F * known (via binary search) 3/4 s Treat edges as resistors of resistance 1 Compute electrical flow of value F * (This flow has no leaks, but can overflow some edges) To fix that: Increase resistances on the overflowing edges Repeat (hope: it doesn t happen too ooen) 1.5 3/4 3/4 3/4 Surprisingly: This approach can be made work! t
31 Approx. undirected max flow via electrical flows Assume: F * known (via binary search) 3/4 s Treat edges as resistors of resistance 1 Compute electrical flow of value F * (This flow has no leaks, but can overflow some edges) To fix that: Increase resistances on the overflowing edges Repeat (hope: it doesn t happen too ooen) At the end: Take an average of all the flows as the final answer 1.5 3/4 3/4 t 3/4 Evolu$on of resistances: Based on Mul@plica@ve Weight Update method [FS 97, PST 95, AHK 05]
32 Bounding the running $me Each runs in How many do we need? Can show: # of itera@ons worst- case overflow ρ Think: ρ measures the electrical vs. max flow discrepancy Key ques$on: If f E = elect. flow of value F * wrt all r e =1 What is ρ = max e f E (e)? Claim: ρ m 1/2 =O(n 1/2 ) Proof: Suffices to show that E(f E ) m
33 Bounding the running $me Each runs in How many do we need? Can show: # of itera@ons worst- case overflow ρ Think: ρ measures the electrical vs. max flow discrepancy Key ques$on: If f E = elect. flow of value F * wrt all r e =1 What is ρ = max e f E (e)? Claim: ρ m 1/2 =O(n 1/2 ) Proof: Suffices to show that E(f E ) = Σ e r e f E (e) 2 = Σ e f E (e) 2 m Note: if f * is the max flow (of value F * ) then E(f * ) = Σ e r e f * (e) 2 = Σ e f * (e) 2 Σ e 1 m
34 Bounding the running $me Each runs in How many do we need? Can show: # of itera@ons worst- case overflow ρ Think: ρ measures the electrical vs. max flow discrepancy Key ques$on: If f E = elect. flow of value F * wrt all r e =1 What is ρ = max e f E (e)? Claim: ρ m 1/2 =O(n 1/2 ) Proof: Suffices to show that E(f E ) = Σ e r e f E (e) 2 = Σ e f E (e) 2 m Note: if f * is the max flow (of value F * ) then This E(f * ) gives = Σ e ran e f * Õ(nρε (e) 2 = - 3 Σ e ) = f * (e) Õ(n 2 3/2 Σε e m But, as f E minimizes (1- ε)- approx energy among algorithm all the flows of value F * E(f E ) E(f * ) m
35 Breaking the Ω(n 3/2 ) $me bound Problem: The m 1/2 =O(n 1/2 ) itera@ons bound we just proved n ½ paths with n ½ ver@ces each s t one edge
36 Breaking the Ω(n 3/2 ) $me bound Problem: The m 1/2 =O(n 1/2 ) itera@ons bound we just proved Max flow: n ½ paths with n ½ ver@ces each F* n ½ s t one edge
37 Breaking the Ω(n 3/2 ) $me bound Problem: The m 1/2 =O(n 1/2 ) itera@ons bound we just proved Elect. flow: s t n 1/2 But: It is so only in presence of edges that (single- handily) contribute most of the energy of f E (Recall: We showed ρ 2 = max e f E (e) 2 Σ e f E (e) 2 = E(f E ) m)
38 Breaking the Ω(n 3/2 ) $me bound Problem: The m 1/2 =O(n 1/2 ) itera@ons bound we just proved Elect. flow: s t n 1/2 Key idea: Perturb the graph by removing such high- energy edges whenever they emerge
39 Breaking the Ω(n 3/2 ) $me bound Problem: The m 1/2 =O(n 1/2 ) itera@ons bound we just proved s t Key idea: Perturb the graph by removing such high- energy edges whenever they emerge
40 Breaking the Ω(n 3/2 ) $me bound Problem: The m 1/2 =O(n 1/2 ) itera@ons bound we just proved s t Key idea: Perturb the graph by removing such high- energy edges whenever they emerge
41 Breaking the Ω(n 3/2 ) $me bound Problem: The m 1/2 =O(n 1/2 ) itera@ons bound we just proved s t Careful energy- based argument gives the desired Õ(n 4/3 ε - 3 algorithm
42 From electrical flows to exact directed max flow [M 13]
43 Why the progress on approx. undirected max flow does not apply to the exact directed case? Temp$ng answer: Directed graphs are just different (for one, electrical flow is an undirected But: exact directed max flow reduces to exact undirected We need a case more powerful So, it is all about geeng sufficiently intermediary good approxima@on s t MWU rou@ne Key obstacle: Gradient descent methods (like MWU) are inherently unable to deliver good enough accuracy
44 (Path- following) Interior- point method (IPM) [Dikin 67, Karmarkar 84, ] A powerful framework for solving general LPs (and more) LP: min c T x s.t. Ax = b x 0 Idea: Take care of hard constraints by adding a barrier to the objec@ve easy constraints (use projec@on) hard constraints
45 (Path- following) Interior- point method (IPM) [Dikin 67, Karmarkar 84, ] A powerful framework for solving general LPs (and more) LP(μ): min c T x - μ Σ i log x i s.t. Ax = b x 0 Idea: Take care of hard constraints by adding a barrier to the objec@ve Observe: The barrier term enforces x 0 implicitly Furthermore: for large μ, LP(μ) is easy to solve and LP(μ) original LP, as μ 0 + Path- following rou$ne: Start with (near- )op@mal solu@on to LP(μ) for large μ>0 Gradually reduce μ (via Newton s method) while maintaining the (near- )op@mal solu@on to current LP(μ)
46 central path = op@mal solu@ons to LP(μ) c for all μ>0 OPT (0,0) x c P A P A = {x Ax = b} x c analy@c center Path- following rou$ne: Start with (near- )op@mal solu@on to LP(μ) for large μ>0 Gradually reduce μ (via Newton s method) while maintaining the (near- )op@mal solu@on to current LP(μ)
47 Can we use IPM to get a faster max flow alg.? Conven$onal wisdom: This will be too slow! Each Newton's step = solving a linear system O(n ω )=O(n (prohibi@ve!) But: When solving flow problems only [DS 08] Fundamental ques$on: What is the number of itera@ons? [Renegar 88]: O(m 1/2 log ε - 1 ) Unfortunately: This gives only an Õ(m 3/2 algorithm Improve the O(m 1/2 ) bound? Although believed to be very subop@mal, its improvement is a major challenge?
48 [M 13]: An improved O(m 3/7 ) itera@ons bound for unit- capacity max flow interior- point method Observa$on: IPM is solving max flow using electrical flows too! A simple energy- based argument recovers the O(m 1/2 ) bound Lack of high- energy edges bejer than O(m 1/2 ) convergence Problem: Removal of such high- energy edges is too dras@c Instead: Apply a careful perturba$on + precondi$oning of the LP (This not only changes the current solu@on but also the central path) Most of these elements seems broadly applicable (and new) In par$cular: We can solve every LP faster, but only if we perturb it Will this lead to breaking the Ω(m 1/2 ) convergence barrier for all LPs?
49 Conclusions and the Bigger Picture
50 Maximum Flows and Electrical Flows s t Interior- point method Elect. flows + IPMs A powerful new approach to max flow Can this lead to a nearly- linear $me algorithm for the exact directed max flow? We seem to have the cri@cal mass of ideas Elect. flows = next genera@on of spectral tools? BeJer spectral graph par@@oning, Algorithmic grasp of random walks,
51 Grand challenge: Can we make algorithmic graph theory run in nearly- New recipe : Fast alg. for combinatorial problems via linear- algebraic tools + con$nuous opt. methods How about applying this framework to other graph problems that got stuck at O(n 3/2 )? (min- cost flow, general matchings, nega$ve- lengths shortest path ) Second- order/ipm- like methods: the next fron@er for fast (graph) algorithms?
52 Should opt. be the language of graph alg.? Combinatorial approaches work great when they do work, but they are ooen ad hoc and hard to work with/analyze opt. gives us a much more principled approach Phrase your graph problem as a (convex) op@miza@on ques@on Derive proper@es of the objec@ve fun. needed for fast convergence Crao the objec@ve func@on accordingly Apply a generic (and well- implemented) off- the- shelf opt. alg. Only place where combinatorial/problem- specific insights are needed All the algorithms I discussed (and their subsequent improvements) can be derived in this way (even if it might be not apparent) Intriguing possibility: Can the classic graph algorithms be derived in this way too?
53 Bridging the Combinatorial and the Con$nuous paths, trees, matchings, data structures matrices, eigenvalues, linear systems, gradients, convex sets Powerful approach: the interplay of the two worlds Some other early success stories of this approach: Spectral graph theory aka the eigenvalue Fast SDD/Laplacian system solvers Graph random spanning tree this is just the beginning!
54 Thank you Ques$ons?
Electrical Flow Primi7ve and Fast Graph Algorithms. Aleksander Mądry
Electrical Flow Primi7ve and Fast Graph Algorithms Aleksander Mądry These are exci+ng +mes for fast graph algorithms Last several years brought faster algorithms for a number of fundamental graph problems
More informationParallel Graph Algorithms (con4nued)
Parallel Graph Algorithms (con4nued) MaxFlow A flow network G=(V,E): a directed graph, where each edge (u,v) E has a nonnega4ve capacity c(u,v)>=0. If (u,v) E, we assume that c(u,v)=0. Two dis4nct ver4ces
More informationComputing Maximum Flow with Augmenting Electrical Flows
Computing Maximum Flow with Augmenting Electrical Flows Aleksander Mądry MIT madry@mit.edu Abstract ( ) We present an Õ m 0 7 U 7 -time algorithm for the maximum s-t flow problem (and the minimum s-t cut
More informationParallel Graph Algorithms (con4nued)
Parallel Graph Algorithms (con4nued) MaxFlow A flow network G=(V,E): a directed graph, where each edge (u,v) E has a nonnega4ve capacity c(u,v)>=0. If (u,v) E, we assume that c(u,v)=0. Two dis4nct ver4ces
More informationAlgorithms and Theory of Computation. Lecture 11: Network Flow
Algorithms and Theory of Computation Lecture 11: Network Flow Xiaohui Bei MAS 714 September 18, 2018 Nanyang Technological University MAS 714 September 18, 2018 1 / 26 Flow Network A flow network is a
More informationLecture 21 November 11, 2014
CS 224: Advanced Algorithms Fall 2-14 Prof. Jelani Nelson Lecture 21 November 11, 2014 Scribe: Nithin Tumma 1 Overview In the previous lecture we finished covering the multiplicative weights method and
More informationAlgorithms, Graph Theory, and the Solu7on of Laplacian Linear Equa7ons. Daniel A. Spielman Yale University
Algorithms, Graph Theory, and the Solu7on of Laplacian Linear Equa7ons Daniel A. Spielman Yale University Rutgers, Dec 6, 2011 Outline Linear Systems in Laplacian Matrices What? Why? Classic ways to solve
More informationAlgorithms, Graph Theory, and Linear Equa9ons in Laplacians. Daniel A. Spielman Yale University
Algorithms, Graph Theory, and Linear Equa9ons in Laplacians Daniel A. Spielman Yale University Shang- Hua Teng Carter Fussell TPS David Harbater UPenn Pavel Cur9s Todd Knoblock CTY Serge Lang 1927-2005
More informationORIE 6334 Spectral Graph Theory October 25, Lecture 18
ORIE 6334 Spectral Graph Theory October 25, 2016 Lecturer: David P Williamson Lecture 18 Scribe: Venus Lo 1 Max Flow in Undirected Graphs 11 Max flow We start by reviewing the maximum flow problem We are
More informationAgenda. Soviet Rail Network, We ve done Greedy Method Divide and Conquer Dynamic Programming
Agenda We ve done Greedy Method Divide and Conquer Dynamic Programming Now Flow Networks, Max-flow Min-cut and Applications c Hung Q. Ngo (SUNY at Buffalo) CSE 531 Algorithm Analysis and Design 1 / 52
More informationAlgorithmic Primitives for Network Analysis: Through the Lens of the Laplacian Paradigm
Algorithmic Primitives for Network Analysis: Through the Lens of the Laplacian Paradigm Shang-Hua Teng Computer Science, Viterbi School of Engineering USC Massive Data and Massive Graphs 500 billions web
More informationBellman s Curse of Dimensionality
Bellman s Curse of Dimensionality n- dimensional state space Number of states grows exponen
More informationGraph Sparsification I : Effective Resistance Sampling
Graph Sparsification I : Effective Resistance Sampling Nikhil Srivastava Microsoft Research India Simons Institute, August 26 2014 Graphs G G=(V,E,w) undirected V = n w: E R + Sparsification Approximate
More informationRunning Time. Assumption. All capacities are integers between 1 and C.
Running Time Assumption. All capacities are integers between and. Invariant. Every flow value f(e) and every residual capacities c f (e) remains an integer throughout the algorithm. Theorem. The algorithm
More informationCSC 373: Algorithm Design and Analysis Lecture 12
CSC 373: Algorithm Design and Analysis Lecture 12 Allan Borodin February 4, 2013 1 / 16 Lecture 12: Announcements and Outline Announcements Term test 1 in tutorials. Need to use only two rooms due to sickness
More informationSpectral Algorithms for Graph Mining and Analysis. Yiannis Kou:s. University of Puerto Rico - Rio Piedras NSF CAREER CCF
Spectral Algorithms for Graph Mining and Analysis Yiannis Kou:s University of Puerto Rico - Rio Piedras NSF CAREER CCF-1149048 The Spectral Lens A graph drawing using Laplacian eigenvectors Outline Basic
More informationMathematics for Decision Making: An Introduction. Lecture 13
Mathematics for Decision Making: An Introduction Lecture 13 Matthias Köppe UC Davis, Mathematics February 17, 2009 13 1 Reminder: Flows in networks General structure: Flows in networks In general, consider
More information22 Max-Flow Algorithms
A process cannot be understood by stopping it. Understanding must move with the flow of the process, must join it and flow with it. The First Law of Mentat, in Frank Herbert s Dune (965) There s a difference
More informationAlgorithms: Lecture 12. Chalmers University of Technology
Algorithms: Lecture 1 Chalmers University of Technology Today s Topics Shortest Paths Network Flow Algorithms Shortest Path in a Graph Shortest Path Problem Shortest path network. Directed graph G = (V,
More information6.046 Recitation 11 Handout
6.046 Recitation 11 Handout May 2, 2008 1 Max Flow as a Linear Program As a reminder, a linear program is a problem that can be written as that of fulfilling an objective function and a set of constraints
More informationLecture: Local Spectral Methods (3 of 4) 20 An optimization perspective on local spectral methods
Stat260/CS294: Spectral Graph Methods Lecture 20-04/07/205 Lecture: Local Spectral Methods (3 of 4) Lecturer: Michael Mahoney Scribe: Michael Mahoney Warning: these notes are still very rough. They provide
More informationLecture 18 Oct. 30, 2014
CS 224: Advanced Algorithms Fall 214 Lecture 18 Oct. 3, 214 Prof. Jelani Nelson Scribe: Xiaoyu He 1 Overview In this lecture we will describe a path-following implementation of the Interior Point Method
More informationCSC2420: Algorithm Design, Analysis and Theory Spring (or Winter for pessimists) 2017
CSC2420: Algorithm Design, Analysis and Theory Spring (or Winter for pessimists) 2017 Allan Borodin January 30, 2017 1 / 32 Lecture 4 Announcements: I have posted all 7 questions for assignment 1. It is
More informationCS599: Convex and Combinatorial Optimization Fall 2013 Lecture 17: Combinatorial Problems as Linear Programs III. Instructor: Shaddin Dughmi
CS599: Convex and Combinatorial Optimization Fall 2013 Lecture 17: Combinatorial Problems as Linear Programs III Instructor: Shaddin Dughmi Announcements Today: Spanning Trees and Flows Flexibility awarded
More informationPseudospectral Methods For Op2mal Control. Jus2n Ruths March 27, 2009
Pseudospectral Methods For Op2mal Control Jus2n Ruths March 27, 2009 Introduc2on Pseudospectral methods arose to find solu2ons to Par2al Differen2al Equa2ons Recently adapted for Op2mal Control Key Ideas
More informationCS675: Convex and Combinatorial Optimization Fall 2014 Combinatorial Problems as Linear Programs. Instructor: Shaddin Dughmi
CS675: Convex and Combinatorial Optimization Fall 2014 Combinatorial Problems as Linear Programs Instructor: Shaddin Dughmi Outline 1 Introduction 2 Shortest Path 3 Algorithms for Single-Source Shortest
More informationAlgorithm Design and Analysis
Algorithm Design and Analysis LETURE 28 Network Flow hoosing good augmenting paths apacity scaling algorithm A. Smith /4/2008 A. Smith; based on slides by K. Wayne and S. Raskhodnikova Pre-break: Ford-Fulkerson
More informationLecture 8 Network Optimization Algorithms
Advanced Algorithms Floriano Zini Free University of Bozen-Bolzano Faculty of Computer Science Academic Year 2013-2014 Lecture 8 Network Optimization Algorithms 1 21/01/14 Introduction Network models have
More informationLeast Mean Squares Regression. Machine Learning Fall 2017
Least Mean Squares Regression Machine Learning Fall 2017 1 Lecture Overview Linear classifiers What func?ons do linear classifiers express? Least Squares Method for Regression 2 Where are we? Linear classifiers
More informationAlgorithm Design and Analysis
Algorithm Design and Analysis LETURE 2 Network Flow Finish bipartite matching apacity-scaling algorithm Adam Smith 0//0 A. Smith; based on slides by E. Demaine,. Leiserson, S. Raskhodnikova, K. Wayne Marriage
More informationCSC2420: Algorithm Design, Analysis and Theory Fall 2017
CSC2420: Algorithm Design, Analysis and Theory Fall 2017 Allan Borodin and Nisarg Shah October 11, 2017 1 / 32 Lecture 5 Announcements: The first assignment is due next week, October 18, at 1:00 PM The
More informationProblem set 1. (c) Is the Ford-Fulkerson algorithm guaranteed to produce an acyclic maximum flow?
CS261, Winter 2017. Instructor: Ashish Goel. Problem set 1 Electronic submission to Gradescope due 11:59pm Thursday 2/2. Form a group of 2-3 students that is, submit one homework with all of your names.
More informationFlow Network. The following figure shows an example of a flow network:
Maximum Flow 1 Flow Network The following figure shows an example of a flow network: 16 V 1 12 V 3 20 s 10 4 9 7 t 13 4 V 2 V 4 14 A flow network G = (V,E) is a directed graph. Each edge (u, v) E has a
More informationNew algorithms for Disjoint Paths and Routing Problems
New algorithms for Disjoint Paths and Routing Problems Chandra Chekuri Dept. of Computer Science Univ. of Illinois (UIUC) Menger s Theorem Theorem: The maximum number of s-t edgedisjoint paths in a graph
More informationMulticommodity Flows and Column Generation
Lecture Notes Multicommodity Flows and Column Generation Marc Pfetsch Zuse Institute Berlin pfetsch@zib.de last change: 2/8/2006 Technische Universität Berlin Fakultät II, Institut für Mathematik WS 2006/07
More informationCombinatorial Optimization
Combinatorial Optimization 2017-2018 1 Maximum matching on bipartite graphs Given a graph G = (V, E), find a maximum cardinal matching. 1.1 Direct algorithms Theorem 1.1 (Petersen, 1891) A matching M is
More informationInternet Routing Example
Internet Routing Example Acme Routing Company wants to route traffic over the internet from San Fransisco to New York. It owns some wires that go between San Francisco, Houston, Chicago and New York. The
More information1 The linear algebra of linear programs (March 15 and 22, 2015)
1 The linear algebra of linear programs (March 15 and 22, 2015) Many optimization problems can be formulated as linear programs. The main features of a linear program are the following: Variables are real
More informationMaximum Integer Flows in Directed Planar Graphs with Multiple Sources and Sinks and Vertex Capacities
Maximum Integer Flows in Directed Planar Graphs with Multiple Sources and Sinks and Vertex Capacities Yipu Wang University of Illinois at Urbana-Champaign ywang298@illinois.edu July 12, 2018 Abstract We
More informationCS675: Convex and Combinatorial Optimization Fall 2016 Combinatorial Problems as Linear and Convex Programs. Instructor: Shaddin Dughmi
CS675: Convex and Combinatorial Optimization Fall 2016 Combinatorial Problems as Linear and Convex Programs Instructor: Shaddin Dughmi Outline 1 Introduction 2 Shortest Path 3 Algorithms for Single-Source
More informationu = 50 u = 30 Generalized Maximum Flow Problem s u = 00 2 u = 00 u = 50 4 = 3=4 u = 00 t capacity u = 20 3 u = 20 = =2 5 u = 00 gain/loss factor Max o
Generalized Max Flows Kevin Wayne Cornell University www.orie.cornell.edu/~wayne = 3=4 40 v w 30 advisor: Eva Tardos u = 50 u = 30 Generalized Maximum Flow Problem s u = 00 2 u = 00 u = 50 4 = 3=4 u =
More informationParameter Es*ma*on: Cracking Incomplete Data
Parameter Es*ma*on: Cracking Incomplete Data Khaled S. Refaat Collaborators: Arthur Choi and Adnan Darwiche Agenda Learning Graphical Models Complete vs. Incomplete Data Exploi*ng Data for Decomposi*on
More informationLecture 10. Lecturer: Aleksander Mądry Scribes: Mani Bastani Parizi and Christos Kalaitzis
CS-621 Theory Gems October 18, 2012 Lecture 10 Lecturer: Aleksander Mądry Scribes: Mani Bastani Parizi and Christos Kalaitzis 1 Introduction In this lecture, we will see how one can use random walks to
More informationMaximum Flows & Minimum Cuts
A process cannot be understood by stopping it. Understanding must move with the flow of the process, must join it and flow with it. The First Law of Mentat, in Frank Herbert s Dune (196) Contrary to expectation,
More informationAlgorithm Design and Analysis
Algorithm Design and Analysis LECTURE 7 Network Flow Application: Bipartite Matching Adam Smith 0//008 A. Smith; based on slides by S. Raskhodnikova and K. Wayne Recently: Ford-Fulkerson Find max s-t flow
More informationUniversity of Toronto Department of Electrical and Computer Engineering. Final Examination. ECE 345 Algorithms and Data Structures Fall 2016
University of Toronto Department of Electrical and Computer Engineering Final Examination ECE 345 Algorithms and Data Structures Fall 2016 Print your first name, last name, UTORid, and student number neatly
More informationImproving Christofides Algorithm for the s-t Path TSP
Cornell University May 21, 2012 Joint work with Bobby Kleinberg and David Shmoys Metric TSP Metric (circuit) TSP Given a weighted graph G = (V, E) (c : E R + ), find a minimum Hamiltonian circuit Triangle
More informationDiscrete Optimization 2010 Lecture 1 Introduction / Algorithms & Spanning Trees
Discrete Optimization 2010 Lecture 1 Introduction / Algorithms & Spanning Trees Marc Uetz University of Twente m.uetz@utwente.nl Lecture 1: sheet 1 / 43 Marc Uetz Discrete Optimization Outline 1 Introduction
More informationMaximum-Life Routing Schedule
Maximum-Life Routing Schedule Peng-Jun Wan wan@cs.iit.edu Peng-Jun Wan (wan@cs.iit.edu) Maximum-Life Routing Schedule 1 / 42 Outline Problem Description Min-Cost Routing Ellipsoid Algorithm Price-Directive
More informationCHAPTER 3 FUNDAMENTALS OF COMPUTATIONAL COMPLEXITY. E. Amaldi Foundations of Operations Research Politecnico di Milano 1
CHAPTER 3 FUNDAMENTALS OF COMPUTATIONAL COMPLEXITY E. Amaldi Foundations of Operations Research Politecnico di Milano 1 Goal: Evaluate the computational requirements (this course s focus: time) to solve
More informationLecture 24: Element-wise Sampling of Graphs and Linear Equation Solving. 22 Element-wise Sampling of Graphs and Linear Equation Solving
Stat260/CS294: Randomized Algorithms for Matrices and Data Lecture 24-12/02/2013 Lecture 24: Element-wise Sampling of Graphs and Linear Equation Solving Lecturer: Michael Mahoney Scribe: Michael Mahoney
More informationStrongly Polynomial Algorithm for a Class of Minimum-Cost Flow Problems with Separable Convex Objectives
Strongly Polynomial Algorithm for a Class of Minimum-Cost Flow Problems with Separable Convex Objectives László A. Végh April 12, 2013 Abstract A well-studied nonlinear extension of the minimum-cost flow
More informationLecture 1. 1 Overview. 2 Maximum Flow. COMPSCI 532: Design and Analysis of Algorithms August 26, 2015
COMPSCI 532: Design and Analysis of Algorithms August 26, 205 Lecture Lecturer: Debmalya Panigrahi Scribe: Allen Xiao Oeriew In this lecture, we will define the maximum flow problem and discuss two algorithms
More informationCMPSCI 611: Advanced Algorithms
CMPSCI 611: Advanced Algorithms Lecture 12: Network Flow Part II Andrew McGregor Last Compiled: December 14, 2017 1/26 Definitions Input: Directed Graph G = (V, E) Capacities C(u, v) > 0 for (u, v) E and
More informationLecture 9 Tuesday, 4/20/10. Linear Programming
UMass Lowell Computer Science 91.503 Analysis of Algorithms Prof. Karen Daniels Spring, 2010 Lecture 9 Tuesday, 4/20/10 Linear Programming 1 Overview Motivation & Basics Standard & Slack Forms Formulating
More informationThe min cost flow problem Course notes for Search and Optimization Spring 2004
The min cost flow problem Course notes for Search and Optimization Spring 2004 Peter Bro Miltersen February 20, 2004 Version 1.3 1 Definition of the min cost flow problem We shall consider a generalization
More informationPrimal-Dual Interior-Point Methods. Ryan Tibshirani Convex Optimization
Primal-Dual Interior-Point Methods Ryan Tibshirani Convex Optimization 10-725 Given the problem Last time: barrier method min x subject to f(x) h i (x) 0, i = 1,... m Ax = b where f, h i, i = 1,... m are
More informationUVA CS 4501: Machine Learning. Lecture 6: Linear Regression Model with Dr. Yanjun Qi. University of Virginia
UVA CS 4501: Machine Learning Lecture 6: Linear Regression Model with Regulariza@ons Dr. Yanjun Qi University of Virginia Department of Computer Science Where are we? è Five major sec@ons of this course
More informationOn Finding Planted Cliques and Solving Random Linear Equa9ons. Math Colloquium. Lev Reyzin UIC
On Finding Planted Cliques and Solving Random Linear Equa9ons Math Colloquium Lev Reyzin UIC 1 random graphs 2 Erdős- Rényi Random Graphs G(n,p) generates graph G on n ver9ces by including each possible
More informationAlgorithms for NLP. Classifica(on III. Taylor Berg- Kirkpatrick CMU Slides: Dan Klein UC Berkeley
Algorithms for NLP Classifica(on III Taylor Berg- Kirkpatrick CMU Slides: Dan Klein UC Berkeley The Perceptron, Again Start with zero weights Visit training instances one by one Try to classify If correct,
More informationThe max flow problem. Ford-Fulkerson method. A cut. Lemma Corollary Max Flow Min Cut Theorem. Max Flow Min Cut Theorem
The max flow problem Ford-Fulkerson method 7 11 Ford-Fulkerson(G) f = 0 while( simple path p from s to t in G f ) 10-2 2 1 f := f + f p output f 4 9 1 2 A cut Lemma 26. + Corollary 26.6 Let f be a flow
More informationMaximum Flow. Jie Wang. University of Massachusetts Lowell Department of Computer Science. J. Wang (UMass Lowell) Maximum Flow 1 / 27
Maximum Flow Jie Wang University of Massachusetts Lowell Department of Computer Science J. Wang (UMass Lowell) Maximum Flow 1 / 27 Flow Networks A flow network is a weighted digraph G = (V, E), where the
More informationFast and Simple Approximation Algorithms for Generalized Flow
Fast and Simple Approximation Algorithms for Generalized Flow (flow with losses and gains) Kevin Wayne Princeton University www.cs.princeton.edu/ wayne (with Lisa Fleischer) γ =3/4 40 v w 30 Fast and Simple
More informationDesign and Analysis of Algorithms
CSE 0, Winter 08 Design and Analysis of Algorithms Lecture 8: Consolidation # (DP, Greed, NP-C, Flow) Class URL: http://vlsicad.ucsd.edu/courses/cse0-w8/ Followup on IGO, Annealing Iterative Global Optimization
More informationStochas(c Dual Ascent Linear Systems, Quasi-Newton Updates and Matrix Inversion
Stochas(c Dual Ascent Linear Systems, Quasi-Newton Updates and Matrix Inversion Peter Richtárik (joint work with Robert M. Gower) University of Edinburgh Oberwolfach, March 8, 2016 Part I Stochas(c Dual
More informationAlgorithms: COMP3121/3821/9101/9801
NEW SOUTH WALES Algorithms: COMP32/382/90/980 Aleks Ignjatović School of Computer Science and Engineering University of New South Wales LECTURE 7: MAXIMUM FLOW COMP32/382/90/980 / 24 Flow Networks A flow
More informationACO Comprehensive Exam March 20 and 21, Computability, Complexity and Algorithms
1. Computability, Complexity and Algorithms Part a: You are given a graph G = (V,E) with edge weights w(e) > 0 for e E. You are also given a minimum cost spanning tree (MST) T. For one particular edge
More informationCSC373: Algorithm Design, Analysis and Complexity Fall 2017 DENIS PANKRATOV NOVEMBER 1, 2017
CSC373: Algorithm Design, Analysis and Complexity Fall 2017 DENIS PANKRATOV NOVEMBER 1, 2017 Linear Function f: R n R is linear if it can be written as f x = a T x for some a R n Example: f x 1, x 2 =
More information- Well-characterized problems, min-max relations, approximate certificates. - LP problems in the standard form, primal and dual linear programs
LP-Duality ( Approximation Algorithms by V. Vazirani, Chapter 12) - Well-characterized problems, min-max relations, approximate certificates - LP problems in the standard form, primal and dual linear programs
More informationComputational Integer Programming. Lecture 2: Modeling and Formulation. Dr. Ted Ralphs
Computational Integer Programming Lecture 2: Modeling and Formulation Dr. Ted Ralphs Computational MILP Lecture 2 1 Reading for This Lecture N&W Sections I.1.1-I.1.6 Wolsey Chapter 1 CCZ Chapter 2 Computational
More informationQuantum expanders from any classical Cayley graph expander
Quantum expanders from any classical Cayley graph expander arxiv:0709.1142 Aram Harrow (Bristol) QIP 08 19 Dec 2007 outline Main result. Definitions. Proof of main result. Applying the recipe: examples
More informationFlows. Chapter Circulations
Chapter 4 Flows For a directed graph D = (V,A), we define δ + (U) := {(u,v) A : u U,v / U} as the arcs leaving U and δ (U) := {(u,v) A u / U,v U} as the arcs entering U. 4. Circulations In a directed graph
More informationExposition of the Dinitz algorithm
Exposition of the Dinitz algorithm Yefim Dinitz and Avraham A. Melkman Department of Computer Science Ben Gurion University of the Negev, 84105 Beer-Sheva, Israel {dinitz,melkman}@cs.bgu.ac.il June 6,
More informationLecture Introduction. 2 Brief Recap of Lecture 10. CS-621 Theory Gems October 24, 2012
CS-62 Theory Gems October 24, 202 Lecture Lecturer: Aleksander Mądry Scribes: Carsten Moldenhauer and Robin Scheibler Introduction In Lecture 0, we introduced a fundamental object of spectral graph theory:
More informationPreliminaries. Graphs. E : set of edges (arcs) (Undirected) Graph : (i, j) = (j, i) (edges) V = {1, 2, 3, 4, 5}, E = {(1, 3), (3, 2), (2, 4)}
Preliminaries Graphs G = (V, E), V : set of vertices E : set of edges (arcs) (Undirected) Graph : (i, j) = (j, i) (edges) 1 2 3 5 4 V = {1, 2, 3, 4, 5}, E = {(1, 3), (3, 2), (2, 4)} 1 Directed Graph (Digraph)
More informationChapter 10. Maximum flow
Chapter 10 Maximum flow An s t flow is defined as a nonnegative real-valued function on the arcs of a digraph satisfying the flow conservation law at each vertex s, t. In this chapter we consider the problem
More informationA Quantum Interior Point Method for LPs and SDPs
A Quantum Interior Point Method for LPs and SDPs Iordanis Kerenidis 1 Anupam Prakash 1 1 CNRS, IRIF, Université Paris Diderot, Paris, France. September 26, 2018 Semi Definite Programs A Semidefinite Program
More informationFriday Four Square! Today at 4:15PM, Outside Gates
P and NP Friday Four Square! Today at 4:15PM, Outside Gates Recap from Last Time Regular Languages DCFLs CFLs Efficiently Decidable Languages R Undecidable Languages Time Complexity A step of a Turing
More informationapproximation algorithms I
SUM-OF-SQUARES method and approximation algorithms I David Steurer Cornell Cargese Workshop, 201 meta-task encoded as low-degree polynomial in R x example: f(x) = i,j n w ij x i x j 2 given: functions
More informationMaximum Skew-Symmetric Flows. September Abstract
Maximum Skew-Symmetric Flows Andrew V. Goldberg NEC Research Institute 4 Independence Way Princeton, NJ 08540 avg@research.nj.nec.com Alexander V. Karzanov Institute for Systems Analysis 9, Prospect 60
More informationCS 6140: Machine Learning Spring What We Learned Last Week 2/26/16
Logis@cs CS 6140: Machine Learning Spring 2016 Instructor: Lu Wang College of Computer and Informa@on Science Northeastern University Webpage: www.ccs.neu.edu/home/luwang Email: luwang@ccs.neu.edu Sign
More information15-850: Advanced Algorithms CMU, Fall 2018 HW #4 (out October 17, 2018) Due: October 28, 2018
15-850: Advanced Algorithms CMU, Fall 2018 HW #4 (out October 17, 2018) Due: October 28, 2018 Usual rules. :) Exercises 1. Lots of Flows. Suppose you wanted to find an approximate solution to the following
More informationUndirected Graphs. V = { 1, 2, 3, 4, 5, 6, 7, 8 } E = { 1-2, 1-3, 2-3, 2-4, 2-5, 3-5, 3-7, 3-8, 4-5, 5-6 } n = 8 m = 11
Undirected Graphs Undirected graph. G = (V, E) V = nodes. E = edges between pairs of nodes. Captures pairwise relationship between objects. Graph size parameters: n = V, m = E. V = {, 2, 3,,,, 7, 8 } E
More informationLecture 10: October 27, 2016
Mathematical Toolkit Autumn 206 Lecturer: Madhur Tulsiani Lecture 0: October 27, 206 The conjugate gradient method In the last lecture we saw the steepest descent or gradient descent method for finding
More informationU.C. Berkeley CS294: Spectral Methods and Expanders Handout 11 Luca Trevisan February 29, 2016
U.C. Berkeley CS294: Spectral Methods and Expanders Handout Luca Trevisan February 29, 206 Lecture : ARV In which we introduce semi-definite programming and a semi-definite programming relaxation of sparsest
More informationDantzig s pivoting rule for shortest paths, deterministic MDPs, and minimum cost to time ratio cycles
Dantzig s pivoting rule for shortest paths, deterministic MDPs, and minimum cost to time ratio cycles Thomas Dueholm Hansen 1 Haim Kaplan Uri Zwick 1 Department of Management Science and Engineering, Stanford
More informationResource Constrained Project Scheduling Linear and Integer Programming (1)
DM204, 2010 SCHEDULING, TIMETABLING AND ROUTING Lecture 3 Resource Constrained Project Linear and Integer Programming (1) Marco Chiarandini Department of Mathematics & Computer Science University of Southern
More informationIntroduction to Linear and Combinatorial Optimization (ADM I)
Introduction to Linear and Combinatorial Optimization (ADM I) Rolf Möhring based on the 20011/12 course by Martin Skutella TU Berlin WS 2013/14 1 General Remarks new flavor of ADM I introduce linear and
More informationLecture 13 Spectral Graph Algorithms
COMS 995-3: Advanced Algorithms March 6, 7 Lecture 3 Spectral Graph Algorithms Instructor: Alex Andoni Scribe: Srikar Varadaraj Introduction Today s topics: Finish proof from last lecture Example of random
More informationINVERSE SPANNING TREE PROBLEMS: FORMULATIONS AND ALGORITHMS
INVERSE SPANNING TREE PROBLEMS: FORMULATIONS AND ALGORITHMS P. T. Sokkalingam Department of Mathematics Indian Institute of Technology, Kanpur-208 016, INDIA Ravindra K. Ahuja Dept. of Industrial & Management
More informationNetwork Flows. CTU FEE Department of control engineering. March 28, 2017
Network Flows Zdeněk Hanzálek, Přemysl Šůcha hanzalek@fel.cvut.cz CTU FEE Department of control engineering March 28, 2017 Z. Hanzálek (CTU FEE) Network Flows March 28, 2017 1 / 44 Table of contents 1
More informationNetwork Flows made simple
Network Flows made simple A mild but rigorous introduction to Network Flows Periklis A. Papakonstantinou York University Network Flows is the last algorithmic paradigm we consider. Actually, we only address
More informationLecture 3. 1 Polynomial-time algorithms for the maximum flow problem
ORIE 633 Network Flows August 30, 2007 Lecturer: David P. Williamson Lecture 3 Scribe: Gema Plaza-Martínez 1 Polynomial-time algorithms for the maximum flow problem 1.1 Introduction Let s turn now to considering
More informationWe say that a flow is feasible for G (or just feasible if the graph and capacity function in question are obvious) if
CS787: Advanced Algorithms Lecture 4: Network Flow We devote this lecture to the network flow problem and the max-flow min-cut theorem. A number of other problems can be cast into a maximum flow or minimum
More informationNP-complete problems. CSE 101: Design and Analysis of Algorithms Lecture 20
NP-complete problems CSE 101: Design and Analysis of Algorithms Lecture 20 CSE 101: Design and analysis of algorithms NP-complete problems Reading: Chapter 8 Homework 7 is due today, 11:59 PM Tomorrow
More informationCargèse Nisheeth K. Vishnoi
Cargèse 2015 Nisheeth K. Vishnoi i Preface These notes are intended for the attendees of the Sixth Cargèse Workshop on Combinatorial Optimization to accompany the lectures delivered by the author in the
More informationOptimisation and Operations Research
Optimisation and Operations Research Lecture 22: Linear Programming Revisited Matthew Roughan http://www.maths.adelaide.edu.au/matthew.roughan/ Lecture_notes/OORII/ School
More informationIterative solvers for linear equations
Spectral Graph Theory Lecture 23 Iterative solvers for linear equations Daniel A. Spielman November 26, 2018 23.1 Overview In this and the next lecture, I will discuss iterative algorithms for solving
More informationLecture Approximate Potentials from Approximate Flow
ORIE 6334 Spectral Graph Theory October 20, 2016 Lecturer: David P. Williamson Lecture 17 Scribe: Yingjie Bi 1 Approximate Potentials from Approximate Flow In the last lecture, we presented a combinatorial
More information10 Max-Flow Min-Cut Flows and Capacitated Graphs 10 MAX-FLOW MIN-CUT
10 Max-Flow Min-Cut 10.1 Flows and Capacitated Graphs Previously, we considered weighted graphs. In this setting, it was natural to thinking about minimizing the weight of a given path. In fact, we considered
More information