PTAS for Euclidean Traveling Salesman and Other Geometric Problems - - PowerPoint PPT Presentation

ptas for euclidean traveling salesman and other geometric
SMART_READER_LITE
LIVE PREVIEW

PTAS for Euclidean Traveling Salesman and Other Geometric Problems - - PowerPoint PPT Presentation

CS468, Wed Feb 15th 2006 PTAS for Euclidean Traveling Salesman and Other Geometric Problems Sanjeev Arora Journal of the ACM, 45(5):753782, 1998 PTAS same as LTAS, with Linear replaced by Polynomial Given a problem P and a


slide-1
SLIDE 1

CS468, Wed Feb 15th 2006

Journal of the ACM, 45(5):753–782, 1998

PTAS for Euclidean Traveling Salesman and Other Geometric Problems

Sanjeev Arora

slide-2
SLIDE 2

PTAS

1

  • S. Arora

— Euclidean TSP and other related problems

→ same as LTAS, with ”Linear” replaced by ”Polynomial” Def Given a problem P and a cost function |.|, a PTAS of P is a one- parameter family of PT algorithms, {Aε}ε>0, such that, for all ε > 0 and all instance I of P, |Aε(I)| ≤ (1 + ε) |OPT(I)|.

slide-3
SLIDE 3

PTAS

1

  • S. Arora

— Euclidean TSP and other related problems

→ same as LTAS, with ”Linear” replaced by ”Polynomial” Def Given a problem P and a cost function |.|, a PTAS of P is a one- parameter family of PT algorithms, {Aε}ε>0, such that, for all ε > 0 and all instance I of P, |Aε(I)| ≤ (1 + O(ε)) |OPT(I)|.

  • PT means time complexity nO(1), where the constant may depend
  • n 1/ε and on the dimension d (when pb in Rd)
  • As far as we get nO(1), we do not care about the constant
  • the constant in (1 + O(ε)) must not depend on I nor on ε
slide-4
SLIDE 4

TSP

K7

2 3 7

Given a complete graph G = (V, E) with non- negative weights, find the Hamiltonian tour of minimum total cost.

  • S. Arora

— Euclidean TSP and other related problems 5 1 0.2 8 17

2

slide-5
SLIDE 5

TSP

K7

2 3 7

Given a complete graph G = (V, E) with non- negative weights, find the Hamiltonian tour of minimum total cost.

  • S. Arora

— Euclidean TSP and other related problems OPT 5 1 0.2 8 17 |OPT| = 36.2

2

slide-6
SLIDE 6

TSP

K7

2 3 7

Given a complete graph G = (V, E) with non- negative weights, find the Hamiltonian tour of minimum total cost.

  • S. Arora

— Euclidean TSP and other related problems OPT 5 1 0.2 8 17 |OPT| = 36.2

TSP is NP-hard ⇒ no PT algorithm, unless P = NP. 2

slide-7
SLIDE 7

TSP

K7

2 3 7

Given a complete graph G = (V, E) with non- negative weights, find the Hamiltonian tour of minimum total cost.

  • S. Arora

— Euclidean TSP and other related problems OPT 5 1 0.2 8 17 |OPT| = 36.2

TSP is NP-hard ⇒ no PT algorithm, unless P = NP.

Thm For all PT computable function α(n), TSP cannot be approxi- mated in PT within a factor of (1 + α(n)), unless P = NP.

2

slide-8
SLIDE 8

TSP

K7

Given a complete graph G = (V, E) with non- negative weights, find the Hamiltonian tour of minimum total cost.

  • S. Arora

— Euclidean TSP and other related problems

TSP is NP-hard ⇒ no PT algorithm, unless P = NP.

Thm For all PT computable function α(n), TSP cannot be approxi- mated in PT within a factor of (1 + α(n)), unless P = NP.

Proof Reduction of Hamiltonian Cycle: Let G = (V, E) unweighted, incomplete → G′ = (V ′, E′) where:

  • V ′ = V
  • ∀e ∈ E, add (e, 1) to E′
  • ∀e /

∈ E, add (e, (1 + α(n))n) to E′ 2

slide-9
SLIDE 9

TSP

K7

Given a complete graph G = (V, E) with non- negative weights, find the Hamiltonian tour of minimum total cost.

  • S. Arora

— Euclidean TSP and other related problems

TSP is NP-hard ⇒ no PT algorithm, unless P = NP.

Thm For all PT computable function α(n), TSP cannot be approxi- mated in PT within a factor of (1 + α(n)), unless P = NP.

Proof Reduction of Hamiltonian Cycle: Let G = (V, E) unweighted, incomplete → G′ = (V ′, E′) where:

  • V ′ = V
  • ∀e ∈ E, add (e, 1) to E′
  • ∀e /

∈ E, add (e, (1 + α(n))n) to E′ 2

1 n(1 + α(n))

slide-10
SLIDE 10

Metric TSP

3

  • S. Arora

— Euclidean TSP and other related problems 2 3 5 1 0.2 8 17 7 5

The weights of G(V, E) now satisfy the triangle inequality

slide-11
SLIDE 11

Metric TSP

3

  • S. Arora

— Euclidean TSP and other related problems 2 3 5 1 0.2 8 17 5

2-approximation algorithm: (1) build MST M of G (Kruskal)

slide-12
SLIDE 12

Metric TSP

3

  • S. Arora

— Euclidean TSP and other related problems

2-approximation algorithm: (1) build MST M of G (Kruskal) (2) double edges → M + Eulerian

slide-13
SLIDE 13

Metric TSP

3

  • S. Arora

— Euclidean TSP and other related problems

2-approximation algorithm: (1) build MST M of G (Kruskal) (2) double edges → M + Eulerian

1 2 3 4 5 6 7 8 9 10 11 12

(3) build greedily a Eulerian tour T + on M +

T +

slide-14
SLIDE 14

Metric TSP

3

  • S. Arora

— Euclidean TSP and other related problems

2-approximation algorithm: (1) build MST M of G (Kruskal) (2) double edges → M + Eulerian

1 2 3 4 5 6 7 8 9 10 11 12

(3) build greedily a Eulerian tour T + on M + (4) Trim edges of T + → T

T + T

slide-15
SLIDE 15

Metric TSP

3

  • S. Arora

— Euclidean TSP and other related problems

2-approximation algorithm: (1) build MST M of G (Kruskal) (2) double edges → M + Eulerian

1 2 3 4 5 6 7 8 9 10 11 12

(3) build greedily a Eulerian tour T + on M + (4) Trim edges of T + → T

T + T

Thm |T| ≤ 2|OPT| proof |T| ≤ |T +|

  • tri. ineq.
slide-16
SLIDE 16

Metric TSP

3

  • S. Arora

— Euclidean TSP and other related problems

2-approximation algorithm: (1) build MST M of G (Kruskal) (2) double edges → M + Eulerian

1 2 3 4 5 6 7 8 9 10 11 12

(3) build greedily a Eulerian tour T + on M + (4) Trim edges of T + → T

T +

Thm |T| ≤ 2|OPT| proof |T| ≤ |T +| = |M +|

  • tri. ineq.
slide-17
SLIDE 17

Metric TSP

3

  • S. Arora

— Euclidean TSP and other related problems

2-approximation algorithm: (1) build MST M of G (Kruskal) (2) double edges → M + Eulerian (3) build greedily a Eulerian tour T + on M + (4) Trim edges of T + → T Thm |T| ≤ 2|OPT| proof |T| ≤ |T +| = |M +| = 2|M|

  • tri. ineq.
slide-18
SLIDE 18

Metric TSP

3

  • S. Arora

— Euclidean TSP and other related problems 2 3 5 1 0.2 8 17 5

2-approximation algorithm: (1) build MST M of G (Kruskal) (2) double edges → M + Eulerian (3) build greedily a Eulerian tour T + on M + (4) Trim edges of T + → T Thm |T| ≤ 2|OPT| proof |T| ≤ |T +| = |M +| = 2|M| ≤ 2|OPT|

OPT=”tree+edge”

  • tri. ineq.
slide-19
SLIDE 19

Metric TSP

3

  • S. Arora

— Euclidean TSP and other related problems

2-approximation algorithm: (1) build MST M of G (Kruskal) (2) double edges → M + Eulerian (3) build greedily a Eulerian tour T + on M + (4) Trim edges of T + → T Replace (2) by adding to M a min cost perfect matching of its odd-valenced vertices → 3

2-approximation [Christofides76]

Q Can we do better?

slide-20
SLIDE 20

Metric TSP

3

  • S. Arora

— Euclidean TSP and other related problems

2-approximation algorithm: (1) build MST M of G (Kruskal) (2) double edges → M + Eulerian (3) build greedily a Eulerian tour T + on M + (4) Trim edges of T + → T Replace (2) by adding to M a min cost perfect matching of its odd-valenced vertices → 3

2-approximation [Christofides76]

Q Can we do better? Thm [ALMSS92] There is no PTAS for Metric TSP, unless P = NP Conjecture best approximation factor: 4/3

slide-21
SLIDE 21

4

Euclidean TSP

V ⊂ Rd, E is the set of all pairs weighted by Euclidean distances

  • S. Arora

— Euclidean TSP and other related problems

slide-22
SLIDE 22

4

Euclidean TSP

Thm [Arora96] Euclidean TSP admits a PTAS

  • S. Arora

— Euclidean TSP and other related problems

Overview Let n = |V |

slide-23
SLIDE 23

4

Euclidean TSP

Thm [Arora96] Euclidean TSP admits a PTAS

  • S. Arora

— Euclidean TSP and other related problems

Overview Let n = |V | (1) rescale/snap V

n2√ 2

1 1

slide-24
SLIDE 24

4

Euclidean TSP

Thm [Arora96] Euclidean TSP admits a PTAS

  • S. Arora

— Euclidean TSP and other related problems

Overview Let n = |V | (1) rescale/snap V

n2√ 2

1 1

(2) subdivide the grid with a quadtree

level 1 level 2 level 3

slide-25
SLIDE 25

4

Euclidean TSP

Thm [Arora96] Euclidean TSP admits a PTAS

  • S. Arora

— Euclidean TSP and other related problems

Overview Let n = |V | (1) rescale/snap V

n2√ 2

1 1

(2) subdivide the grid with a quadtree

level 1 level 2 level 3

(3) place portals on grid lines

slide-26
SLIDE 26

4

Euclidean TSP

Thm [Arora96] Euclidean TSP admits a PTAS

  • S. Arora

— Euclidean TSP and other related problems

Overview Let n = |V | (1) rescale/snap V

n2√ 2

1 1

(2) subdivide the grid with a quadtree

level 1 level 2 level 3

(3) place portals on grid lines (4) compute the smallest portal-respecting tour OPTp

slide-27
SLIDE 27

4

Euclidean TSP

Thm [Arora96] Euclidean TSP admits a PTAS

  • S. Arora

— Euclidean TSP and other related problems

Overview Let n = |V | (1) rescale/snap V

n2√ 2

1 1

(2) subdivide the grid with a quadtree

level 1 level 2 level 3

(3) place portals on grid lines (4) compute the smallest portal-respecting tour OPTp (5) Trim the edges of OPTp and output the result T

slide-28
SLIDE 28

5

(1) rescale V

  • S. Arora

— Euclidean TSP and other related problems

Let Vs be V scaled by a factor of s. ∀T, |T|s = s |T| ⇒ OPT for Vs is the same as OPT for V ⇒ solving the pb for Vs is the same as solving the pb for V

slide-29
SLIDE 29

5

(1) rescale V

  • S. Arora

— Euclidean TSP and other related problems

Let Vs be V scaled by a factor of s. ∀T, |T|s = s |T| ⇒ OPT for Vs is the same as OPT for V ⇒ solving the pb for Vs is the same as solving the pb for V

→ wlog, we assume that the smallest square containing V has sidelength n2√ 2

n2√ 2

slide-30
SLIDE 30

6

(1) snap V

1 1

g : v ∈ V → vg ∈ grid closest to v

  • S. Arora

— Euclidean TSP and other related problems

slide-31
SLIDE 31

6

(1) snap V

1 1

g : v ∈ V → vg ∈ grid closest to v

∀T = (v1, v2, · · · , vn), g(T) := (g(v1), g(v2), · · · , g(vn))

⇒ ∀T, ||g(T)| − |T|| ≤ n √ 2 Through g, a vertex is moved by at most

√ 2/2

⇒ an edge is elongated/shortened by at most √ 2 ⇒ |OPTg| ≤ |g(OPT)| ≤ |OPT| + n √ 2

  • S. Arora

— Euclidean TSP and other related problems

slide-32
SLIDE 32

6

(1) snap V

g : v ∈ V → vg ∈ grid closest to v

Q How to construct a path for V from OPTg? g−1(OPTg) is not defined uniquely

(several nodes of V may be mapped to a same grid point) OPTg

  • S. Arora

— Euclidean TSP and other related problems

slide-33
SLIDE 33

6

(1) snap V

g : v ∈ V → vg ∈ grid closest to v

Q How to construct a path for V from OPTg? g−1(OPTg) is not defined uniquely

(several nodes of V may be mapped to a same grid point) OPTg 2 1 3 4

→ Define g−1(OPTg) as follows: for each vertex vg of OPTg,

  • order the vertices of V mapped to vg and connect them to vg twice

≤ 2

√ 2 2

(+n √ 2)

  • S. Arora

— Euclidean TSP and other related problems

slide-34
SLIDE 34

6

(1) snap V

g : v ∈ V → vg ∈ grid closest to v

Q How to construct a path for V from OPTg? g−1(OPTg) is not defined uniquely

(several nodes of V may be mapped to a same grid point) 2 1 3 4

→ Define g−1(OPTg) as follows: for each vertex vg of OPTg,

  • order the vertices of V mapped to vg and connect them to vg twice
  • trim the resulting path

g−1(OPTg) (+n √ 2)

  • S. Arora

— Euclidean TSP and other related problems

slide-35
SLIDE 35

6

(1) snap V

g : v ∈ V → vg ∈ grid closest to v |g−1(OPTg)| ≤ |OPTg| + n √ 2 ≤ |g(OPT)| + n √ 2 ≤ |OPT| + 2n √ 2

≤ |OPT|

  • 1 + 1

n

  • |OPT| ≥ 2n2√

2

→ g−1(OPTg) (1 + ε)-approximates OPT for n ≥ 1

ε

  • S. Arora

— Euclidean TSP and other related problems

n2√ 2

slide-36
SLIDE 36

6

(1) snap V

g : v ∈ V → vg ∈ grid closest to v |g−1(OPTg)| ≤ |OPTg| + n √ 2 ≤ |g(OPT)| + n √ 2 ≤ |OPT| + 2n √ 2

≤ |OPT|

  • 1 + 1

n

  • |OPT| ≥ 2n2√

2

  • S. Arora

— Euclidean TSP and other related problems

n2√ 2 → wlog, we assume that the points of V have integer coordinates

slide-37
SLIDE 37

7

(2) Grid subdivision

  • S. Arora

— Euclidean TSP and other related problems

2k ≤ 2n2√ 2

Let k s.t. 2k−1 ≤ n2√ 2 ≤ 2k ≤ 2n2√ 2

1 1

slide-38
SLIDE 38

7

(2) Grid subdivision

  • S. Arora

— Euclidean TSP and other related problems

2k ≤ 2n2√ 2

Let k s.t. 2k−1 ≤ n2√ 2 ≤ 2k ≤ 2n2√ 2

1 1

level 1

slide-39
SLIDE 39

7

(2) Grid subdivision

  • S. Arora

— Euclidean TSP and other related problems

2k ≤ 2n2√ 2

Let k s.t. 2k−1 ≤ n2√ 2 ≤ 2k ≤ 2n2√ 2

1 1

level 1 level 2

slide-40
SLIDE 40

7

(2) Grid subdivision

  • S. Arora

— Euclidean TSP and other related problems

2k ≤ 2n2√ 2

Let k s.t. 2k−1 ≤ n2√ 2 ≤ 2k ≤ 2n2√ 2

1 1

level 1 level 2 level 3

O(n4) leaves ⇒ size = O(n4)

slide-41
SLIDE 41

8

(3) Portals

  • S. Arora

— Euclidean TSP and other related problems

Let m =

  • log n

ε

  • On each level i line, place 2im equally-spaced

portals, plus one at each grid point

slide-42
SLIDE 42

8

(3) Portals

  • S. Arora

— Euclidean TSP and other related problems

Let m =

  • log n

ε

  • On each level i line, place 2im equally-spaced

portals, plus one at each grid point Each level i line is incident to 2i pairs of level i squares ⇒ m portals per pair (w/o corners) Each level i square has a boundary made of level j ≤ i lines ⇒ at most 4m + 4 portals per square

slide-43
SLIDE 43

9

(4) Portal-respecting tours

Def A tour is portal-respecting if it crosses the grid only at portals

Pb: an exhaustive search has considers infinitely many instances, since the number of passes through a portal is unbounded

  • S. Arora

— Euclidean TSP and other related problems

slide-44
SLIDE 44

9

(4) Portal-respecting tours

Def A tour is portal-respecting if it crosses the grid only at portals

Pb: an exhaustive search has considers infinitely many instances, since the number of passes through a portal is unbounded

Def a tour is k-light if each portal is visited at most k times

  • S. Arora

— Euclidean TSP and other related problems

slide-45
SLIDE 45

9

(4) Portal-respecting tours

Def A tour is portal-respecting if it crosses the grid only at portals

Pb: an exhaustive search has considers infinitely many instances, since the number of passes through a portal is unbounded

Def a tour is k-light if each portal is visited at most k times a b Prop OPTp is 2-light

  • S. Arora

— Euclidean TSP and other related problems

slide-46
SLIDE 46

9

(4) Portal-respecting tours

Def A tour is portal-respecting if it crosses the grid only at portals

Pb: an exhaustive search has considers infinitely many instances, since the number of passes through a portal is unbounded

Def a tour is k-light if each portal is visited at most k times a b Prop OPTp is 2-light

  • S. Arora

— Euclidean TSP and other related problems

slide-47
SLIDE 47

9

(4) Portal-respecting tours

Def A tour is portal-respecting if it crosses the grid only at portals

Pb: an exhaustive search has considers infinitely many instances, since the number of passes through a portal is unbounded

Def a tour is k-light if each portal is visited at most k times a b c a′ b′ c′ (a, a′, b′, b, c, c′) Prop OPTp is 2-light

  • S. Arora

— Euclidean TSP and other related problems

slide-48
SLIDE 48

9

(4) Portal-respecting tours

Def A tour is portal-respecting if it crosses the grid only at portals

Pb: an exhaustive search has considers infinitely many instances, since the number of passes through a portal is unbounded

Def a tour is k-light if each portal is visited at most k times Prop OPTp is 2-light a c′ a′ c (a, a′, c, c′)

  • S. Arora

— Euclidean TSP and other related problems

slide-49
SLIDE 49

9

(4) Portal-respecting tours

Def A tour is portal-respecting if it crosses the grid only at portals

Pb: an exhaustive search has considers infinitely many instances, since the number of passes through a portal is unbounded

Def a tour is k-light if each portal is visited at most k times Prop OPTp is 2-light a c′ a′ c (a, c, a′, c′)

  • S. Arora

— Euclidean TSP and other related problems

slide-50
SLIDE 50

9

(4) Portal-respecting tours

Def A tour is portal-respecting if it crosses the grid only at portals

Pb: an exhaustive search has considers infinitely many instances, since the number of passes through a portal is unbounded

Def a tour is k-light if each portal is visited at most k times Prop OPTp is 2-light a c′ a′ c (a, c, a′, c′)

  • S. Arora

— Euclidean TSP and other related problems

slide-51
SLIDE 51

9

(4) Portal-respecting tours

Def A tour is portal-respecting if it crosses the grid only at portals

Pb: an exhaustive search has considers infinitely many instances, since the number of passes through a portal is unbounded

Def a tour is k-light if each portal is visited at most k times Prop OPTp is 2-light a c′ a′ c Prop OPTp does not self-intersect, except at portals (a, a′, c, c′)

  • S. Arora

— Euclidean TSP and other related problems

slide-52
SLIDE 52

9

(4) Portal-respecting tours

Def A tour is portal-respecting if it crosses the grid only at portals

Pb: an exhaustive search has considers infinitely many instances, since the number of passes through a portal is unbounded

Def a tour is k-light if each portal is visited at most k times Prop OPTp is 2-light a c′ a′ c Prop OPTp does not self-intersect, except at portals (a, c, a′, c′)

  • S. Arora

— Euclidean TSP and other related problems

slide-53
SLIDE 53

10

(4) Portal-respecting tours

  • S. Arora

— Euclidean TSP and other related problems

Goal: find shortest tour that is:

  • portal-respecting
  • 2-light
  • non self-intersecting (except at portals)

→ divide-and-conquer approach, using the quadtree

slide-54
SLIDE 54

10

(4) Portal-respecting tours

  • S. Arora

— Euclidean TSP and other related problems

Goal: find shortest tour that is:

  • portal-respecting
  • 2-light
  • non self-intersecting (except at portals)

→ divide-and-conquer approach, using the quadtree

For any square s, interface is defined by:

  • a number of passes through each portal of s
  • a paring between selected portals

3O(m) = nO(1/ε) Ω(m!) = Ω(nlog n)

slide-55
SLIDE 55

10

(4) Portal-respecting tours

  • S. Arora

— Euclidean TSP and other related problems

Goal: find shortest tour that is:

  • portal-respecting
  • 2-light
  • non self-intersecting (except at portals)

→ divide-and-conquer approach, using the quadtree

For any square s, interface is defined by:

  • a number of passes through each portal of s
  • a paring between selected portals

3O(m) = nO(1/ε) O(Cm) = O ` 22m´ = nO(1/ε)

( ( ) ) ( ( ) ) ( )

With the ordering of portals along the boundary, valid pairings are mapped injectively to balanced arrangements of parentheses

slide-56
SLIDE 56

10

(4) Portal-respecting tours

  • S. Arora

— Euclidean TSP and other related problems

Goal: find shortest tour that is:

  • portal-respecting
  • 2-light
  • non self-intersecting (except at portals)

→ divide-and-conquer approach, using the quadtree

Pb: a simple recursion is not sufficient (optimum for square s is not concatenation of optima of sons of s)

→ dynamic programming

slide-57
SLIDE 57

11

(4) Portal-respecting tours

  • S. Arora

— Euclidean TSP and other related problems

Lookup table:

R2

slide-58
SLIDE 58

11

(4) Portal-respecting tours

  • S. Arora

— Euclidean TSP and other related problems

Lookup table: size: O

  • n4 nO(1/ε)

R2

slide-59
SLIDE 59

11

(4) Portal-respecting tours

  • S. Arora

— Euclidean TSP and other related problems

Lookup table:

R2 Fill the table ”in depth”

slide-60
SLIDE 60

11

(4) Portal-respecting tours

  • S. Arora

— Euclidean TSP and other related problems

Lookup table:

R2 Fill the table ”in depth” ∀ (leaf,interface), report total length of pair- ing w/ straight-line segments (nodes are portals)

∀ (node, interface), nO(1/ε)

  • select interface for every son
  • retrieve best tour for each selected

(son, interface)

O(1) O(1)

slide-61
SLIDE 61

11

(4) Portal-respecting tours

  • S. Arora

— Euclidean TSP and other related problems

Lookup table:

R2 Fill the table ”in depth” total running time: O “ n4 nO(1/ε)” Output is the shortest tour that is portal-respecting (and 2-light and non self-intersecting)

slide-62
SLIDE 62

12

Euclidean TSP

Thm [Arora96] Euclidean TSP admits a PTAS

  • S. Arora

— Euclidean TSP and other related problems

Overview Let n = |V | (1) rescale/snap V

n2√ 2

1 1

(2) subdivide the grid with a quadtree

level 1 level 2 level 3

(3) place portals on grid lines (4) compute the smallest portal-respecting tour OPTp (5) Trim the edges of OPTp and output the result T

  • S. Arora

— Euclidean TSP and other related problems

slide-63
SLIDE 63

12

Euclidean TSP

Thm [Arora96] Euclidean TSP admits a PTAS

  • S. Arora

— Euclidean TSP and other related problems

Overview Let n = |V | (1) rescale/snap V

n2√ 2

1 1

(2) subdivide the grid with a quadtree

level 1 level 2 level 3

(3) place portals on grid lines (4) compute the smallest portal-respecting tour OPTp (5) Trim the edges of OPTp and output the result T

  • S. Arora

— Euclidean TSP and other related problems

Q Do we have |T| − |OPT| ≤ O(ε) |OPT|?

slide-64
SLIDE 64

12

Euclidean TSP

Thm [Arora96] Euclidean TSP admits a PTAS

  • S. Arora

— Euclidean TSP and other related problems

Overview Let n = |V | (1) rescale/snap V

n2√ 2

1 1

(2) subdivide the grid with a quadtree

level 1 level 2 level 3

(3) place portals on grid lines (4) compute the smallest portal-respecting tour OPTp (5) Trim the edges of OPTp and output the result T

  • S. Arora

— Euclidean TSP and other related problems

Q Do we have |OPTp| − |OPT| ≤ O(ε) |OPT|?

slide-65
SLIDE 65

12

Euclidean TSP

Thm [Arora96] Euclidean TSP admits a PTAS

  • S. Arora

— Euclidean TSP and other related problems

Overview Let n = |V | (1) rescale/snap V

n2√ 2

1 1

(2) subdivide the grid with a quadtree

level 1 level 2 level 3

(3) place portals on grid lines (4) compute the smallest portal-respecting tour OPTp (5) Trim the edges of OPTp and output the result T

  • S. Arora

— Euclidean TSP and other related problems

Q Do we have |p(OPT)| − |OPT| ≤ O(ε) |OPT|?

slide-66
SLIDE 66

13

Structure theorem

  • S. Arora

— Euclidean TSP and other related problems

Pb: |OPTp| can be made arbitrarily large compared to |OPT|

1 /4 3 /4 1 /2

n n 1 1

|V | = 2n

n2√ 2 /2 n 2 n + n 2

slide-67
SLIDE 67

13

Structure theorem

  • S. Arora

— Euclidean TSP and other related problems

Pb: |OPTp| can be made arbitrarily large compared to |OPT|

1 /4 3 /4 1 /2

n n 1 1

|V | = 2n |OPT| ≤ 2 n

2 n + 2 n 2 2

√ 2 + 2n2

√ 2 2 = n2(1 +

√ 2) + 2n √ 2

n2√ 2 /2 n 2 n + n 2

slide-68
SLIDE 68

13

Structure theorem

  • S. Arora

— Euclidean TSP and other related problems

Pb: |OPTp| can be made arbitrarily large compared to |OPT|

1 /4 3 /4 1 /2

n n 1 1

|V | = 2n |OPT| ≤ 2 n

2 n + 2 n 2 2

√ 2 + 2n2

√ 2 2 = n2(1 +

√ 2) + 2n √ 2

One crossing every n ⇒ overhead per consecutive portals ≥ 2 δ

4 = δ 2

⇒ total overhead ≥ 4m δ

2

=

(n2+2n)2 4

= Ω(|OPT|) (indep. of ε)

n2√ 2 /2 n 2 n + n 2

At level 2, 4m portals ⇒ inter- portal distance δ = n2+2n

8m

> > n

(same for tours close to OPT)

slide-69
SLIDE 69

13

Structure theorem

  • S. Arora

— Euclidean TSP and other related problems

Pb: |OPTp| can be made arbitrarily large compared to |OPT| Patch: randomize the algorithm:

Choose random integers 0 ≤ x, y ≤ 2k, then apply (2)-(5) to square of sidelength 2k+1 shifted by (−x, −y). 2k

x y

slide-70
SLIDE 70

13

Structure theorem

  • S. Arora

— Euclidean TSP and other related problems

2k For any vertical line l in domain, Px(l is at level i) = 2i−2

1+2k

x y

2i−1 level i lines, half of which reach l 1 + 2k possible values for x

Thm The expectation (over x, y) of |OPTg| − |OPT| is at most

k+1 m |OPT|

slide-71
SLIDE 71

13

Structure theorem

  • S. Arora

— Euclidean TSP and other related problems

2k

x y Thm The expectation (over x, y) of |OPTg| − |OPT| is at most

k+1 m |OPT|

→ transform OPT into a portal- respecting tour:

slide-72
SLIDE 72

13

Structure theorem

  • S. Arora

— Euclidean TSP and other related problems

2k

x y Thm The expectation (over x, y) of |OPTg| − |OPT| is at most

k+1 m |OPT|

→ transform OPT into a portal- respecting tour:

slide-73
SLIDE 73

13

Structure theorem

  • S. Arora

— Euclidean TSP and other related problems

Thm The expectation (over x, y) of |OPTg| − |OPT| is at most

k+1 m |OPT|

→ transform OPT into a portal- respecting tour:

(level i) Px(level i) = 2i−2

1+2k (same for y)

Expected overhead: Pk+1

i=1 2i−2 1+2k 2k+1 m 2i

≤ Pk+1

i=1 2i−2 2k 2k+1 m 2i = k+1 2m

For every crossing, overhead ≤ 2 times half the interportal distance = 2k+1

m 2i

slide-74
SLIDE 74

13

Structure theorem

  • S. Arora

— Euclidean TSP and other related problems

2k

x y Thm The expectation (over x, y) of |OPTg| − |OPT| is at most

k+1 m |OPT|

→ transform OPT into a portal- respecting tour:

Px(level i) = 2i−2

1+2k (same for y)

Expected overhead: Pk+1

i=1 2i−2 1+2k 2k+1 m 2i

≤ Pk+1

i=1 2i−2 2k 2k+1 m 2i = k+1 2m

For every crossing, overhead ≤ 2 times half the interportal distance = 2k+1

m 2i

OPT crosses the grid at most 2|OPT| times ⇒ total expected

  • verhead:

k+1 m

|OPT|

slide-75
SLIDE 75

13

Structure theorem

  • S. Arora

— Euclidean TSP and other related problems

Thm The expectation (over x, y) of |OPTg| − |OPT| is at most

k+1 m |OPT| ≤ 2 log n+3/2+1

log n/2ε

|OPT| ≤ (4 + 5/log n) ε |OPT| ≤ 9ε |OPT|.

2k ≤ 2n2√ 2 m = j

log n ε

k ≥ log n

(n ≥ 2)

slide-76
SLIDE 76

13

Structure theorem

  • S. Arora

— Euclidean TSP and other related problems

Thm The expectation (over x, y) of |OPTg| − |OPT| is at most

k+1 m |OPT|

Corollary Px,y (|OPTg| − |OPT| ≤ 18ε |OPT|) ≥ 1/2 ≤ 2 log n+3/2+1

log n/2ε

|OPT| ≤ (4 + 5/log n) ε |OPT| ≤ 9ε |OPT|.

→ Monte-Carlo procedure given a constant 0 < c < 1, repeat ⌈log(1/c)⌉ times the process ”randomization + (2)-(5)” and keep the best computed tour

  • T. Then, P (|OPTg| − |OPT| ≤ 18ε |OPT|) ≥ 1 − c

→ Derandomization try all possible choices of (x, y) (there are O(n4)

  • f those), and keep best tour.
slide-77
SLIDE 77

14

Higher dimensions

  • S. Arora

— Euclidean TSP and other related problems

The analysis extends to higher dimensions, except for the valid pair- ing argument. For any square s, interface is defined by:

  • a number of passes through each portal of s
  • a paring between selected portals

3O(m) = nO(1/ε) O(Cm) = O ` 22m´ = nO(1/ε)

( ( ) ) ( ( ) ) ( )

slide-78
SLIDE 78

14

Higher dimensions

  • S. Arora

— Euclidean TSP and other related problems

The analysis extends to higher dimensions, except for the valid pair- ing argument. Goal: find shortest tour that is:

  • portal-respecting
  • 2-light
  • non self-intersecting (except at portals)

→ divide-and-conquer approach, using the quadtree

Patch: instead of considering all 2-light tours, consider only those that intersect each side of the boundary of a given square at most l times.

slide-79
SLIDE 79

14

Higher dimensions

  • S. Arora

— Euclidean TSP and other related problems

The analysis extends to higher dimensions, except for the valid pair- ing argument. Patch: instead of considering all 2-light tours, consider only those that intersect each side of the boundary of a given square at most l times.

→ for l = Θ ` 1

ε

´ and m = ¨ log n

ε

˝ :

  • Ex,y [|OPTp(l)| − |OPT|] ≤ O(ε) |OPT|
  • ∀ square, #{interfaces} ≤ mO(l) l! ≤ (log n)O(1/ε)

⇒ space complexity ≤ O “ n4(log n)O(1/ε)” ⇒ time complexity ≤ O “ n4(log n)O(1/ε)”

R2

Thm Ex,y [|OPTp(l)| − |OPT|] ≤

  • log (n)+1

m

+

12 l−5

  • |OPT|
slide-80
SLIDE 80

14

Higher dimensions

  • S. Arora

— Euclidean TSP and other related problems

The analysis extends to higher dimensions, except for the valid pair- ing argument. Patch: instead of considering all 2-light tours, consider only those that intersect each side of the boundary of a given square at most l times.

→ for l = Θ “`√

d/ε

´d−1” and m = Θ “`

log (n) √ d/ε

´d−1” :

  • Ex,y [|OPTp(l)| − |OPT|] ≤ O(ε) |OPT|
  • ∀ square, #{interfaces} ≤ mO(2dl) l! ≤ O

„ (log n)

O “

(

√ d/ε) d−1”«

⇒ space complexity ≤ O „ n2d(log n)

O “

(

√ d/ε) d−1”«

⇒ time complexity ≤ O „ n2d(log n)

O “

(

√ d/ε) d−1”«

Rd

Thm Ex,y [|OPTp(l)| − |OPT|] ≤ O

  • log (n)

√ d m

1 d−1

+ (l+1)

1− 1 d−1

l+1−2d+1

  • |OPT|
slide-81
SLIDE 81

14

Higher dimensions

  • S. Arora

— Euclidean TSP and other related problems

The analysis extends to higher dimensions, except for the valid pair- ing argument. Patch: instead of considering all 2-light tours, consider only those that intersect each side of the boundary of a given square at most l times.

Proof → key ingredient: patching lemma.

Thm Ex,y [|OPTp(l)| − |OPT|] ≤

  • log (n)+1

m

+

12 l−5

  • |OPT|
  • reduce the # of crossings by dealing w/

several portals at once

  • if line of crossings has length s, then path

length increased by at most 3s

slide-82
SLIDE 82

14

Higher dimensions

  • S. Arora

— Euclidean TSP and other related problems

The analysis extends to higher dimensions, except for the valid pair- ing argument. Patch: instead of considering all 2-light tours, consider only those that intersect each side of the boundary of a given square at most l times.

Proof → key ingredient: patching lemma.

Thm Ex,y [|OPTp(l)| − |OPT|] ≤

  • log (n)+1

m

+

12 l−5

  • |OPT|

→ use patching lemma repeat- edly, to reduce the total # of crossings of OPT when made portal-respecting, while amortiz- ing the cost overhead due to patching.

slide-83
SLIDE 83

15

Other norms

  • S. Arora

— Euclidean TSP and other related problems

  • Cannot reduce pb to Euclidean TSP:

C1 |.|E ≤ |.| ≤ C2 |.|E → get T s.t. |T|E ≤ (1 + ε)|OPT|E |T| ≤ C2|T|E ≤ C2(1 + ε)|OPT|E ≤ C2

C1 (1 + ε)|OPT|

Euclidean

slide-84
SLIDE 84

15

Other norms

  • S. Arora

— Euclidean TSP and other related problems

  • Cannot reduce pb to Euclidean TSP:

C1 |.|E ≤ |.| ≤ C2 |.|E → get T s.t. |T|E ≤ (1 + ε)|OPT|E |T| ≤ C2|T|E ≤ C2(1 + ε)|OPT|E ≤ C2

C1 (1 + ε)|OPT|

Euclidean

  • Algorithm and its analysis hold for any other geometric norm

(modulo some constants factors in the optimal values of m and l). norm (= metric) is important for scaling phase embedding in Rd is also important

slide-85
SLIDE 85

16

Recap

  • S. Arora

— Euclidean TSP and other related problems

  • Euclidean TSP admits a PTAS. Idem for TSP in (Rd, |.|).
  • In Rd, the PTAS given has space and time complexities of

O

  • n2d(log n)

O “

(

√ d/ε) d−1”

  • Complexity is reduced to O
  • n(log n)

O “

(

√ d/ε) d−1”

if a reduced quadtree is used

  • By using a (1 + ε)-spanner of the input nodes to give better

”hints” of what portals to use, one reduces the complexity to O

  • n
  • log (n) + 2poly(1/ε)

in R2 [RaoSmith]