Approximating Set Cover

Slides:



Advertisements
Similar presentations
The Comparison Test Let 0 a k b k for all k.. Mika Seppälä The Comparison Test Comparison Theorem A Assume that 0 a k b k for all k. If the series converges,
Advertisements

Inapproximability of Hypergraph Vertex-Cover. A k-uniform hypergraph H= : V – a set of vertices E - a collection of k-element subsets of V Example: k=3.
Approximation Algorithms Chapter 14: Rounding Applied to Set Cover.
Approximation, Chance and Networks Lecture Notes BISS 2005, Bertinoro March Alessandro Panconesi University La Sapienza of Rome.
Combinatorial Algorithms
Complexity ©D Moshkovitz 1 Approximation Algorithms Is Close Enough Good Enough?
Approximation Algorithms Chapter 5: k-center. Overview n Main issue: Parametric pruning –Technique for approximation algorithms n 2-approx. algorithm.
Parallel Scheduling of Complex DAGs under Uncertainty Grzegorz Malewicz.
Combinatorial Algorithms
PTAS for Bin-Packing. Special Cases of Bin Packing 1. All item sizes smaller than Claim 1: Proof: If then So assume Therefore:
Complexity 16-1 Complexity Andrei Bulatov Non-Approximability.
1 Discrete Structures & Algorithms Graphs and Trees: II EECE 320.
The Set Covering Prob.. Application Suppose X represents a set of skills that are needed to solve a problem and that we have a given set of people available.
1 Combinatorial Dominance Analysis The Knapsack Problem Keywords: Combinatorial Dominance (CD) Domination number/ratio (domn, domr) Knapsack (KP) Incremental.
(work appeared in SODA 10’) Yuk Hei Chan (Tom)
1 Approximation Algorithms. 2 Motivation By now we’ve seen many NP-Complete problems. We conjecture none of them has polynomial time algorithm.
The Theory of NP-Completeness 1. What is NP-completeness? Consider the circuit satisfiability problem Difficult to answer the decision problem in polynomial.
Approximation Algorithms
Computational Molecular Biology Non-unique Probe Selection via Group Testing.
1 Combinatorial Algorithms Parametric Pruning. 2 Metric k-center Given a complete undirected graph G = (V, E) with nonnegative edge costs satisfying the.
Chapter 9: Geometric Selection Theorems 11/01/2013
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.
Computational Molecular Biology Non-unique Probe Selection via Group Testing.
The bin packing problem. For n objects with sizes s 1, …, s n where 0 < s i ≤1, find the smallest number of bins with capacity one, such that n objects.
Spring 2008The Greedy Method1. Spring 2008The Greedy Method2 Outline and Reading The Greedy Method Technique (§5.1) Fractional Knapsack Problem (§5.1.1)
Approximation Algorithms by bounding the OPT Instructor Neelima Gupta
Approximation Algorithms based on linear programming.
TU/e Algorithms (2IL15) – Lecture 11 1 Approximation Algorithms.
Capabilities, Minimization, and Transformation of Sequential Machines
Approximation Algorithms
Partial Orderings: Selected Exercises
Chapter 3 The Real Numbers.
Advanced Algorithms Analysis and Design
Approximation Algorithms
Advanced Algorithms Analysis and Design
Approximation Algorithms
Approximation algorithms
The Stackelberg Minimum Spanning Tree Game
11.4 The Comparison Tests In this section, we will learn:
Ordering of Hypothesis Space
Computational Molecular Biology
Chapter 5. Optimal Matchings
Greedy Algorithms / Interval Scheduling Yin Tat Lee
Presented by Po-Chuan & Chen-Chen 2016/03/08
Approximation Algorithms
Computability and Complexity
Additive Combinatorics and its Applications in Theoretical CS
Discrete Mathematics for Computer Science
The Subset Sum Game Revisited
Depth Estimation via Sampling
Merge Sort 11/28/2018 2:18 AM The Greedy Method The Greedy Method.
Merge Sort 11/28/2018 8:16 AM The Greedy Method The Greedy Method.
Alternating tree Automata and Parity games
Coverage Approximation Algorithms
Approximation Algorithms
PTAS for Bin-Packing.
Advanced Algorithms Analysis and Design
Merge Sort 1/17/2019 3:11 AM The Greedy Method The Greedy Method.
Polynomial time approximation scheme
CUBE MATERIALIZATION E0 261 Jayant Haritsa
Affine Spaces Def: Suppose
Advanced Analysis of Algorithms
CS154, Lecture 16: More NP-Complete Problems; PCPs
Ch09 _2 Approximation algorithm
Merge Sort 5/2/2019 7:53 PM The Greedy Method The Greedy Method.
Week 2: Greedy Algorithms
CS 6310 Advanced Design and Analysis of Algorithms Rajani Pingili
Locality In Distributed Graph Algorithms
Algorithms Tutorial 27th Sept, 2019.
Presentation transcript:

Approximating Set Cover

SET-COVER Instance: a finite set X and a family F of subsets of X, such that Problem: to find a set CF of minimal size which covers X, i.e – Problem is NP-hard

SET-COVER: Example

The Greedy Algorithm C   U  X while U   do select SF that maximizes |SU| C  C  {S} U  U - S return C

compare to the optimal cover Demonstration compare to the optimal cover 4 5 2 1 3

How Good of an Approximation? We’d like to compare the number of subsets returned by the greedy algorithm to the optimal The optimal is unknown, however, if it consists of k subsets, then any part of the universe can be covered by k subsets! Which is exactly what the next 3 distinct arguments take advantage of

Suppose it doesn’t and observe the situation after k iterations: Loose Ratio-Bound Claim: If  cover of size k, then after k iterations the algorithm covered at least ½ of the elements the n elements >½n Suppose it doesn’t and observe the situation after k iterations: already covered

Since this part  can also be covered by k sets... Loose Ratio-Bound Claim: If  cover of size k, then after k iterations the algorithm have covered at least ½ of the elements Since this part  can also be covered by k sets... the n elements >½n already covered

there must be a set not chosen yet, whose size is at least ½n·1/k Loose Ratio-Bound Claim: If  cover of size k, then after k iterations the algorithm have covered at least ½ of the elements the n elements there must be a set not chosen yet, whose size is at least ½n·1/k >½n already covered

Loose Ratio-Bound Claim: If  cover of size k, then after k iterations the algorithm have covered at least ½ of the elements and the claim is proven! the n elements >½ Thus in each of the first k iterations we’ve covered at least ½n·1/k new elements already covered

Loose Ratio-Bound Claim: If  cover of size k, then after k iterations the algorithm covered at least ½ of the elements. Therefore after klogn iterations (i.e - after choosing klogn sets) all the n elements must be covered, and the bound is proven.

Better Ratio Bound Let S1, …, St be the sequence of sets outputted by the greedy algorithm. Let, for 0 <= i <= t Since, for every i, Ui can be covered by k sets, it follows

Better Ratio Bound Hence, for any 0 <= i < j <= t Which implies that for every i Therefore, t <= k ln(n) + 1

Tight Ratio-Bound Claim: The greedy algorithm approximates the optimal set-cover to within a factor H(max{ |S|: SF } ) Where H(d) is the d-th harmonic number:

Claim’s Proof Charge $1 for each set Split cost between covered elements Bound from above the total fees paid 0.2 each recipient pays the fractional cost for the first set it appears in

Analysis Thus, every element xX is charged Where Si is the first set that covers x.

number of members of S still uncovered after i iterations Lemma Lemma: For every SF Proof: Fix an SF. For any i, let 1ik : Si covers ui-1-ui elements of S Let k be the smallest index, s.t. uk=0 number of members of S still uncovered after i iterations

Lemma Si covers more than S or else the greedy strategy would have taken S instead of Si definition of ui-1 sum charges H(uk)=H(0)=0 H(u0)=H(|S|) Telescopic sum

Analysis Now we can finally complete our analysis: