Dynamic and Online Algorithms for Set Cover

Slides:



Advertisements
Similar presentations
Iterative Rounding and Iterative Relaxation
Advertisements

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.
Set Cover 資工碩一 簡裕峰. Set Cover Problem 2.1 (Set Cover) Given a universe U of n elements, a collection of subsets of U, S ={S 1,…,S k }, and a cost.
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.
Approximation Algorithms Chapter 14: Rounding Applied to Set Cover.
Approximation Algorithms for Capacitated Set Cover Ravishankar Krishnaswamy (joint work with Nikhil Bansal and Barna Saha)
Private Approximation of Search Problems Amos Beimel Paz Carmi Kobbi Nissim Enav Weinreb Ben Gurion University Research partially Supported by the Frankel.
Scheduling with Outliers Ravishankar Krishnaswamy (Carnegie Mellon University) Joint work with Anupam Gupta, Amit Kumar and Danny Segev.
1 Better Scalable Algorithms for Broadcast Scheduling Ravishankar Krishnaswamy Carnegie Mellon University Joint work with Nikhil Bansal and Viswanath Nagarajan.
1 Online and Stochastic Survivable Network Design Ravishankar Krishnaswamy Carnegie Mellon University joint work with Anupam Gupta and R. Ravi.
Algorithms for Max-min Optimization
Instructor Neelima Gupta Table of Contents Lp –rounding Dual Fitting LP-Duality.
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.
Approximation Algorithm: Iterative Rounding Lecture 15: March 9.
Implicit Hitting Set Problems Richard M. Karp Harvard University August 29, 2011.
A general approximation technique for constrained forest problems Michael X. Goemans & David P. Williamson Presented by: Yonatan Elhanani & Yuval Cohen.
Approximation Algorithms
Online Oblivious Routing Nikhil Bansal, Avrim Blum, Shuchi Chawla & Adam Meyerson Carnegie Mellon University 6/7/2003.
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)
1 Introduction to Approximation Algorithms Lecture 15: Mar 5.
Finding a maximum independent set in a sparse random graph Uriel Feige and Eran Ofek.
(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.
1/24 Algorithms for Generalized Caching Nikhil Bansal IBM Research Niv Buchbinder Open Univ. Israel Seffi Naor Technion.
Approximation Algorithms for Stochastic Combinatorial Optimization Part I: Multistage problems Anupam Gupta Carnegie Mellon University.
Online Oblivious Routing Nikhil Bansal, Avrim Blum, Shuchi Chawla & Adam Meyerson Carnegie Mellon University 6/7/2003.
Throughput Competitive Online Routing Baruch Awerbuch Yossi Azar Serge Plotkin.
Approximation Algorithms for NP-hard Combinatorial Problems Magnús M. Halldórsson Reykjavik University
1 By: MOSES CHARIKAR, CHANDRA CHEKURI, TOMAS FEDER, AND RAJEEV MOTWANI Presented By: Sarah Hegab.
1 Introduction to Approximation Algorithms. 2 NP-completeness Do your best then.
Randomized Online Algorithm for Minimum Metric Bipartite Matching Adam Meyerson UCLA.
Approximation Algorithms Department of Mathematics and Computer Science Drexel University.
Private Approximation of Search Problems Amos Beimel Paz Carmi Kobbi Nissim Enav Weinreb (Technion)
Online Social Networks and Media
Linear Program Set Cover. Given a universe U of n elements, a collection of subsets of U, S = {S 1,…, S k }, and a cost function c: S → Q +. Find a minimum.
Implicit Hitting Set Problems Richard M. Karp Erick Moreno Centeno DIMACS 20 th Anniversary.
Submodular Maximization with Cardinality Constraints Moran Feldman Based On Submodular Maximization with Cardinality Constraints. Niv Buchbinder, Moran.
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.
Lecture.6. Table of Contents Lp –rounding Dual Fitting LP-Duality.
Matroids, Secretary Problems, and Online Mechanisms Nicole Immorlica, Microsoft Research Joint work with Robert Kleinberg and Moshe Babaioff.
1 Approximation Algorithms for Generalized Scheduling Problems Ravishankar Krishnaswamy Carnegie Mellon University joint work with Nikhil Bansal, Anupam.
Instructor: Shengyu Zhang 1. Offline algorithms Almost all algorithms we encountered in this course assume that the entire input is given all at once.
Approximation Algorithms by bounding the OPT Instructor Neelima Gupta
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.
Approximation Algorithms based on linear programming.
Online Bipartite Matching with Augmentations Presentation by Henry Lin Joint work with Kamalika Chaudhuri, Costis Daskalakis, and Robert Kleinberg.
Maximum Matching in the Online Batch-Arrival Model
The Price of information in combinatorial optimization
Chapter 5. Optimal Matchings
k-center Clustering under Perturbation Resilience
Analysis of Algorithms
Approximation and Kernelization for Chordal Vertex Deletion
Coverage Approximation Algorithms
On the effect of randomness on planted 3-coloring models
Approximation Algorithms
The Byzantine Secretary Problem
Online Algorithms via Projections set cover, paging, k-server
Optimization Problems Online with Random Demands
Alan Kuhnle*, Victoria G. Crawford, and My T. Thai
Randomized Online Algorithm for Minimum Metric Bipartite Matching
the k-cut problem better approximate and exact algorithms
Dynamic and Online Algorithms:
Dominating Set By Eric Wengert.
Submodular Maximization with Cardinality Constraints
Presentation transcript:

Dynamic and Online Algorithms for Set Cover Anupam Gupta Carnegie Mellon University Ravishankar Krishnaswamy (Microsoft India) Amit Kumar (IIT Delhi) and Debmalya Panigrahi (Duke)

online algorithms and competitive analysis At any time 𝑡, maintain a solution for the current input past decisions are irrevocable solution should be comparable to the best offline algorithm which knows the input till time 𝑡. Competitive ratio of an on-line algorithm on input 𝜎 1 , 𝜎 2 , …, 𝜎 𝑡 , … sup 𝑡 cost of solution produced at time 𝑡 optimal solution cost for 𝜎 1 ,…, 𝜎 𝑡

online set cover 𝑒 5 𝑒 4 𝑒 3 𝑒 2 𝑒 1 Given collection of 𝑚 sets over 𝑛 elements At time 𝑡, new element 𝑒𝑡 arrives and reveals which sets it belongs to Want: At any time 𝑡, maintain set cover on revealed elements Goal: Minimize cost of set cover. Theorem: cost(algorithm) ≤ O(log m log 𝑛) × OPT( 𝑒 1 , …, 𝑒𝑛) Matching lower bound on deterministic algos. [Alon Awerbuch Azar Buchbinder Naor ‘05] Matching hardness for poly-time online algos. [Feige and Korman ‘08]

(dynamic) online algorithms At any time 𝑡, maintain a solution for the current input past decisions are irrevocable solution should be comparable to the best offline algorithm which knows the input till time 𝑡. Relax this requirement. Still compare to clairvoyant OPT. Measure number of changes (“recourse”) per arrival - e.g., at most O(1) changes per arrival (worst-case) - or, at most t changes over first t arrivals (amortized) Competitive ratio of an on-line algorithm on input 𝜎 1 , 𝜎 2 , …, 𝜎 𝑡 , … sup 𝑡 cost of solution produced at time 𝑡 optimal solution cost for 𝜎 1 ,…, 𝜎 𝑡 a.k.a. dynamic (graph) algorithms: traditionally measure the update time instead of #changes, we measure recourse. traditionally focused on (exact) graph algorithms, now for appox.algos too.

the model, formally at each time t, either an element 𝑒 𝑡 arrives (and tells us which sets it belongs to) or an existing element departs (and no longer needs to be covered) 𝐴 𝑡 = set of active elements at time t (elements added but not deleted) 𝑂𝑃 𝑇 𝑡 = optimal set cover for 𝐴 𝑡 Want: algorithm that maintains a feasible set cover 𝓢 𝑡 at all times competitive ratio: cost( 𝒮 𝑡 ) / cost(𝑂𝑃 𝑇 𝑡 ) (amortized) recourse: 1 𝑡 ⋅ 𝑡 | 𝒮 𝑡 − 𝒮 𝑡−1 | (amortized) update time.

our results (recourse) 𝑒 5 𝑒 4 𝑒 3 𝑒 2 𝑒 1 Classical Online model: competitive ratio 𝑂( log 𝑚 log⁡𝑛), tight in most respects Dynamic set cover: Theorem 1. Algorithm that is 𝑂( log 𝑛) competitive, with 𝑂 1 recourse (amortized). Theorem 2. Algorithm that is 𝑂(𝑓) competitive (randomized), with 𝑂 1 recourse (amortized). 𝑓 is the frequency = maximum number of sets containing an element e.g. vertex cover has 𝑓=2. The results extend to showing 𝑂( log 𝑛 𝑡 ) and 𝑂( 𝑓 𝑡 ) competitiveness.

our results (update time) 𝑒 5 𝑒 4 𝑒 3 𝑒 2 𝑒 1 Classical Online model: competitive ratio 𝑂( log 𝑚 log⁡𝑛), tight in most respects Dynamic set cover: Theorem 1b. Algorithm that is 𝑂( log 𝑛) competitive, with 𝑂 𝑓 log 𝑛 update time (amortized). Theorem 2b. Algorithm that is 𝑂( 𝑓 3 ) competitive (randomized), with 𝑂 𝑓 2 update time (amortized). Corollary: a deterministic 𝑂(1)-approximation for dynamic (weighted) vertex cover with 𝑂 1 update time. weighted: 2+𝜖 -approximation with 𝑂( 𝜖 −2 log 𝑛) -update time [Bhattacharya Henzinger Italiano] unweighted: maximal matchings with 𝑂(1) update time [Solomon] similar results in concurrent and independent work [Bhattacharya Chakrabarty Henzinger] Prior work

our results (recourse) 𝑒 5 𝑒 4 𝑒 3 𝑒 2 𝑒 1 Classical Online model: competitive ratio 𝑂( log 𝑚 log⁡𝑛), tight in most respects Dynamic set cover: Theorem 1. Algorithm that is 𝑂( log 𝑛) competitive, with 𝑂 1 recourse (amortized). Today: Measure recourse. Assume unit cost sets. Get O(log n) competitive with O(log n) recourse.

offline: the greedy algorithm Think of any solution as picking some sets assigning every element to some picked set (who is responsible for that element). Greedy: Iteratively pick set S with most yet-uncovered elements, assign them to S  (1 + ln n)-approx. very robust: if “current-best” set covers 𝑘 uncovered elements, pick some set covering Ω(𝑘) elements  lose only 𝑂(1) factor.

the online algorithm density = 3 density = 2 density = 2 density = 1 Universe of current points

the online algorithm density = 3 density = 2 density = 2 density = 1 𝑒 1 𝑒 2 𝑒 5 𝑒 3 𝑒 8 𝑒 4 𝑒 7 𝑒 6

the online algorithm 𝑒 6 density = 1 𝑒 3 𝑒 8 𝑒 4 𝑒 7 density = 2 𝑒 1 𝑒 2 𝑒 5 density [3,4] density [5,8]

the online algorithm 𝑒 6 density = 1 𝑒 3 𝑒 8 𝑒 4 𝑒 7 density = 2 𝑒 1 𝑒 2 𝑒 5 density [3,4] density [5,8] Unstable set S: set that contains ∈( 2 𝑖−1 ,2 𝑖 ] elements, all currently being covered at densities ≤ 2 𝑖−1 . E.g., suppose some set contains 𝑒 3 , 𝑒 6 and 𝑒 8 . Then it is unstable. Lemma: no unstable sets ⇒ solution is almost greedy ⇒ solution is O(log n)-approximate.

the online algorithm 𝑒 3 𝑒 6 𝑒 9 𝑒 9 𝑒 6 density = 1 𝑒 3 𝑒 8 𝑒 4 𝑒 7 𝑒 1 𝑒 2 𝑒 5 density [3,4] density [5,8] Suppose 𝑒 9 arrives. Cover it with any set containing it. Now green set is unstable. So add it in, and assign 𝑒 3 , 𝑒 6 , 𝑒 9 to it. Clean up, resettle sets at the right level.

overview of the analysis Invariant: element at level ≈ 2 𝑖 has 2(log⁡𝑛 – 𝑖) tokens When a new element arrives and not covered by current sets, pick any set that covers it, add it with density 1 If some unstable set exists, add it to the correct level, assign those elements to it. May cause other sets to lose elements, become lighter. They “float up” to the correct level. Cause other sets to become unstable, etc. Claim: system stabilizes. Also, O(log n) changes per arrival, amortized. Start each element with 2 log 𝑛 tokens Elements moving down lose 2 tokens use 1 to pay for new set Sets moving up lose ½ of their elements use their other token to pay for rising up* *minor cheating here.

a quick word about update time algorithms 𝑒 5 𝑒 4 𝑒 3 𝑒 2 𝑒 1 Classical Online model: competitive ratio 𝑂( log 𝑚 log⁡𝑛), tight in most respects Dynamic set cover: Theorem 2b. Algorithm that is 𝑂( 𝑓 3 ) competitive (randomized), with 𝑂 𝑓 2 update time (amortized). Corollary: a deterministic 𝑂(1)-approximation for dynamic (weighted) vertex cover with 𝑂 1 update time. sets = vertices edges = elements

dynamic vertex cover algorithms sets = vertices sit at various integer levels level(element/edge e) = highest level of set containing it 4 dual(e) = 2 − 𝑙𝑒𝑣𝑒𝑙(𝑒) … Every vertex should be (approx.) feasible for dual 1 𝑦(𝑒) ∈ 𝑐 𝑣 𝛽 , 𝛽𝑐 𝑣 So move vertices up/down as needed to satisfy this (approximately). [Bhattacharya Henzinger Italiano, … ]

new component of our analysis Analysis also uses tokens. When element (edge) arrives/departs give O(𝑓) tokens to each of its 𝑓 sets. 4 When vertex moves down, gives O(𝑓) tokens to neighbors at lower levels. … Asymmetric When vertex moves up, gives O(1) tokens to neighbors at lower levels. 1 Show that no set spends more than it receives….

so in summary… dynamically maintain basic approximation algorithms alternate view: for combinatorial optimization problems online, allowing bounded recourse can improve the competitive ratio qualitatively. Give 𝑂( min⁡(log 𝑛 , 𝑓)) competitive algorithms with O(1) changes per timestep (amortized) Give 𝑂( min⁡(log 𝑛 , 𝑓 3 )) competitive algorithms with 𝑂(𝑓 log 𝑛)+𝑂 𝑓 2 update time (amortized) Q: Do we need amortization? From the online perspective, no. Can maintain 𝑂(log⁡𝑛) competitive solution with O(1) changes per timestep. But need exponential time. Q: Maintain 𝑂 1 competitive fractional set cover solution with O(1) recourse? thanks!