Improved Algorithms for the Bichromatic Two-Center Problem for Pairs - - PowerPoint PPT Presentation

improved algorithms for the bichromatic two center
SMART_READER_LITE
LIVE PREVIEW

Improved Algorithms for the Bichromatic Two-Center Problem for Pairs - - PowerPoint PPT Presentation

Improved Algorithms for the Bichromatic Two-Center Problem for Pairs of Points Haitao Wang 1 Jie Xue 2 1 Utah State University 2 University of Minnesota, Twin Cities WADS 2019 Haitao Wang and Jie Xue WADS 2019 1 / 28 Background 2-center


slide-1
SLIDE 1

Improved Algorithms for the Bichromatic Two-Center Problem for Pairs of Points

Haitao Wang1 Jie Xue2

1Utah State University 2University of Minnesota, Twin Cities

WADS 2019

Haitao Wang and Jie Xue WADS 2019 1 / 28

slide-2
SLIDE 2

Background

2-center problem in the plane Given a set S of n points in the plane, find two disks D∗

1 and D∗ 2 such

that S ⊆ D∗

1 ∪ D∗ 2 and max{rad(D∗ 1), rad(D∗ 2)} is minimized.

S

Haitao Wang and Jie Xue WADS 2019 2 / 28

slide-3
SLIDE 3

Background

2-center problem in the plane Given a set S of n points in the plane, find two disks D∗

1 and D∗ 2 such

that S ⊆ D∗

1 ∪ D∗ 2 and max{rad(D∗ 1), rad(D∗ 2)} is minimized.

S D∗

1

D∗

2 Haitao Wang and Jie Xue WADS 2019 3 / 28

slide-4
SLIDE 4

Background

2-center problem in the plane Given a set S of n points in the plane, find two disks D∗

1 and D∗ 2 such

that S ⊆ D∗

1 ∪ D∗ 2 and max{rad(D∗ 1), rad(D∗ 2)} is minimized.

Haitao Wang and Jie Xue WADS 2019 4 / 28

slide-5
SLIDE 5

Background

2-center problem in the plane Given a set S of n points in the plane, find two disks D∗

1 and D∗ 2 such

that S ⊆ D∗

1 ∪ D∗ 2 and max{rad(D∗ 1), rad(D∗ 2)} is minimized.

An equivalent definition Color each point in S as red or blue such that max{rad(D∗

1), rad(D∗ 2)}

is minimized where D∗

1 (resp., D∗ 2) is the smallest enclosing disk of all

red (resp., blue) points.

D∗

1

D∗

2

S

Haitao Wang and Jie Xue WADS 2019 4 / 28

slide-6
SLIDE 6

Problem definition

Bichromatic 2-center problem in the plane Given a set S of n pairs of points in the plane, for every pair, color

  • ne point as red and the other as blue such that

max{rad(D∗

1), rad(D∗ 2)} is minimized where D∗ 1 (resp., D∗ 2) is the

smallest enclosing disk of all red (resp., blue) points.

D∗

1

D∗

2

S

Haitao Wang and Jie Xue WADS 2019 5 / 28

slide-7
SLIDE 7

Previous work and our result

Previous results for planar 2-center

O(n2 log3 n) time [Agarwal and Sharir, 1994] O(n2) time [Jaromczyk and Kowaluk, 1994] O(n log9 n) time [Sharir, 1997] O(n log2 n) expected time [Eppstein, 1997] O(n log2 n log2 log n) time [Chan, 1999]

Haitao Wang and Jie Xue WADS 2019 6 / 28

slide-8
SLIDE 8

Previous work and our result

Previous results for planar 2-center

O(n2 log3 n) time [Agarwal and Sharir, 1994] O(n2) time [Jaromczyk and Kowaluk, 1994] O(n log9 n) time [Sharir, 1997] O(n log2 n) expected time [Eppstein, 1997] O(n log2 n log2 log n) time [Chan, 1999]

Previous results for planar bichromatic 2-center

O(n3 log2 n) time [Arkin et al., 2015] (1 + ǫ)-approximation algorithms [Arkin et al., 2015]

O((n/ε2) log n log(1/ε)) time [Arkin et al., 2015] O(n + (1/ε)6 log2(1/ε)) time [Arkin et al., 2015]

Haitao Wang and Jie Xue WADS 2019 6 / 28

slide-9
SLIDE 9

Previous work and our result

Previous results for planar 2-center

O(n2 log3 n) time [Agarwal and Sharir, 1994] O(n2) time [Jaromczyk and Kowaluk, 1994] O(n log9 n) time [Sharir, 1997] O(n log2 n) expected time [Eppstein, 1997] O(n log2 n log2 log n) time [Chan, 1999]

Previous results for planar bichromatic 2-center

O(n3 log2 n) time [Arkin et al., 2015] (1 + ǫ)-approximation algorithms [Arkin et al., 2015]

O((n/ε2) log n log(1/ε)) time [Arkin et al., 2015] O(n + (1/ε)6 log2(1/ε)) time [Arkin et al., 2015]

Our results for planar bichromatic 2-center

O(n2 log2 n) time exact algorithm O(n + (1/ε)3 log2(1/ε)) time (1 + ǫ)-approximation

Haitao Wang and Jie Xue WADS 2019 6 / 28

slide-10
SLIDE 10

Exact algorithm

Let D∗

1 and D∗ 2 be the two disks of an optimal solution.

Without loss of generality, we may assume that

D∗

1 and D∗ 2 are congruent (let r ∗ denote their radius).

The distance δ between the centers of D∗

1 and D∗ 2 is minimized.

D∗

1

D∗

2

δ

Haitao Wang and Jie Xue WADS 2019 7 / 28

slide-11
SLIDE 11

Exact algorithm

Let D∗

1 and D∗ 2 be the two disks of an optimal solution.

Without loss of generality, we may assume that

D∗

1 and D∗ 2 are congruent (let r ∗ denote their radius).

The distance δ between the centers of D∗

1 and D∗ 2 is minimized.

Haitao Wang and Jie Xue WADS 2019 8 / 28

slide-12
SLIDE 12

Exact algorithm

Let D∗

1 and D∗ 2 be the two disks of an optimal solution.

Without loss of generality, we may assume that

D∗

1 and D∗ 2 are congruent (let r ∗ denote their radius).

The distance δ between the centers of D∗

1 and D∗ 2 is minimized.

High-level idea Distinguish two cases:

The distant case: δ ≥ r ∗ The nearby case: δ < r ∗

(Similar to the idea of [Sharir, 1997; Eppstein, 1997; Chan, 1999] for the planar 2-center problem)

Haitao Wang and Jie Xue WADS 2019 8 / 28

slide-13
SLIDE 13

A definition

Definition

We say a pair (D1, D2) of disks bichromatically covers S if it is possible to color a point as red and the other as blue for every pair of S such that D1 (resp., D2) covers all red (resp., blue) points.

D1 D2

Haitao Wang and Jie Xue WADS 2019 9 / 28

slide-14
SLIDE 14

A definition

Definition

We say a pair (D1, D2) of disks bichromatically covers S if it is possible to color a point as red and the other as blue for every pair of S such that D1 (resp., D2) covers all red (resp., blue) points.

D1 D2

D1 and D2 are always congruent in our discussion

Haitao Wang and Jie Xue WADS 2019 9 / 28

slide-15
SLIDE 15

The distant case: δ ≥ r ∗

Basic strategy: parametric search + decision The decision problem Given a value r, decide whether r ≥ r∗, i.e., whether there exists a congruent pair of disks with radius r that bichromatically covers S.

Haitao Wang and Jie Xue WADS 2019 10 / 28

slide-16
SLIDE 16

The distant case

Observation (Eppstein, 1997)

One can determine in O(n) time a set of O(1) lines in which one line ℓ satisfies the following property. The subset P1 of all input points of S on the left side of ℓ are contained in one disk D∗

1 of the optimal solution,

At least one point of P1 is on the boundary of D∗

1

D∗

1 is the circurmcircle of two or three points of S.

l D∗

1

D∗

2

Haitao Wang and Jie Xue WADS 2019 11 / 28

slide-17
SLIDE 17

The distant case

By enumerating the O(1) lines, we may assume that ℓ is known.

Haitao Wang and Jie Xue WADS 2019 12 / 28

slide-18
SLIDE 18

The distant case

By enumerating the O(1) lines, we may assume that ℓ is known. Let P1 be the points on the left side of ℓ.

Haitao Wang and Jie Xue WADS 2019 12 / 28

slide-19
SLIDE 19

The distant case

By enumerating the O(1) lines, we may assume that ℓ is known. Let P1 be the points on the left side of ℓ.

Lemma

r ≥ r∗ iff there exists a pair (D1, D2) of congruent disks of radius r bichromatically covering S with the following property. All points in P1 are contained in D1 At least one point of P1 is on the boundary of D1.

l P1 D1 D2

Haitao Wang and Jie Xue WADS 2019 12 / 28

slide-20
SLIDE 20

The distant case

Br(a): the disk centered at a point a of radius r. I =

a∈P1 Br(a)

P1 I

Haitao Wang and Jie Xue WADS 2019 13 / 28

slide-21
SLIDE 21

The distant case

Br(a): the disk centered at a point a of radius r. I =

a∈P1 Br(a)

P1 I

Lemma

D1 satisfies the desired condition iff its center is on the boundary ∂I of I.

Haitao Wang and Jie Xue WADS 2019 13 / 28

slide-22
SLIDE 22

The distant case

Br(a): the disk centered at a point a of radius r. I =

a∈P1 Br(a)

P1 I

Lemma

D1 satisfies the desired condition iff its center is on the boundary ∂I of I. We say a point c is feasible if there exists (D1, D2) bichromatically covering S such that D1 = Br(c). It suffices to test the existence of a feasible point on ∂I.

Haitao Wang and Jie Xue WADS 2019 13 / 28

slide-23
SLIDE 23

The distant case

Find a feasible point on ∂I: For each point c ∈ S \ P1, compute the (at most two) intersections ∂I ∩ ∂Br(c). Q: the set of all such intersection points |Q| = O(n)

Haitao Wang and Jie Xue WADS 2019 14 / 28

slide-24
SLIDE 24

The distant case

Find a feasible point on ∂I: For each point c ∈ S \ P1, compute the (at most two) intersections ∂I ∩ ∂Br(c). Q: the set of all such intersection points |Q| = O(n) A feasible point exists on ∂I iff a feasible point exists in Q. For each point c ∈ Q, test whether it is a feasible point, i.e., whether there exists (D1, D2) bichromatically covering S such that D1 = Br(c).

Haitao Wang and Jie Xue WADS 2019 14 / 28

slide-25
SLIDE 25

The distant case

For each point c ∈ Q, test whether it is a feasible point: Check whether Br(c) covers at least one point from each pair of S. c

Haitao Wang and Jie Xue WADS 2019 15 / 28

slide-26
SLIDE 26

The distant case

For each point c ∈ Q, test whether it is a feasible point: Check whether Br(c) covers at least one point from each pair of S. Check whether there exists a disk of radius r covering all points of P(c) and at least one point from each pair of S(c)

P(c): points of S outside Br(c) S(c): pairs of S whose both points are in Br(c)

c

Haitao Wang and Jie Xue WADS 2019 16 / 28

slide-27
SLIDE 27

The distant case

For each point c ∈ Q, test whether it is a feasible point: Check whether Br(c) covers at least one point from each pair of S. Check whether there exists a disk of radius r covering all points of P(c) and at least one point from each pair of S(c)

P(c): points of S outside Br(c) S(c): pairs of S whose both points are in Br(c)

c

Haitao Wang and Jie Xue WADS 2019 17 / 28

slide-28
SLIDE 28

The distant case

For each point c ∈ Q, test whether it is a feasible point: Check whether Br(c) covers at least one point from each pair of S. Check whether there exists a disk of radius r covering all points of P(c) and at least one point from each pair of S(c)

P(c): points of S outside Br(c) S(c): pairs of S whose both points are in Br(c)

c O(n log n) time

Haitao Wang and Jie Xue WADS 2019 17 / 28

slide-29
SLIDE 29

The distant case

Decision algorithm: O(n2 log n) time

Haitao Wang and Jie Xue WADS 2019 18 / 28

slide-30
SLIDE 30

The distant case

Decision algorithm: O(n2 log n) time Using Cole’s parametric search, the optimization problem of the distant case can be solved in O(n2 log2 n) time.

Very similar to [Eppstein, 1997] for the planar 2-center problem.

Haitao Wang and Jie Xue WADS 2019 18 / 28

slide-31
SLIDE 31

The nearby case: δ < r ∗

Consider the intersection D∗

1 ∩ D∗ 2, which has two vertices a and b.

Observation (Eppstein, 1997)

In O(n) time, one can find O(1) points in which one point o is in D∗

1 ∩ D∗ 2

and either the vertical or the horizontal line through o separates a and b.

D∗

2

D∗

1

a b

  • Haitao Wang and Jie Xue

WADS 2019 19 / 28

slide-32
SLIDE 32

The nearby case

By enumerating the O(1) points, we may assume that the point o is known and the horizontal line ℓ through o separates a and b.

Haitao Wang and Jie Xue WADS 2019 20 / 28

slide-33
SLIDE 33

The nearby case

By enumerating the O(1) points, we may assume that the point o is known and the horizontal line ℓ through o separates a and b. Sort the points of S above (resp., below) ℓ counterclockwise around o.

Haitao Wang and Jie Xue WADS 2019 20 / 28

slide-34
SLIDE 34

The nearby case

By enumerating the O(1) points, we may assume that the point o is known and the horizontal line ℓ through o separates a and b. Sort the points of S above (resp., below) ℓ counterclockwise around o.

  • p1

p2 pi pi+1 pn′ q1 q2 qj qj+1 qn′′ Lij Rij

Let Li,j = {pi+1, . . . , pn′, q1, . . . , qj} for i ∈ [n′] and j ∈ [n′′]. Let Ri,j = {qj+1, . . . , qn′′, p1, . . . , pi} for i ∈ [n′] and j ∈ [n′′].

Haitao Wang and Jie Xue WADS 2019 20 / 28

slide-35
SLIDE 35

The nearby case

Lemma

For some i ∈ [n′] and j ∈ [n′′], Li,j is contained in one of D∗

1 and D∗ 2 while

Ri,j is contained in the other.

Haitao Wang and Jie Xue WADS 2019 21 / 28

slide-36
SLIDE 36

The nearby case

Lemma

For some i ∈ [n′] and j ∈ [n′′], Li,j is contained in one of D∗

1 and D∗ 2 while

Ri,j is contained in the other. Why is this true?

Haitao Wang and Jie Xue WADS 2019 21 / 28

slide-37
SLIDE 37

The nearby case

Lemma

For some i ∈ [n′] and j ∈ [n′′], Li,j is contained in one of D∗

1 and D∗ 2 while

Ri,j is contained in the other. Why is this true?

D∗

2

D∗

1

a b

  • ρa

ρb

The points to the left (resp., right) of ρa & ρb are in D∗

1 (resp., D∗ 2).

Haitao Wang and Jie Xue WADS 2019 21 / 28

slide-38
SLIDE 38

The nearby case

For i ∈ [n′] and j ∈ [n′′], consider the following problem: Finding a pair of congruent disks (D1, D2) of smallest radus which bichromatically covers S such that Li,j ⊆ D1 and Ri,j ⊆ D2.

Haitao Wang and Jie Xue WADS 2019 22 / 28

slide-39
SLIDE 39

The nearby case

For i ∈ [n′] and j ∈ [n′′], consider the following problem: Finding a pair of congruent disks (D1, D2) of smallest radus which bichromatically covers S such that Li,j ⊆ D1 and Ri,j ⊆ D2. Let r∗

i,j be the optimal radii for the above problem.

Haitao Wang and Jie Xue WADS 2019 22 / 28

slide-40
SLIDE 40

The nearby case

For i ∈ [n′] and j ∈ [n′′], consider the following problem: Finding a pair of congruent disks (D1, D2) of smallest radus which bichromatically covers S such that Li,j ⊆ D1 and Ri,j ⊆ D2. Let r∗

i,j be the optimal radii for the above problem.

We have r∗ ≤ r∗

i,j for all i ∈ [n′] and j ∈ [n′′].

Haitao Wang and Jie Xue WADS 2019 22 / 28

slide-41
SLIDE 41

The nearby case

For i ∈ [n′] and j ∈ [n′′], consider the following problem: Finding a pair of congruent disks (D1, D2) of smallest radus which bichromatically covers S such that Li,j ⊆ D1 and Ri,j ⊆ D2. Let r∗

i,j be the optimal radii for the above problem.

We have r∗ ≤ r∗

i,j for all i ∈ [n′] and j ∈ [n′′].

We have r∗ = r∗

i,j for some i ∈ [n′] and j ∈ [n′′].

Haitao Wang and Jie Xue WADS 2019 22 / 28

slide-42
SLIDE 42

The nearby case

For i ∈ [n′] and j ∈ [n′′], consider the following problem: Finding a pair of congruent disks (D1, D2) of smallest radus which bichromatically covers S such that Li,j ⊆ D1 and Ri,j ⊆ D2. Let r∗

i,j be the optimal radii for the above problem.

We have r∗ ≤ r∗

i,j for all i ∈ [n′] and j ∈ [n′′].

We have r∗ = r∗

i,j for some i ∈ [n′] and j ∈ [n′′].

Therefore, r∗ = mini,j r∗

i,j.

Haitao Wang and Jie Xue WADS 2019 22 / 28

slide-43
SLIDE 43

The nearby case

Lemma

Given i ∈ [n′] and j ∈ [n′′], r∗

i,j can be computed in O(n log2 n) time.

Proof idea: parametric search + decision

Haitao Wang and Jie Xue WADS 2019 23 / 28

slide-44
SLIDE 44

The nearby case

Lemma

Given i ∈ [n′] and j ∈ [n′′], r∗

i,j can be computed in O(n log2 n) time.

Proof idea: parametric search + decision

r∗

1,1

r∗

1,2

r∗

2,1

r∗

2,2

r∗

1,n′′

r∗

2,n′′

r∗

n′,1

r∗

n′,2

r∗

n′,n′′

. . . · · · ... . . . . . . · · · · · · M

Each entry of M can be computed in O(n log2 n) time. Want the smallest entry of the matrix M.

Haitao Wang and Jie Xue WADS 2019 23 / 28

slide-45
SLIDE 45

The nearby case

A na¨ ıve way to compute r∗ Evaluating all Θ(n2) entries of the matrix M: Θ(n3 log2 n) time.

Haitao Wang and Jie Xue WADS 2019 24 / 28

slide-46
SLIDE 46

The nearby case

A na¨ ıve way to compute r∗ Evaluating all Θ(n2) entries of the matrix M: Θ(n3 log2 n) time. A better way: O(n2 log2 n) time Apply matrix search technique: only evaluating O(n) entries of M, we can obtain r∗. Main idea: After considering a subproblem on an entry, either its upperright or lowerleft submatrix can be pruned.

M r∗

1,1

r∗

n′,n′′

r∗

n′,1

r∗

1,n′′

r∗

i,j Haitao Wang and Jie Xue WADS 2019 24 / 28

slide-47
SLIDE 47

Putting everything together

r∗

1 = the “r∗” returned by the distant-case algorithm.

r∗

2 = the “r∗” returned by the nearby-case algorithm.

Haitao Wang and Jie Xue WADS 2019 25 / 28

slide-48
SLIDE 48

Putting everything together

r∗

1 = the “r∗” returned by the distant-case algorithm.

r∗

2 = the “r∗” returned by the nearby-case algorithm.

r∗ = min{r∗

1 , r∗ 2 }.

Haitao Wang and Jie Xue WADS 2019 25 / 28

slide-49
SLIDE 49

Putting everything together

r∗

1 = the “r∗” returned by the distant-case algorithm.

r∗

2 = the “r∗” returned by the nearby-case algorithm.

r∗ = min{r∗

1 , r∗ 2 }.

Theorem

There is an exact algorithm for the plane bichromatic 2-center problem using O(n2 log2 n) time, where n is the input size.

Haitao Wang and Jie Xue WADS 2019 25 / 28

slide-50
SLIDE 50

Future work

Haitao Wang and Jie Xue WADS 2019 26 / 28

slide-51
SLIDE 51

Future work

Further improve the algorithms?

Haitao Wang and Jie Xue WADS 2019 26 / 28

slide-52
SLIDE 52

Future work

Further improve the algorithms? Higher dimensions or more general settings?

Haitao Wang and Jie Xue WADS 2019 26 / 28

slide-53
SLIDE 53

Related work

L∞ case: O(n) time [Arkin et al., 2015]

Haitao Wang and Jie Xue WADS 2019 27 / 28

slide-54
SLIDE 54

Related work

L∞ case: O(n) time [Arkin et al., 2015] Min-Sum: minimizing the sum of the radii of the red and blue disks

Euclidean case: O(n4 log2 n) time [Arkin et al., 2015] L∞ case: O(n log2 n) deterministic time or O(n log n) expected time [Arkin et al., 2015]

Haitao Wang and Jie Xue WADS 2019 27 / 28

slide-55
SLIDE 55

Thank you! Q & A

Haitao Wang and Jie Xue WADS 2019 28 / 28