/
Dynamic and Online Algorithms Dynamic and Online Algorithms

Dynamic and Online Algorithms - PowerPoint Presentation

trish-goza
trish-goza . @trish-goza
Follow
349 views
Uploaded On 2019-06-26

Dynamic and Online Algorithms - PPT Presentation

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 ID: 760334

time set competitive density set time density competitive algorithm online sets cover update amortized element recourse elements dynamic solution

Share:

Link:

Embed:

Download Presentation from below link

Download Presentation The PPT/PDF document "Dynamic and Online Algorithms" is the property of its rightful owner. Permission is granted to download and print the materials on this web site for personal, non-commercial use only, and to display it on your personal computer provided you do not modify the materials and that you retain all copyright notices contained in the materials. By downloading content from our website, you accept the terms of this agreement.


Presentation Transcript

Slide1

Dynamic and Online Algorithmsfor Set Cover

Anupam Gupta

Carnegie Mellon University

Ravishankar Krishnaswamy (Microsoft India)

Amit Kumar (IIT Delhi) and

Debmalya Panigrahi (Duke)

Slide2

online algorithms and competitive analysis

At any time , maintain a solution for the current inputpast 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

 

 

Slide3

online set cover

Given collection of sets over elementsAt time , new element arrives and reveals which sets it belongs toWant: At any time , maintain set cover on revealed elementsGoal: Minimize cost of set cover.

 

Theorem: cost(algorithm) ≤ O(log m log ) × OPT() Matching lower bound on deterministic algos. [Alon Awerbuch Azar Buchbinder Naor ‘05] Matching hardness for poly-time online algos. [Feige and Korman ‘08]

 

 

 

 

 

 

Slide4

(dynamic) online algorithms

At any time , maintain a solution for the current inputpast 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

 

 

R

elax 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)

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.

Slide5

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: (amortized) update time.

 

Slide6

 

 

 

 

 

Classical Online model:

competitive ratio

, tight in most respects

 

Dynamic set cover:

Theorem 1.

Algorithm that is

competitive, with

recourse

(amortized).

 

Theorem 2.

Algorithm that is

competitive (randomized), with

recourse

(amortized).

 

our results (recourse)

The results extend to showing and competitiveness.

 

is the frequency = maximum number of sets containing an element

 

e.g. vertex cover has

 

Slide7

 

 

 

 

 

Classical Online model:

competitive ratio

, tight in most respects

 

Dynamic set cover:

Theorem 1b.

Algorithm that is

competitive, with

update time

(amortized).

 

Theorem 2b.

Algorithm that is

competitive (randomized), with

update time

(amortized).

 

our results (update time)

Corollary: a deterministic -approximation for dynamic (weighted) vertex cover with update time.weighted: -approximation with -update time [Bhattacharya Henzinger Italiano]unweighted: maximal matchings with update time [Solomon]similar results in concurrent and independent work [Bhattacharya Chakrabarty Henzinger]

 

Priorwork

Slide8

 

 

 

 

 

Classical Online model:

competitive ratio

, tight in most respects

 

Dynamic set cover:

Theorem 1.

Algorithm that is

competitive, with

recourse (amortized).

 

our results (recourse)

Today:

Measure recourse

.

Assume

unit

cost sets.

Get O(log n) competitive with O(log n) recourse.

Slide9

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 factor.

 

Slide10

the online algorithm

Universe of current points

density =

3

density = 2

density = 2

density = 1

Slide11

the online algorithm

density = 3

density

= 2

density = 2

density = 1

 

 

 

 

 

 

 

 

Slide12

the online algorithm

density [3,4]

density = 2

density = 1

density [5,8]

 

 

 

 

 

 

 

 

Slide13

the online algorithm

density [3,4]

density = 2

density = 1

density [5,8]

 

 

 

 

 

 

 

 

Unstable set

S: set that contains

elements, all currently being covered at densities

.

 

E.g., suppose

some set contains

and

. Then it is

unstable

.

 

Lemma:

no unstable sets

solution is almost greedy

solution is O(log n)-approximate.

 

Slide14

the online algorithm

density [3,4]

density = 2

density = 1

density [5,8]

 

 

 

 

 

 

 

 

 

 

Suppose

arrives.

C

over it with any set containing it.

 

Now green set is unstable.

So add it in, and assign

to it.

 

 

 

Clean up, resettle sets at the right level.

Slide15

overview of the analysis

When a new element arrives and not covered by current sets, pick any set that covers it, add it with density 1If 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.

Invariant: element at level has tokens

 

Start each element with tokens

 

Elements moving down lose 2 tokens use 1 to pay for new set

Sets moving up lose ½ of their elementsuse their other token to pay for rising up*

*minor cheating here.

Slide16

 

 

 

 

 

Classical Online model:

competitive ratio

, tight in most respects

 

Dynamic set cover:

Theorem 2b.

Algorithm that is

competitive (randomized), with

update time

(amortized).

 

a quick word about update time algorithms

Corollary:

a deterministic

-approximation for dynamic (weighted) vertex cover

with

update time

.

 

sets = vertices

edges = elements

Slide17

dynamic vertex cover algorithms

sets = vertices sit at various integer levels

level(element/edge e) = highest level of set containing it

dual(e) =

 

0

1

4

Every vertex should be (approx.) feasible for dual

 

So move vertices up/down as needed to satisfy this (

approximately

).

[Bhattacharya

Henzinger

Italiano

, … ]

Slide18

new component of our analysis

Analysis also uses tokens.

0

1

4

When element (edge)

arrives/departs

give

tokens to

each of its

sets.

 

When vertex moves down, gives

tokens to

neighbors at lower levels.

 

When vertex moves up, gives

tokens to

neighbors at lower levels.

 

Asymmetric

Show that no set spends more than it receives….

Slide19

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 competitive algorithms with O(1) changes per timestep (amortized)

 

Give competitive algorithms with update time (amortized)

 

Q: Do we need amortization? From the online perspective, no. Can maintain competitive solution with O(1) changes per timestep. But need exponential time.

 

Q: Maintain competitive fractional set cover solution with O(1) recourse?

 

thanks!