cs 466 fall 2019 lecture 13 - approximation algorithms ... › ~cs466 › lectures ›...

7
- 159 - CS 466 Fall 2019 Lecture 13 - Approximation Algorithms Anna Lubiw Univ. Waterloo

Upload: others

Post on 04-Jul-2020

1 views

Category:

Documents


0 download

TRANSCRIPT

Page 1: CS 466 Fall 2019 Lecture 13 - Approximation Algorithms ... › ~cs466 › Lectures › Lecture13.pdf · CS 466 Fall 2019 Lecture 13 - Approximation Algorithms Anna Lubiw Univ. Waterloo

- 159 -

CS 466 Fall 2019 Lecture 13 - Approximation Algorithms Anna LubiwUniv. Waterloo

Page 2: CS 466 Fall 2019 Lecture 13 - Approximation Algorithms ... › ~cs466 › Lectures › Lecture13.pdf · CS 466 Fall 2019 Lecture 13 - Approximation Algorithms Anna Lubiw Univ. Waterloo

- 160 -

CS 466 Fall 2019 Lecture 13 - Approximation Algorithms Anna LubiwUniv. Waterloo

Page 3: CS 466 Fall 2019 Lecture 13 - Approximation Algorithms ... › ~cs466 › Lectures › Lecture13.pdf · CS 466 Fall 2019 Lecture 13 - Approximation Algorithms Anna Lubiw Univ. Waterloo

- 161 -

CS 466 Fall 2019 Lecture 13 - Approximation Algorithms Anna LubiwUniv. Waterloo

Page 4: CS 466 Fall 2019 Lecture 13 - Approximation Algorithms ... › ~cs466 › Lectures › Lecture13.pdf · CS 466 Fall 2019 Lecture 13 - Approximation Algorithms Anna Lubiw Univ. Waterloo

- 162 -

CS 466 Fall 2019 Lecture 13 - Approximation Algorithms Anna LubiwUniv. Waterloo

Page 5: CS 466 Fall 2019 Lecture 13 - Approximation Algorithms ... › ~cs466 › Lectures › Lecture13.pdf · CS 466 Fall 2019 Lecture 13 - Approximation Algorithms Anna Lubiw Univ. Waterloo

- 163 -

CS 466 Fall 2019 Lecture 13 - Approximation Algorithms Anna LubiwUniv. Waterloo

Page 6: CS 466 Fall 2019 Lecture 13 - Approximation Algorithms ... › ~cs466 › Lectures › Lecture13.pdf · CS 466 Fall 2019 Lecture 13 - Approximation Algorithms Anna Lubiw Univ. Waterloo

- 164 -

CS 466 Fall 2019 Lecture 13 - Approximation Algorithms Anna LubiwUniv. Waterloo

Page 7: CS 466 Fall 2019 Lecture 13 - Approximation Algorithms ... › ~cs466 › Lectures › Lecture13.pdf · CS 466 Fall 2019 Lecture 13 - Approximation Algorithms Anna Lubiw Univ. Waterloo

- 165 -

Suppose that the optimum cover has k sets. Then at a stage where r items remain to be covered, some set covers r/k of them. Therefore, choosing the set that covers the most new points reduces the number of uncovered points to r − r/k = r(1 − 1/k). If we start with n points and repeat this process n times, r ≤ n(1 − 1/k)j . Since r is an integer, we are done when n(1 − 1/k)j < 1. This happens when j = O(k log n). Hence, α = j/k = O(log n).

CS 466 Fall 2019 Lecture 13 - Approximation Algorithms Anna LubiwUniv. Waterloo