Maximum Matching in the Online Batch-Arrival Model

Slides:



Advertisements
Similar presentations
The Primal-Dual Method: Steiner Forest TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AA A A AA A A A AA A A.
Advertisements

Min-Max Relations, Hall’s Theorem, and Matching-Algorithms Graphs & Algorithms Lecture 5 TexPoint fonts used in EMF. Read the TexPoint manual before you.
C&O 355 Lecture 23 N. Harvey TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: A A A A A A A A A A.
Poly-Logarithmic Approximation for EDP with Congestion 2
1 LP Duality Lecture 13: Feb Min-Max Theorems In bipartite graph, Maximum matching = Minimum Vertex Cover In every graph, Maximum Flow = Minimum.
1 SOFSEM 2007 Weighted Nearest Neighbor Algorithms for the Graph Exploration Problem on Cycles Eiji Miyano Kyushu Institute of Technology, Japan Joint.
GRAPH BALANCING. Scheduling on Unrelated Machines J1 J2 J3 J4 J5 M1 M2 M3.
Bipartite Matching, Extremal Problems, Matrix Tree Theorem.
Approximation Algorithms Chapter 14: Rounding Applied to Set Cover.
Totally Unimodular Matrices
Lecture 24 Coping with NPC and Unsolvable problems. When a problem is unsolvable, that's generally very bad news: it means there is no general algorithm.
Primal-Dual Algorithms for Connected Facility Location Chaitanya SwamyAmit Kumar Cornell University.
Approximating Maximum Subgraphs Without Short Cycles Guy Kortsarz Join work with Michael Langberg and Zeev Nutov.
MATCHING WITH COMMITMENTS Joint work with Kevin Costello and Prasad Tetali China Theory Week 2011 Pushkar Tripathi Georgia Institute of Technology.
1 Online and Stochastic Survivable Network Design Ravishankar Krishnaswamy Carnegie Mellon University joint work with Anupam Gupta and R. Ravi.
Online Stochastic Matching Barna Saha Vahid Liaghat.
Semidefinite Programming
1 Approximation Algorithms for Demand- Robust and Stochastic Min-Cut Problems Vineet Goyal Carnegie Mellon University Based on, [Golovin, G, Ravi] (STACS’06)
CPSC 689: Discrete Algorithms for Mobile and Wireless Systems Spring 2009 Prof. Jennifer Welch.
Primal Dual Method Lecture 20: March 28 primaldual restricted primal restricted dual y z found x, succeed! Construct a better dual.
Perfect Graphs Lecture 23: Apr 17. Hard Optimization Problems Independent set Clique Colouring Clique cover Hard to approximate within a factor of coding.
A general approximation technique for constrained forest problems Michael X. Goemans & David P. Williamson Presented by: Yonatan Elhanani & Yuval Cohen.
Robust Network Design with Exponential Scenarios By: Rohit Khandekar Guy Kortsarz Vahab Mirrokni Mohammad Salavatipour.
Computability and Complexity 24-1 Computability and Complexity Andrei Bulatov Approximation.
Job Scheduling Lecture 19: March 19. Job Scheduling: Unrelated Multiple Machines There are n jobs, each job has: a processing time p(i,j) (the time to.
On Stochastic Minimum Spanning Trees Kedar Dhamdhere Computer Science Department Joint work with: Mohit Singh, R. Ravi (IPCO 05)
Primal-Dual Algorithms for Connected Facility Location Chaitanya SwamyAmit Kumar Cornell University.
1 Introduction to Approximation Algorithms Lecture 15: Mar 5.
(work appeared in SODA 10’) Yuk Hei Chan (Tom)
A General Approach to Online Network Optimization Problems Seffi Naor Computer Science Dept. Technion Haifa, Israel Joint work: Noga Alon, Yossi Azar,
Approximation Algorithms: Bristol Summer School 2008 Seffi Naor Computer Science Dept. Technion Haifa, Israel TexPoint fonts used in EMF. Read the TexPoint.
C&O 355 Mathematical Programming Fall 2010 Lecture 17 N. Harvey TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AA A.
Approximation Algorithms for Stochastic Combinatorial Optimization Part I: Multistage problems Anupam Gupta Carnegie Mellon University.
V. V. Vazirani. Approximation Algorithms Chapters 3 & 22
Approximation Algorithms for NP-hard Combinatorial Problems Magnús M. Halldórsson Reykjavik University
C&O 355 Mathematical Programming Fall 2010 Lecture 19 N. Harvey TexPoint fonts used in EMF. Read the TexPoint manual before you delete this box.: AA A.
APPROXIMATION ALGORITHMS VERTEX COVER – MAX CUT PROBLEMS
1 Introduction to Approximation Algorithms. 2 NP-completeness Do your best then.
Batch Scheduling of Conflicting Jobs Hadas Shachnai The Technion Based on joint papers with L. Epstein, M. M. Halldórsson and A. Levin.
Approximation Algorithms
Multicommodity flow, well-linked terminals and routing problems Chandra Chekuri Lucent Bell Labs Joint work with Sanjeev Khanna and Bruce Shepherd Mostly.
CS425: Algorithms for Web Scale Data Most of the slides are from the Mining of Massive Datasets book. These slides have been modified for CS425. The original.
Non-Preemptive Buffer Management for Latency Sensitive Packets Moran Feldman Technion Seffi Naor Technion.
11 -1 Chapter 12 On-Line Algorithms On-Line Algorithms On-line algorithms are used to solve on-line problems. The disk scheduling problem The requests.
Approximation Algorithms Greedy Strategies. I hear, I forget. I learn, I remember. I do, I understand! 2 Max and Min  min f is equivalent to max –f.
Introduction to Approximation Algorithms
Lap Chi Lau we will only use slides 4 to 19
Hans Bodlaender, Marek Cygan and Stefan Kratsch
Topics in Algorithms Lap Chi Lau.
Approximate Matchings in Dynamic Graph Streams
Combinatorial Optimization Under Uncertainty
The Price of information in combinatorial optimization
Chapter 5. Optimal Matchings
Instructor: Shengyu Zhang
Edmonds-Karp Algorithm
Analysis of Algorithms
Graph Partitioning Problems
Dynamic and Online Algorithms for Set Cover
Coverage Approximation Algorithms
(22nd August, 2018) Sahil Singla
Linear Programming and Approximation
Approximation Algorithms
Linear Programming Duality, Reductions, and Bipartite Matching
Problem Solving 4.
The Byzantine Secretary Problem
Optimization Problems Online with Random Demands
the k-cut problem better approximate and exact algorithms
Non-clairvoyant Precedence Constrained Scheduling
Lecture 24 Vertex Cover and Hamiltonian Cycle
Presentation transcript:

Maximum Matching in the Online Batch-Arrival Model 26th June, 2017 Sahil Singla (Carnegie Mellon University) Joint work with Euiwoong Lee

Two-Stage matching problem Graph Edges Appears in Two Batches/ Stages 𝐆= 𝐆 (𝟏) ∪ 𝐆 (𝟐) 𝐆 (𝟏) Appears in Stage 1 Pick Matching 𝐗 (𝟏) in 𝐆 (𝟏) (Unknown 𝐆 (𝟐) ) Unselected Edges Disappear 𝐆 (𝟐) Appears in Stage 2 Select 𝐗 (𝟐) in 𝐆 (𝟐) s.t. 𝐗 (𝟏) ∪ 𝐗 (𝟐) is a Matching Goal Maximize size of 𝐗 (𝟏) ∪ 𝐗 (𝟐) Competitive Ratio: Greedy is Half Competitive 𝐄[𝐀𝐋𝐆( 𝐆 (𝟏) , 𝐆 (𝟐) )] 𝐎𝐏𝐓( 𝐆 (𝟏) , 𝐆 (𝟐) ) Can we beat half?

The Z Graph Do we Pick Edge in 𝐆 (𝟏) ? Fractional Matching? 𝐆 (𝟏) Graph Appears in Two Batches 𝐆= 𝐆 (𝟏) ∪ 𝐆 (𝟐) 𝐆 (𝟏) Appears Pick Matching 𝐗 (𝟏) in 𝐆 (𝟏) (Unknown 𝐆 (𝟐) ) Unselected Edges Disappear 𝐆 (𝟐) Appears Select 𝐗 (𝟐) in 𝐆 (𝟐) s.t. 𝐗 (𝟏) ∪ 𝐗 (𝟐) is a Matching Goal Maximize size of 𝐗 (𝟏) ∪ 𝐗 (𝟐) 𝐆 (𝟏) Do we Pick Edge in 𝐆 (𝟏) ? Pick w.p. 2 3 Case 1: E[Alg]= 2 3 & OPT=1 Case 2: E[Alg]= 2 3 + 1 3 ∗2 & OPT=2 Fractional Matching? Easier than Integral 𝐆 (𝟐) 𝐆 (𝟐) or Case 1 Case 2

Our results Theorem 1: For Two-Stage Integral Bipartite Matching, There Exists a 𝟐 𝟑 Competitive Tight Algorithm. Theorem 2: For Two-Stage Fractional Bipartite Matching, There Exists an Instance Optimal Competitive Algorithm. Instance Optimal: Given 𝐆 (𝟏) returns 𝛼 s.t. Gets 𝛼⋅𝑶𝑷𝑻 for every 𝐆 (𝟐) For every Alg, ∃ 𝐆 (𝟐) where ALG ≤𝛼⋅𝑶𝑷𝑻

Prior Work Online Arrival Semi-Streaming Arrival Single arrival in each step (linear # stages) Immediate & Irrevocable decisions Vertex Arrival or Edge Arrival Semi-Streaming Arrival O (n) decisions postponed Two-Stage Stochastic Optimization Costs change every stage Arrival from a known distribution

OUTLINE Multi-Stage Matching Examples & Special Cases Proof Idea: Fractional Bipartite Matching Proof Idea: Integral Bipartite Matching Extensions and Open Problems

Randomly Pick Max Matching? Find a Max Matching in 𝐆 (𝟏) Pick it Randomly, and Nothing Otherwise What if Multiple Max Matchings? Which one to pick? With how much probability? Graphs Known Where For Every Max Matching 𝐌, Randomly Picking 𝐌 gives < 𝟐 𝟑 𝐆 (𝟏) 𝐆 (𝟐)

𝐆 (𝟏) has A Perfect Matching Suppose 𝐆 (𝟏) has a Perfect Matching M Every vertex with an incident edge in 𝐆 (𝟏) is matched in M Pick M w.p. 𝟐 𝟑 , and Nothing Otherwise Optimally Augment in Stage 2 How to Prove ? Lemma: Above algorithm is 𝟐 𝟑 Competitive for Two- Stage Integral Bipartite Matching.

Primal-Dual Framework Offline Bipartite Matching LP 𝑢,𝑣 ∈𝐸 𝑥 𝑢𝑣 𝑣∈𝑛𝑏𝑟(𝑢) 𝑥 𝑢𝑣 ≤1 𝑥 𝑢𝑣 ≥0 𝑢∈𝑉 𝑦 𝑢 𝑦 𝑢 + 𝑦 𝑣 ≥1 𝑦 𝑢 ≥0 max min s.t. s.t. ∀ 𝑢∈𝑉 ∀ 𝑢,𝑣 ∈𝐸 ∀ 𝑢,𝑣 ∈𝐸 ∀ 𝑢∈𝑉 Opt Solution Certificate For 𝒙 Show feasible 𝒚 s.t. ∑ 𝑥 𝑢𝑣 =∑ 𝑦 𝑢 𝛼-Approx Solution Certificate For 𝒙 Show 𝜶-feasible 𝒚 s.t. ∑ 𝑥 𝑢𝑣 =∑ 𝑦 𝑢 i.e., 𝑦 𝑢 + 𝑦 𝑣 ≥𝛼

𝐆 (𝟏) has A Perfect Matching ALGORITHM Pick M w.p. 2 3 , & Optimally Augment in Stage 2 Set 𝑋 𝑢𝑣 (1) = 1 when (𝑢,𝑣) is picked in Stage 1 Set 𝑋 𝑢𝑣 (2) = 1 when (𝑢,𝑣) is picked in Stage 2 Set 𝑥 𝑢𝑣 ≜𝐸 𝑋 𝑢𝑣 1 +𝐸 𝑋 𝑢𝑣 2 Lemma: Above algorithm is 𝟐 𝟑 Competitive. Certificate: 𝒚 s.t. ∑ 𝑥 𝑢𝑣 =∑ 𝑦 𝑢 & 𝑦 𝑢 + 𝑦 𝑣 ≥ 2 3 Set 𝑌 𝑢 (1) = 1 2 when 𝑢 matched in Stage 1 Set 𝑌 𝒖 (𝟐) to be optimal vertex cover for Stage 2, where ∑ 𝑋 𝑢𝑣 (2) = ∑𝑌 𝑢 (2) Set 𝑦 𝑢 ≜𝐸 𝑌 𝑢 1 +𝐸 𝑌 𝑢 2

𝐆 (𝟏) has A Perfect Matching Analysis ∑ 𝒙 𝒖𝒗 =∑ 𝒚 𝒖 : Since ∑ 𝑋 𝑢𝑣 1 +∑ 𝑋 𝑢𝑣 (2) =∑ 𝑌 𝑢 (1) + ∑𝑌 𝑢 (2) 𝟐 𝟑 -Feasibility: Case analysis ∀ 𝑢,𝑣 ∈𝐄, 𝑦 𝑢 + 𝑦 𝑣 ≥ 2 3 Both in 𝐆 (𝟏) : 𝐸 𝑌 𝑢 1 +𝐸 𝑌 𝑣 1 ≥ 2 3 ∗( 1 2 + 1 2 ) Both not in 𝐆 (𝟏) : 𝐸 𝑌 𝑢 2 +𝐸 𝑌 𝑣 2 ≥1 Only 𝑢 in 𝐆 (𝟏) : 𝐸 𝑌 𝑢 1 +𝐸 𝑌 𝑢 2 + 𝑌 𝑣 2 ≥ 2 3 ∗ 1 2 + 1 3 ∗1 Q.E.D.

OUTLINE Multi-Stage Matching Examples & Special Cases Proof Idea: Fractional Bipartite Matching Proof Idea: Integral Bipartite Matching Extensions and Open Problems

Two-Stage Fractional Matching Theorem 2: For Two-Stage Fractional Bipartite Matching, There Exists an Instance Optimal Competitive Algorithm. Proof Idea: Construct an LP on 𝐆 (𝟏) that maximizes 𝛼 Gets 𝛼⋅𝑶𝑷𝑻 for every 𝐆 (𝟐) For every ALG, ∃ 𝐆 (𝟐) where ALG ≤𝛼⋅𝑶𝑷𝑻 Here 𝑶𝑷𝑻 ≜ OPT( 𝐆 (𝟏) , 𝐆 (𝟐) )

A New LP Ques: Is 𝛼≥ 𝟐 𝟑 ? max 𝛼 𝑓 𝑢 ≤1 𝑦 𝑢 + 𝑦 𝑣 ≥𝛼 𝑥 𝑢𝑣 , 𝑦 𝑢 ≥0 𝑢,𝑣 ∈𝐸 𝑥 𝑢𝑣 = 𝑢∈𝑉 𝑦 𝑢 Instance Optimality: Gets 𝛼⋅𝑶𝑷𝑻 for every 𝐆 (𝟐) For every ALG, ∃ 𝐆 (𝟐) where ALG ≤𝛼⋅𝑶𝑷𝑻 s.t. ∀ 𝑢∈𝑉 ∀ 𝑢,𝑣 ∈𝐸 𝑓 𝑢 ≜ 𝑣∈𝑛𝑏𝑟(𝑢) 𝑥 𝑢𝑣 Let ≤1−𝑓 𝑢 Ques: Is 𝛼≥ 𝟐 𝟑 ? 𝑦 𝑢 ≥ 𝑓 𝑢 −(1−𝛼) ∀ 𝑢∈𝑉

OUTLINE Multi-Stage Matching Examples & Special Cases Proof Idea: Fractional Bipartite Matching Proof Idea: Integral Bipartite Matching Extensions and Open Problems

𝐆 (𝟏) is 𝜶 Expanding Suppose 𝐆 (𝟏) is 𝜶 Expanding Algorithm Analysis Here 𝜶≤𝟏 Suppose 𝐆 (𝟏) is 𝜶 Expanding Every S ′ ⊆𝑆 has 𝑆′ /𝛼 neighbors Can pick a random matching 𝐌 s.t. ∀u∈𝑆 & ∀𝑣∈𝑇 we have 𝑃𝑟 𝑢∈𝐌 =1 & 𝑃𝑟 𝑣∈𝐌 =𝛼 𝑇 𝑆 Algorithm Pick M w.p. 1− 𝛼 3 , & Optimally Augment in Stage 2 Analysis Set 𝑌 𝑢 1 =1−𝜖 & 𝑌 𝑣 1 =𝜖 for 𝜖= 2−𝛼 3−𝛼 when (𝑢,𝑣) picked For any 𝐆 (𝟐) case-by-case show for every edge (𝑢,𝑣) 𝑦 𝑢 + 𝑦 𝑣 ≥ 2 3

Two-Stage Integral Matching Theorem 1: For Two-Stage Integral Bipartite Matching, There Exists a 𝟐 𝟑 Competitive Tight Algorithm. Algorithm: Construct a Matching Skeleton of 𝑮 (𝟏) Partition into several 𝜶 Expanding Bipartite Subgraphs Randomly Pick a Max Matching in each Bipartite Subgraph Optimally Augment in Stage 2 Proof: Show ∃𝒚 s.t. ∑ 𝑥 𝑢𝑣 =∑ 𝑦 𝑢 where 𝑥 𝑢𝑣 =𝐸[ 𝑋 𝑢𝑣 ] 𝑦 𝑢 + 𝑦 𝑣 ≥ 2 3 for every edge (𝑢,𝑣)

Bipartite Matching Skeleton Goel-Kapralov-Khanna Decompose 𝐆 (𝟏) into ( 𝑆 𝑗 , 𝑇 𝑗 ) 𝑆 𝑗 , 𝑇 𝑗 is 𝜶 𝒋 expanding, where 𝛼 𝑗 ≤1 No edge 𝑇 𝑗 to 𝑇 𝑘 No edge 𝑆 𝑗 to 𝑇 𝑘 for 𝛼 𝑗 > 𝛼 𝑘 Algorithm Select 𝑟 uniformly [0,1] ∀𝑗 pick 𝐌 𝒋 if 𝑟<1− 𝛼 𝑗 3 Analysis Set 𝑌 𝑢 1 =1− 𝜖 𝑗 & 𝑌 𝑣 1 = 𝜖 𝑗 for 𝜖 𝑗 = 2− 𝛼 𝑗 3− 𝛼 𝑗 For any 𝐆 (𝟐) show for every edge (𝑢,𝑣) 𝑦 𝑢 + 𝑦 𝑣 ≥ 2 3 Algorithm : Construct a Matching Skeleton of 𝑮 (𝟏) Randomly pick a Max Matching in each bipartite subgraph Optimally augment in Stage 2 𝑇 2 𝑆 2 𝑇 1 𝑆 1 𝑇 0 𝑆 0 𝛼 0 =1 𝑆 −1 𝑇 −1 𝑆 −2 𝑇 −2

OUTLINE Multi-Stage Matching Examples & Special Cases Proof Idea: Fractional Bipartite Matching Proof Idea: Integral Bipartite Matching Extensions and Open Problems

Extensions Theorem 3: For Two-Stage Fractional General Matching, There Exists a 𝟑 𝟓 Competitive Algorithm. Theorem 4: For s-Stage Integral General Matching, There Exists a 𝟏 𝟐 + 𝟏 𝟐 𝑶(𝐬) Competitive Algorithm.

General Matching Skeleton Edmonds-Gallai Decomposition Proof Idea: Run Bipartite Algo for 𝑨∪𝑪∪𝒏𝒃𝒓′(𝑨) Pick Matching in 𝑫 synchronously with 𝒏𝒃𝒓′ 𝑨 Distribute duals to vertices & odd-components Show for any 𝑮 (𝟐) : 𝑦 𝑢 + 𝑦 𝑣 ≥ 3 5 for every 𝑢,𝑣 ∈𝐸 𝒏𝒃𝒓′(𝑨) has ≤1 vertex from each odd component

Open Problems Problem 1: For s-Stage Integral Bipartite Matching, Does There Exist an Algorithm That Beats Half by a Constant? Problem 2: For Two-Stage Integral General Matching, What is the Tight Competitive Ratio? We showed it’s > 1 2 and < 2 3

Open Problems Problem 3: Any Natural Online Problem With 𝐨(𝐬) Competitive Algorithm in s-Stage Online-Batch Arrival Model? Not True For Online Set Cover Online Facility Location Online Steiner Tree Unrelated Load Balancing (makespan minimization)

summary Questions? Fractional Bipartite Matching Instance optimal for two stages Integral Bipartite Matching 2 3 competitive for two-stages Integral General Matching 1 2 + 1 2 𝑂(s) competitive for s-stage s Open Problems Beat half for linear # stages? Other interesting multistage problems? Questions?

references L. Epstein, A. Levin, D. Segev, and O. Weimann. Improved bounds for online preemptive matching. STACS’13 A. Goel, M. Kapralov, and S. Khanna. `On the communication and streaming complexity of maximum bipartite matching’. SODA’12 D. Golovin, V. Goyal, V. Polishchuk, R. Ravi, and M. Sysikaski. `Improved approximations for two-stage min-cut and shortest path problems under uncertainty’. Math Prog’15 R. M. Karp, U. V. Vazirani, and V. V. Vazirani. `An optimal algorithm for on-line bipartite matching’. STOC’90 L. Lovasz and M. D. Plummer. `Matching Theory’. Ann Disc Math’86 A. Mehta. `Online matching and ad allocation’. TCS’12. C. Swamy and D. B. Shmoys. `Approximation algorithms for 2-stage stochastic optimization problems’. SIGACT’06