Gap Property Zahra Shojaee Yazd University December 7, 2015 1 / - - PowerPoint PPT Presentation

gap property
SMART_READER_LITE
LIVE PREVIEW

Gap Property Zahra Shojaee Yazd University December 7, 2015 1 / - - PowerPoint PPT Presentation

Gap Property Zahra Shojaee Yazd University December 7, 2015 1 / 67 Introduction Why do we study, this chapter? 2 / 67 Introduction Gap property Gap theorem ( O (log n ) wt ( MST ( S ))) 3 / 67 Introduction Gap property Gap


slide-1
SLIDE 1

Gap Property

Zahra Shojaee

Yazd University

December 7, 2015

1 / 67

slide-2
SLIDE 2

Introduction

Why do we study, this chapter?

2 / 67

slide-3
SLIDE 3

Introduction

◮ Gap property ◮ Gap theorem (O(log n)wt(MST(S)))

3 / 67

slide-4
SLIDE 4

Introduction

◮ Gap property ◮ Gap theorem (O(log n)wt(MST(S))) ◮ A lower bound on the weight

3 / 67

slide-5
SLIDE 5

Introduction

◮ Gap property ◮ Gap theorem (O(log n)wt(MST(S))) ◮ A lower bound on the weight ◮ An upper bound for points in the unit cube

3 / 67

slide-6
SLIDE 6

Introduction

◮ Gap property ◮ Gap theorem (O(log n)wt(MST(S))) ◮ A lower bound on the weight ◮ An upper bound for points in the unit cube ◮ A geometric lemma

3 / 67

slide-7
SLIDE 7

Introduction

◮ Gap property ◮ Gap theorem (O(log n)wt(MST(S))) ◮ A lower bound on the weight ◮ An upper bound for points in the unit cube ◮ A geometric lemma ◮ The 2-opt algorithm for the traveling salesman problem.

3 / 67

slide-8
SLIDE 8

Introduction(Geometric Analysis)

◮ S: Set of n points in Rd

4 / 67

slide-9
SLIDE 9

Introduction(Geometric Analysis)

◮ S: Set of n points in Rd ◮ E: Set of edges such that (u, v) ∈ E ⇒ u, v ∈ S and that

satisfy property P

4 / 67

slide-10
SLIDE 10

Introduction(Geometric Analysis)

◮ S: Set of n points in Rd ◮ E: Set of edges such that (u, v) ∈ E ⇒ u, v ∈ S and that

satisfy property P

◮ So we will follow a two-step approach

1) Devise a property P 2) Design an algorithm that computes a spanner whose edge set satisfies property P.

4 / 67

slide-11
SLIDE 11

The gap Property

w ≥ 0 , and E be a set of directed edges in Rd 1) W-gap property |pr| > w. min(|pq|, |rs|)

5 / 67

slide-12
SLIDE 12

The gap Property

w ≥ 0 , and E be a set of directed edges in Rd 1) W-gap property |pr| > w. min(|pq|, |rs|) 2) Strong w-gap property |pr| > w. min(|pq|, |rs|) |qs| > w. min(|pq|, |rs|)

5 / 67

slide-13
SLIDE 13

Gap Theorem

◮ S: Set of n points in Rd ◮ E: Set of edges such that (u, v) ∈ E ⇒ u, v ∈ S and that

satisfy property P

6 / 67

slide-14
SLIDE 14

Gap Theorem

◮ S: Set of n points in Rd ◮ E: Set of edges such that (u, v) ∈ E ⇒ u, v ∈ S and that

satisfy property P 1) If w ≥ 0 then each point of S is the source of at most on edge of E. 2) If w > 0 then wt(E) < (1 + 2

w ).wt(MST(S)). log n

6 / 67

slide-15
SLIDE 15

Gap Theorem

◮ S: Set of n points in Rd ◮ E: Set of edges such that (u, v) ∈ E ⇒ u, v ∈ S and that

satisfy property P 1) If w ≥ 0 then each point of S is the source of at most on edge of E. 2) If w > 0 then wt(E) < (1 + 2

w ).wt(MST(S)). log n

3) (In case of the strong w-gap property) If w ≥ 0 then each point of S is the sink of at most one edge of E.

6 / 67

slide-16
SLIDE 16

Proof of gap theorem

1) Let (p, q), (r, s) ∈ E which are distinct edges. min(|pq|, |rs|) ≥ 0

7 / 67

slide-17
SLIDE 17

Proof of gap theorem

1) Let (p, q), (r, s) ∈ E which are distinct edges. min(|pq|, |rs|) ≥ 0

◮ W-gap property |pr| > w. min(|pq|, |rs|)

7 / 67

slide-18
SLIDE 18

Proof of gap theorem

1) Let (p, q), (r, s) ∈ E which are distinct edges. min(|pq|, |rs|) ≥ 0

◮ W-gap property |pr| > w. min(|pq|, |rs|)

so p = r

7 / 67

slide-19
SLIDE 19

wt(E) < (1 + 2

w ).wt(MST(S)). log n

◮ |E| = m

8 / 67

slide-20
SLIDE 20

wt(E) < (1 + 2

w ).wt(MST(S)). log n

◮ |E| = m ◮ m = 1

8 / 67

slide-21
SLIDE 21

wt(E) < (1 + 2

w ).wt(MST(S)). log n

◮ |E| = m ◮ m = 1 ◮ if m(m ≥ 2) is even, then there is a E ′ ⊂ E such that

|E ′| = m

2 and wt(E ′) < 2 w wt(MST(S))

8 / 67

slide-22
SLIDE 22

wt(E) < (1 + 2

w ).wt(MST(S)). log n

◮ |E| = m ◮ m = 1 ◮ if m(m ≥ 2) is even, then there is a E ′ ⊂ E such that

|E ′| = m

2 and wt(E ′) < 2 w wt(MST(S)) ◮ if m(m ≥ 3) is odd, then there is a E ′ ∈ E such that

|E ′| = m+1

2

and wt(E ′) < 1 + 2

w wt(MST(S))

8 / 67

slide-23
SLIDE 23

wt(E) < (1 + 2

w ).wt(MST(S)). log n

if m is even and E ′ = m

2 :

9 / 67

slide-24
SLIDE 24

wt(E) < (1 + 2

w ).wt(MST(S)). log n

if m is even and E ′ = m

2 : ◮ consider an optimal TSP of S ◮ Renumber the points of S such that

TSP(S) = (P1, P2, ...., Pn, P1)

9 / 67

slide-25
SLIDE 25

wt(E) < (1 + 2

w ).wt(MST(S)). log n

if m is even and E ′ = m

2 : ◮ consider an optimal TSP of S ◮ Renumber the points of S such that

TSP(S) = (P1, P2, ...., Pn, P1)

◮ Number the edges of E according to the order in which we

visit the sources of the edges along this tour as e1, e2, ..., em (since S′

i s are pairwise distinct, this is unique)

9 / 67

slide-26
SLIDE 26

wt(E) < (1 + 2

w ).wt(MST(S)). log n

if m is even and E ′ = m

2 : ◮ consider an optimal TSP of S ◮ Renumber the points of S such that

TSP(S) = (P1, P2, ...., Pn, P1)

◮ Number the edges of E according to the order in which we

visit the sources of the edges along this tour as e1, e2, ..., em (since S′

i s are pairwise distinct, this is unique) ◮ ki: The index such that edge ei has point pki as its source

(1 ≤ i ≤ m) 1 ≤ k1 < k2 < ... ≤ n

9 / 67

slide-27
SLIDE 27

10 / 67

slide-28
SLIDE 28

wt(E) < (1 + 2

w ).wt(MST(S)). log n

◮ for 1 ≤ i ≤ m 2 let Ti the portion of TSP(S) that starts at

Pk2i−1 and ends at PK2i

11 / 67

slide-29
SLIDE 29

wt(E) < (1 + 2

w ).wt(MST(S)). log n

◮ for 1 ≤ i ≤ m 2 let Ti the portion of TSP(S) that starts at

Pk2i−1 and ends at PK2i

◮ Ex) T1 = (P1, P2, P3, P4)

11 / 67

slide-30
SLIDE 30

wt(E) < (1 + 2

w ).wt(MST(S)). log n

◮ The triangle inequality implies that |Pk2i−1PK2i| ≤ wt(Ti)

12 / 67

slide-31
SLIDE 31

wt(E) < (1 + 2

w ).wt(MST(S)). log n

◮ The triangle inequality implies that |Pk2i−1PK2i| ≤ wt(Ti) ◮ since e2i−1 and e2i satisfy the w-gap property then

12 / 67

slide-32
SLIDE 32

wt(E) < (1 + 2

w ).wt(MST(S)). log n

◮ The triangle inequality implies that |Pk2i−1PK2i| ≤ wt(Ti) ◮ since e2i−1 and e2i satisfy the w-gap property then

|Pk2i−1PK2i| > w. min(|e2i−1|, |e2i|)

12 / 67

slide-33
SLIDE 33

wt(E) < (1 + 2

w ).wt(MST(S)). log n

◮ The triangle inequality implies that |Pk2i−1PK2i| ≤ wt(Ti) ◮ since e2i−1 and e2i satisfy the w-gap property then

|Pk2i−1PK2i| > w. min(|e2i−1|, |e2i|)

◮ with these two inequalities we have

12 / 67

slide-34
SLIDE 34

wt(E) < (1 + 2

w ).wt(MST(S)). log n

◮ The triangle inequality implies that |Pk2i−1PK2i| ≤ wt(Ti) ◮ since e2i−1 and e2i satisfy the w-gap property then

|Pk2i−1PK2i| > w. min(|e2i−1|, |e2i|)

◮ with these two inequalities we have

min(|e2i−1|, |e2i|) < 1 w wt(Ti)

12 / 67

slide-35
SLIDE 35

wt(E) < (1 + 2

w ).wt(MST(S)). log n

◮ Since the portions T ′ i s are pairwise disjoint:

13 / 67

slide-36
SLIDE 36

wt(E) < (1 + 2

w ).wt(MST(S)). log n

◮ Since the portions T ′ i s are pairwise disjoint:

m 2

  • i=1

min(|e2i−1|, |e2i|) < 1 w

m 2

  • i=1

wt(Ti) ≤ 1 w wt(TSP(S))

13 / 67

slide-37
SLIDE 37

wt(E) < (1 + 2

w ).wt(MST(S)). log n

◮ Since the portions T ′ i s are pairwise disjoint:

m 2

  • i=1

min(|e2i−1|, |e2i|) < 1 w

m 2

  • i=1

wt(Ti) ≤ 1 w wt(TSP(S))

◮ E ′(E ′ ⊂ E) contains the shorter edge between e2i−1 and e2i.

(1 ≤ i ≤ m

2 )

13 / 67

slide-38
SLIDE 38

wt(E) < (1 + 2

w ).wt(MST(S)). log n

wt(E ′) < 1 w wt(TSP(S))

14 / 67

slide-39
SLIDE 39

wt(E) < (1 + 2

w ).wt(MST(S)). log n

wt(E ′) < 1 w wt(TSP(S)) wt(TSP(S)) ≤ 2wt(MST(S))

14 / 67

slide-40
SLIDE 40

wt(E) < (1 + 2

w ).wt(MST(S)). log n

wt(E ′) < 1 w wt(TSP(S)) wt(TSP(S)) ≤ 2wt(MST(S)) ⇒ wt(E ′) < 2 w wt(MST(S))

14 / 67

slide-41
SLIDE 41

wt(E) < (1 + 2

w ).wt(MST(S)). log n

◮ if m is odd,consider |E ′| = m+1 2

15 / 67

slide-42
SLIDE 42

wt(E) < (1 + 2

w ).wt(MST(S)). log n

◮ if m is odd,consider |E ′| = m+1 2

wt(E ′) < 1 + 2 w wt(MST(S))

15 / 67

slide-43
SLIDE 43

wt(E) < (1 + 2

w ).wt(MST(S)). log n

◮ We can prove below claim by an induction on m

16 / 67

slide-44
SLIDE 44

wt(E) < (1 + 2

w ).wt(MST(S)). log n

◮ We can prove below claim by an induction on m

wt(E) < (1 + 2 w ).wt(MST(S)). log m

16 / 67

slide-45
SLIDE 45

wt(E) < (1 + 2

w ).wt(MST(S)). log n

◮ We can prove below claim by an induction on m

wt(E) < (1 + 2 w ).wt(MST(S)). log m

◮ since m ≤ n we’ll be done.

16 / 67

slide-46
SLIDE 46

wt(E) < (1 + 2

w ).wt(MST(S)). log n

◮ m = 1

17 / 67

slide-47
SLIDE 47

wt(E) < (1 + 2

w ).wt(MST(S)). log n

◮ m = 1 ◮ Now, assume the latter inequality holds for all sets of edges

that have less than m elements and satisfy the w-gap

  • property. m ≥ 3

17 / 67

slide-48
SLIDE 48

wt(E) < (1 + 2

w ).wt(MST(S)). log n

◮ m = 1 ◮ Now, assume the latter inequality holds for all sets of edges

that have less than m elements and satisfy the w-gap

  • property. m ≥ 3

◮ let E ′ ⊂ E size of E at least m 2 and

wt(E ′) < (1 + 2 w ).wt(MST(S)). log m

17 / 67

slide-49
SLIDE 49

wt(E) < (1 + 2

w ).wt(MST(S)). log n

◮ size of E/E ′ is at most m 2 and it satisfies the w-gap property.

18 / 67

slide-50
SLIDE 50

wt(E) < (1 + 2

w ).wt(MST(S)). log n

◮ size of E/E ′ is at most m 2 and it satisfies the w-gap property. ◮ By the induction hypothesis:

18 / 67

slide-51
SLIDE 51

wt(E) < (1 + 2

w ).wt(MST(S)). log n

◮ size of E/E ′ is at most m 2 and it satisfies the w-gap property. ◮ By the induction hypothesis: ◮ wt(E/E ′) < (1 + 2 w ).wt(MST(S)). log m 2

18 / 67

slide-52
SLIDE 52

wt(E) < (1 + 2

w ).wt(MST(S)). log n

wt(E) = wt(E ′)+wt(E/E ′) < (1+ 2 w ).wt(MST(S))(1+log m 2 )

19 / 67

slide-53
SLIDE 53

wt(E) < (1 + 2

w ).wt(MST(S)). log n

wt(E) = wt(E ′)+wt(E/E ′) < (1+ 2 w ).wt(MST(S))(1+log m 2 )

◮ It can be used in any other metric space.

19 / 67

slide-54
SLIDE 54

A Lower Bound

Theorem 6.2.1:

◮ Let w be a real number with 0 < w < 1 ,and k ≥ 2 be an

integer.

◮ let n = 3k − 1

20 / 67

slide-55
SLIDE 55

A Lower Bound

Theorem 6.2.1:

◮ Let w be a real number with 0 < w < 1 ,and k ≥ 2 be an

integer.

◮ let n = 3k − 1 ◮ there exists a set S of n points on the real line and a set E of

directed edges, such that E satisfies the strong w-gap property and :

20 / 67

slide-56
SLIDE 56

A Lower Bound

Theorem 6.2.1:

◮ Let w be a real number with 0 < w < 1 ,and k ≥ 2 be an

integer.

◮ let n = 3k − 1 ◮ there exists a set S of n points on the real line and a set E of

directed edges, such that E satisfies the strong w-gap property and : wt(E) = Ω(wt(MST(S))) log n

20 / 67

slide-57
SLIDE 57

wt(E) = Ω(wt(MST(S)) log n)(proof )

◮ We partition the interval [0, 1] into 3i interval (0 ≤ i < k),

each having length 1

3i .

21 / 67

slide-58
SLIDE 58

wt(E) = Ω(wt(MST(S)) log n)(proof )

◮ We partition the interval [0, 1] into 3i interval (0 ≤ i < k),

each having length 1

3i . ◮ The j-th interval is

[ j 3i , j + 1 3i ]

21 / 67

slide-59
SLIDE 59

wt(E) = Ω(wt(MST(S)) log n)(proof )

◮ We partition the interval [0, 1] into 3i interval (0 ≤ i < k),

each having length 1

3i . ◮ The j-th interval is

[ j 3i , j + 1 3i ]

◮ We divide the j-th interval into three subintervals of equal

length.

21 / 67

slide-60
SLIDE 60

wt(E) = Ω(wt(MST(S)) log n)(proof )

◮ We partition the interval [0, 1] into 3i interval (0 ≤ i < k),

each having length 1

3i . ◮ The j-th interval is

[ j 3i , j + 1 3i ]

◮ We divide the j-th interval into three subintervals of equal

length.

◮ eij;middle of these three subintervals

21 / 67

slide-61
SLIDE 61

wt(E) = Ω(wt(MST(S)) log n)(proof )

eij = [ j

3i + 1 3i+1 , j 3i + 2 3i+1 ]

22 / 67

slide-62
SLIDE 62

wt(E) = Ω(wt(MST(S)) log n)(proof )

eij = [ j

3i + 1 3i+1 , j 3i + 2 3i+1 ]

Ei = {eij : j = 0, 1, ..., 3i − 1}

22 / 67

slide-63
SLIDE 63

wt(E) = Ω(wt(MST(S)) log n)(proof )

eij = [ j

3i + 1 3i+1 , j 3i + 2 3i+1 ]

Ei = {eij : j = 0, 1, ..., 3i − 1} E = E0 ∪ E1 ∪ .... ∪ Ek−1

22 / 67

slide-64
SLIDE 64

wt(E) = Ω(wt(MST(S)) log n)(proof )

|Ei| = 3i so |E| = 3i = 3k−1

2

23 / 67

slide-65
SLIDE 65

wt(E) = Ω(wt(MST(S)) log n)(proof )

|Ei| = 3i so |E| = 3i = 3k−1

2

|S| = n and since endpoints of all edges are pairwise distinct:

23 / 67

slide-66
SLIDE 66

wt(E) = Ω(wt(MST(S)) log n)(proof )

|Ei| = 3i so |E| = 3i = 3k−1

2

|S| = n and since endpoints of all edges are pairwise distinct: n = 2 × |E| = 3k − 1

23 / 67

slide-67
SLIDE 67

wt(E) = Ω(wt(MST(S)) log n)(proof )

24 / 67

slide-68
SLIDE 68

wt(E) = Ω(wt(MST(S)) log n)(proof )

eij = [ j

3i + 1 3i+1 , j 3i + 2 3i+1 ]

ekl = [ l

3l + 1 3k+1 , l 3k + 2 3k+1 ] ◮ if i = k then put l = j + 1 to have the nearest sources so we

have: |Seij − Seij+1| =

1 3i+1 Done! ◮ else if i < k( or k < i) then |Seij − Seij+1| = 1 3i+1 Done!

25 / 67

slide-69
SLIDE 69

wt(E) = Ω(wt(MST(S)) log n)(proof )

wt(Ei) = 1

3

wt(E) = k × 1

3

26 / 67

slide-70
SLIDE 70

wt(E) = Ω(wt(MST(S)) log n)(proof )

wt(Ei) = 1

3

wt(E) = k × 1

3

n = 3k − 1 ⇒ k = log(n + 1)

26 / 67

slide-71
SLIDE 71

wt(E) = Ω(wt(MST(S)) log n)(proof )

wt(Ei) = 1

3

wt(E) = k × 1

3

n = 3k − 1 ⇒ k = log(n + 1) wt(E) = 1

3(log(n + 1)) = Ω(logn)

26 / 67

slide-72
SLIDE 72

wt(E) = Ω(wt(MST(S)) log n)(proof )

◮ min element of S is S = 1 3k ◮ max element of S is S = 1 − 1 3k

27 / 67

slide-73
SLIDE 73

wt(E) = Ω(wt(MST(S)) log n)(proof )

◮ min element of S is S = 1 3k ◮ max element of S is S = 1 − 1 3k ◮ Since MST is consist of the sorted elements sequence:

wt(MST(S)) = 1 − 2 3k < 1

27 / 67

slide-74
SLIDE 74

wt(E) = Ω(wt(MST(S)) log n)(proof )

◮ min element of S is S = 1 3k ◮ max element of S is S = 1 − 1 3k ◮ Since MST is consist of the sorted elements sequence:

wt(MST(S)) = 1 − 2 3k < 1

◮ By applying these bounds :

wt(E) × wt(MST(S)) < wt(E) Ω(log n) × wt(MST(S)) < wt(E) × wt(MST(S)) < wt(E)

27 / 67

slide-75
SLIDE 75

wt(E) = Ω(wt(MST(S)) log n)(proof )

◮ min element of S is S = 1 3k ◮ max element of S is S = 1 − 1 3k ◮ Since MST is consist of the sorted elements sequence:

wt(MST(S)) = 1 − 2 3k < 1

◮ By applying these bounds :

wt(E) × wt(MST(S)) < wt(E) Ω(log n) × wt(MST(S)) < wt(E) × wt(MST(S)) < wt(E)

wt(E) = Ω(wt(MST(S))) log n

27 / 67

slide-76
SLIDE 76

Definitions

◮ cd = Π

d 2

Γ(d/2+1)

28 / 67

slide-77
SLIDE 77

Definitions

◮ cd = Π

d 2

Γ(d/2+1) ◮ If d is large then Cdw = 1 + 22d+1 CdWd

28 / 67

slide-78
SLIDE 78

Definitions

◮ cd = Π

d 2

Γ(d/2+1) ◮ If d is large then Cdw = 1 + 22d+1 CdWd ◮ Γ(x + 1) = x! ◮ Γ(x) = (x − 1)Γ(x − 1) ◮ Γ(1/2) = √π/2

28 / 67

slide-79
SLIDE 79

An Upper Bound(cont.)

Theorem 6.3.1:

◮ Let S be the set of n points in the d-dimensional unit cube

[0, 1]d

◮ And E be the set of directed edges that satisfies the w-gap

property

29 / 67

slide-80
SLIDE 80

An Upper Bound(cont.)

Theorem 6.3.1:

◮ Let S be the set of n points in the d-dimensional unit cube

[0, 1]d

◮ And E be the set of directed edges that satisfies the w-gap

property

◮ for d ≥ 2 and we have:

29 / 67

slide-81
SLIDE 81

An Upper Bound(cont.)

Theorem 6.3.1:

◮ Let S be the set of n points in the d-dimensional unit cube

[0, 1]d

◮ And E be the set of directed edges that satisfies the w-gap

property

◮ for d ≥ 2 and we have:

wt(E) ≤ Cdwn1− 1

d

◮ Cdw = 1 + 22d+1 CdWd

29 / 67

slide-82
SLIDE 82

wt(E) ≤ Cdwn1− 1

d

◮ |S| = n so |E| is at most n ◮ we partition E according length ◮ E =

  • El = (p, q) ∈ E : |pq| > n−1/d

Es = (p, q) ∈ E : |pq| ≤ n−1/d

30 / 67

slide-83
SLIDE 83

wt(E) ≤ Cdwn1− 1

d

◮ In case of Es:

wt(Es) ≤ |Es| × n

−1 d ≤ n × n −1 d = n1− 1 d 31 / 67

slide-84
SLIDE 84

wt(E) ≤ Cdwn1− 1

d

◮ In case of Es:

wt(Es) ≤ |Es| × n

−1 d ≤ n × n −1 d = n1− 1 d

◮ In case of El:

Ij = ( 2j n

1 d

, 2j+1 n

1 d

) l = 2j n

1 d 31 / 67

slide-85
SLIDE 85

wt(E) ≤ Cdwn1− 1

d

◮ In case of Es:

wt(Es) ≤ |Es| × n

−1 d ≤ n × n −1 d = n1− 1 d

◮ In case of El:

Ij = ( 2j n

1 d

, 2j+1 n

1 d

) l = 2j n

1 d

◮ Fj = {(p, q) ∈ El : |pq| ∈ Ij}

31 / 67

slide-86
SLIDE 86

wt(E) ≤ Cdwn1− 1

d

◮ if (p, q) ∈ El → n

−1 d < |pq| 32 / 67

slide-87
SLIDE 87

wt(E) ≤ Cdwn1− 1

d

◮ if (p, q) ∈ El → n

−1 d < |pq|

◮ So j ∈ [0, [log

√ dnd−1]]

32 / 67

slide-88
SLIDE 88

wt(E) ≤ Cdwn1− 1

d

◮ |Fj| = k ◮ Fj = {(pi, qi) : 1 ≤ i ≤ k}

33 / 67

slide-89
SLIDE 89

wt(E) ≤ Cdwn1− 1

d

◮ |Fj| = k ◮ Fj = {(pi, qi) : 1 ≤ i ≤ k} ◮

L = 2j n

1 d

→ L < |piqi| ≤ 2L

33 / 67

slide-90
SLIDE 90

wt(E) ≤ Cdwn1− 1

d

◮ Edges of E satisfy the w-gap property

34 / 67

slide-91
SLIDE 91

wt(E) ≤ Cdwn1− 1

d

◮ Edges of E satisfy the w-gap property ◮ ⇒ |pip′ i| > w. min(|piqi|, |p′ iq′ i|) > wL

34 / 67

slide-92
SLIDE 92

wt(E) ≤ Cdwn1− 1

d

◮ Edges of E satisfy the w-gap property ◮ ⇒ |pip′ i| > w. min(|piqi|, |p′ iq′ i|) > wL ◮ If we draw a d-dimensional ball Bi of radius wL 2 around each

point pi, (1 ≤ i ≤ k) , then these balls are pairwise disjoint.

34 / 67

slide-93
SLIDE 93

wt(E) ≤ Cdwn1− 1

d

◮ WL 2 ≤ w √ d 2

≤ 1

35 / 67

slide-94
SLIDE 94

wt(E) ≤ Cdwn1− 1

d

◮ WL 2 ≤ w √ d 2

≤ 1

◮ so at least a fraction of ( 1 2)d of each ball Bi is contained in

the unit cube.

35 / 67

slide-95
SLIDE 95

wt(E) ≤ Cdwn1− 1

d

◮ WL 2 ≤ w √ d 2

≤ 1

◮ so at least a fraction of ( 1 2)d of each ball Bi is contained in

the unit cube.

◮ volume of d-dimensional ball of radius R = CdRd ◮ cd = Π

d 2

Γ(d/2+1)

35 / 67

slide-96
SLIDE 96

wt(E) ≤ Cdwn1− 1

d

◮ So all volume of all portions of the balls Bi inside the unit

cube, is smaller than or equal to 1

36 / 67

slide-97
SLIDE 97

wt(E) ≤ Cdwn1− 1

d

◮ So all volume of all portions of the balls Bi inside the unit

cube, is smaller than or equal to 1

◮ k( 1 2)dCd( WL 2 )d ≤ 1 ◮ ⇒ k ≤ 22d CdW dLd

36 / 67

slide-98
SLIDE 98

wt(E) ≤ Cdwn1− 1

d

∀(pi, qi) ∈ Fj |piqi| ≤ 2L ⇒ wt(Fj) ≤ 2LK ≤ 2L

22d CdW dLd

37 / 67

slide-99
SLIDE 99

wt(E) ≤ Cdwn1− 1

d

∀(pi, qi) ∈ Fj |piqi| ≤ 2L ⇒ wt(Fj) ≤ 2LK ≤ 2L

22d CdW dLd

wt(Fj) ≤

22d+1 CdW d2j(d−1) × n1− 1

d 37 / 67

slide-100
SLIDE 100

wt(E) ≤ Cdwn1− 1

d

◮ m = ⌊log

√ dn

1 d ⌋ 38 / 67

slide-101
SLIDE 101

wt(E) ≤ Cdwn1− 1

d

◮ m = ⌊log

√ dn

1 d ⌋

◮ d ≥ 2 ⇒ m j=0 1 2j(d−1) < 2

38 / 67

slide-102
SLIDE 102

wt(E) ≤ Cdwn1− 1

d

◮ m = ⌊log

√ dn

1 d ⌋

◮ d ≥ 2 ⇒ m j=0 1 2j(d−1) < 2 ◮ wt(El) = m j=0 wt(Fj) ≤ m j=0 22d+1 CdW d2j(d−1) n1− 1

d 38 / 67

slide-103
SLIDE 103

wt(E) ≤ Cdwn1− 1

d

◮ m = ⌊log

√ dn

1 d ⌋

◮ d ≥ 2 ⇒ m j=0 1 2j(d−1) < 2 ◮ wt(El) = m j=0 wt(Fj) ≤ m j=0 22d+1 CdW d2j(d−1) n1− 1

d

≤ 22d+2

CdW d × n1− 1

d 38 / 67

slide-104
SLIDE 104

wt(E) ≤ Cdwn1− 1

d

◮ wt(El) = m j=0 wt(Fj) ≤ m j=0 22d+1 CdW d2j(d−1) n1− 1

d 39 / 67

slide-105
SLIDE 105

wt(E) ≤ Cdwn1− 1

d

◮ wt(El) = m j=0 wt(Fj) ≤ m j=0 22d+1 CdW d2j(d−1) n1− 1

d

◮ wt(E) = wt(Es) + wt(El) ≥ n1− 1

d (1 + 22d+2

CdW d )

39 / 67

slide-106
SLIDE 106

6.4)A useful geometric Lemma

Reminder Lemma 4.1.4)

◮ Let k ≥ 8 , θ = 2π k , and C be the cone such that q ∈ Cp

40 / 67

slide-107
SLIDE 107

6.4)A useful geometric Lemma

Reminder Lemma 4.1.4)

◮ Let k ≥ 8 , θ = 2π k , and C be the cone such that q ∈ Cp ◮ Let r be a point that its orthogonal projection is closest to q,

so:

40 / 67

slide-108
SLIDE 108

6.4)A useful geometric Lemma

Reminder Lemma 4.1.4)

◮ Let k ≥ 8 , θ = 2π k , and C be the cone such that q ∈ Cp ◮ Let r be a point that its orthogonal projection is closest to q,

so: |pr| ≤ |pq| cos θ |rp| ≤ |pq| − (cos θ − sin θ)|pr|

40 / 67

slide-109
SLIDE 109

Lemma 6.4.1

Let 0 < θ < π/4, 0 ≤ w < (cos θ − sin θ)/2, t ≥ 1/(cos θ − sin θ − 2w) and p, q, r, s ∈ Rd and:

41 / 67

slide-110
SLIDE 110

Lemma 6.4.1

Let 0 < θ < π/4, 0 ≤ w < (cos θ − sin θ)/2, t ≥ 1/(cos θ − sin θ − 2w) and p, q, r, s ∈ Rd and: 1.p = q , r = s

41 / 67

slide-111
SLIDE 111

Lemma 6.4.1

Let 0 < θ < π/4, 0 ≤ w < (cos θ − sin θ)/2, t ≥ 1/(cos θ − sin θ − 2w) and p, q, r, s ∈ Rd and: 1.p = q , r = s

  • 2. angle(pq, rs) ≤ θ

41 / 67

slide-112
SLIDE 112

Lemma 6.4.1

Let 0 < θ < π/4, 0 ≤ w < (cos θ − sin θ)/2, t ≥ 1/(cos θ − sin θ − 2w) and p, q, r, s ∈ Rd and: 1.p = q , r = s

  • 2. angle(pq, rs) ≤ θ

3.|rs| ≤ |pq|/ cos θ, and

41 / 67

slide-113
SLIDE 113

Lemma 6.4.1

Let 0 < θ < π/4, 0 ≤ w < (cos θ − sin θ)/2, t ≥ 1/(cos θ − sin θ − 2w) and p, q, r, s ∈ Rd and: 1.p = q , r = s

  • 2. angle(pq, rs) ≤ θ

3.|rs| ≤ |pq|/ cos θ, and 4.|pr| ≤ w|rs|

41 / 67

slide-114
SLIDE 114

6.4)A useful geometric Lemma

Then =      |pr| < |pq| |sq| < |pq| t|pr| + |rs| + t|sq| ≤ t|pq|

42 / 67

slide-115
SLIDE 115

Lemma 6.4.1(proof)

|rs| ≤ |pq|/ cos θ → |rs| < √ 2|pq| (0 < θ < π/4)

43 / 67

slide-116
SLIDE 116

Lemma 6.4.1(proof)

|rs| ≤ |pq|/ cos θ → |rs| < √ 2|pq| (0 < θ < π/4) |pr| < w|rs| → |pr| < |rs|/2 (w < 1/2)

43 / 67

slide-117
SLIDE 117

Lemma 6.4.1(proof)

|rs| ≤ |pq|/ cos θ → |rs| < √ 2|pq| (0 < θ < π/4) |pr| < w|rs| → |pr| < |rs|/2 (w < 1/2) ⇒ |pr| <

√ 2 2 |pq| < |pq|

43 / 67

slide-118
SLIDE 118

Lemma 6.4.1(proof)

case1: |ru| ≤ |rv|

44 / 67

slide-119
SLIDE 119

Lemma 6.4.1(proof)

case1: |ru| ≤ |rv| |sq| ≤ |su| + |uq|

44 / 67

slide-120
SLIDE 120

Lemma 6.4.1(proof)

case1: |ru| ≤ |rv| |sq| ≤ |su| + |uq| |sq| ≤ |su| + |uv| + |vq|

44 / 67

slide-121
SLIDE 121

Lemma 6.4.1(proof)

case1: |ru| ≤ |rv| |sq| ≤ |su| + |uq| |sq| ≤ |su| + |uv| + |vq| = |su| + |rv| − |ru| + |vq|

44 / 67

slide-122
SLIDE 122

Lemma 6.4.1(proof)

case1: |ru| ≤ |rv| |sq| ≤ |su| + |uq| |sq| ≤ |su| + |uv| + |vq| = |su| + |rv| − |ru| + |vq| = |su| + |pq| − |ru| + |rp|

44 / 67

slide-123
SLIDE 123

Lemma 6.4.1(proof)

|su| − |ru| = |rs|(sin α − cos α)

45 / 67

slide-124
SLIDE 124

Lemma 6.4.1(proof)

|su| − |ru| = |rs|(sin α − cos α) |sq| ≤ |rs|(sin α − cos α) + |pq| + |pr|

45 / 67

slide-125
SLIDE 125

Lemma 6.4.1(proof)

|su| − |ru| = |rs|(sin α − cos α) |sq| ≤ |rs|(sin α − cos α) + |pq| + |pr| α = angle(pq, rs) ≤ θ ⇒

  • sin α ≤ sin θ

cos α ≥ cos θ

45 / 67

slide-126
SLIDE 126

Lemma 6.4.1(proof)

|su| − |ru| = |rs|(sin α − cos α) |sq| ≤ |rs|(sin α − cos α) + |pq| + |pr| α = angle(pq, rs) ≤ θ ⇒

  • sin α ≤ sin θ

cos α ≥ cos θ ⇒ (sin α − cos α) ≤ (sin θ − cos θ)

45 / 67

slide-127
SLIDE 127

Lemma 6.4.1(proof)

|su| − |ru| = |rs|(sin α − cos α) |sq| ≤ |rs|(sin α − cos α) + |pq| + |pr| α = angle(pq, rs) ≤ θ ⇒

  • sin α ≤ sin θ

cos α ≥ cos θ ⇒ (sin α − cos α) ≤ (sin θ − cos θ) |sq| ≤ |rs|(sin α − cos α) + |pq| + |pr|

45 / 67

slide-128
SLIDE 128

Lemma 6.4.1(proof)

|su| − |ru| = |rs|(sin α − cos α) |sq| ≤ |rs|(sin α − cos α) + |pq| + |pr| α = angle(pq, rs) ≤ θ ⇒

  • sin α ≤ sin θ

cos α ≥ cos θ ⇒ (sin α − cos α) ≤ (sin θ − cos θ) |sq| ≤ |rs|(sin α − cos α) + |pq| + |pr| ≤ |rs|(sin θ − cos θ) + |pq| + w|rs|

45 / 67

slide-129
SLIDE 129

Lemma 6.4.1(proof)

|su| − |ru| = |rs|(sin α − cos α) |sq| ≤ |rs|(sin α − cos α) + |pq| + |pr| α = angle(pq, rs) ≤ θ ⇒

  • sin α ≤ sin θ

cos α ≥ cos θ ⇒ (sin α − cos α) ≤ (sin θ − cos θ) |sq| ≤ |rs|(sin α − cos α) + |pq| + |pr| ≤ |rs|(sin θ − cos θ) + |pq| + w|rs| = |pq| − |rs|(cos θ − sin θ − w)

45 / 67

slide-130
SLIDE 130

Lemma 6.4.1(proof)

|sq| ≤ |pq| − |rs|(sin θ − cos θ − w)

46 / 67

slide-131
SLIDE 131

Lemma 6.4.1(proof)

|sq| ≤ |pq| − |rs|(sin θ − cos θ − w) r = s ⇒ |rs| > 0 0 ≤ w < (cos θ − sin θ)/2 ⇒ (cos θ − sin θ − w) > 0

46 / 67

slide-132
SLIDE 132

Lemma 6.4.1(proof)

|sq| ≤ |pq| − |rs|(sin θ − cos θ − w) r = s ⇒ |rs| > 0 0 ≤ w < (cos θ − sin θ)/2 ⇒ (cos θ − sin θ − w) > 0 ⇒ |sq| < |pq|

46 / 67

slide-133
SLIDE 133

Lemma 6.4.1(proof)

t|pr| + |rs| + t|sq| ≤ t|pr| + |rs| + t|pq| − t|rs|(cos θ − sin θ − w)

47 / 67

slide-134
SLIDE 134

Lemma 6.4.1(proof)

t|pr| + |rs| + t|sq| ≤ t|pr| + |rs| + t|pq| − t|rs|(cos θ − sin θ − w) t|pr| + |rs| + t|pq| − t|rs|(cos θ − sin θ − w) ≤ tw|rs| + |rs| + t|pq| − t|rs|(cos θ − sin θ − w) ≤ = (1 − t(cos θ − sin θ − 2w))|rs| + t|pq|

47 / 67

slide-135
SLIDE 135

Lemma 6.4.1(proof)

t|pr| + |rs| + t|sq| ≤ (1 − t(cos θ − sin θ − 2w))|rs| + t|pq| t ≥

1 (cos θ−sin θ−2w) ⇒ 1 − t(cos θ − sin θ − 2w) ≤ 0

48 / 67

slide-136
SLIDE 136

Lemma 6.4.1(proof)

t|pr| + |rs| + t|sq| ≤ (1 − t(cos θ − sin θ − 2w))|rs| + t|pq| t ≥

1 (cos θ−sin θ−2w) ⇒ 1 − t(cos θ − sin θ − 2w) ≤ 0

t|pr| + |rs| + t|sq| ≤ t|pq|

48 / 67

slide-137
SLIDE 137

Lemma 6.4.1(proof)

case2: |ru| ≥ |rv|

49 / 67

slide-138
SLIDE 138

Lemma 6.4.1(proof)

case2: |ru| ≥ |rv| |sq| ≤ |su| + |uq|

49 / 67

slide-139
SLIDE 139

Lemma 6.4.1(proof)

case2: |ru| ≥ |rv| |sq| ≤ |su| + |uq| |sq| ≤ |su| + |uv| + |vq|

49 / 67

slide-140
SLIDE 140

Lemma 6.4.1(proof)

case2: |ru| ≥ |rv| |sq| ≤ |su| + |uq| |sq| ≤ |su| + |uv| + |vq| = |su| + |ru| − |rv| + |vq|

49 / 67

slide-141
SLIDE 141

Lemma 6.4.1(proof)

case2: |ru| ≥ |rv| |sq| ≤ |su| + |uq| |sq| ≤ |su| + |uv| + |vq| = |su| + |ru| − |rv| + |vq| = |su| + |ru| − |pq| + |pr|

49 / 67

slide-142
SLIDE 142

Lemma 6.4.1(proof)

|su| + |ru| = |rs|(sin α + cos α)

50 / 67

slide-143
SLIDE 143

Lemma 6.4.1(proof)

|su| + |ru| = |rs|(sin α + cos α) |sq| ≤ |rs|(sin α + cos α) − |pq| + |pr|

50 / 67

slide-144
SLIDE 144

Lemma 6.4.1(proof)

|su| + |ru| = |rs|(sin α + cos α) |sq| ≤ |rs|(sin α + cos α) − |pq| + |pr| |sq| ≤ |rs|(sin θ + cos θ) − |pq| + w|rs| |sq| ≤ |rs|(sin θ + cos θ) − |pq| + w|rs|

50 / 67

slide-145
SLIDE 145

Lemma 6.4.1(proof)

|su| + |ru| = |rs|(sin α + cos α) |sq| ≤ |rs|(sin α + cos α) − |pq| + |pr| |sq| ≤ |rs|(sin θ + cos θ) − |pq| + w|rs| |sq| ≤ |rs|(sin θ + cos θ) − |pq| + w|rs| = |rs|(sin θ + w) + |rs| cos θ − |pq|

50 / 67

slide-146
SLIDE 146

Lemma 6.4.1(proof)

|su| + |ru| = |rs|(sin α + cos α) |sq| ≤ |rs|(sin α + cos α) − |pq| + |pr| |sq| ≤ |rs|(sin θ + cos θ) − |pq| + w|rs| |sq| ≤ |rs|(sin θ + cos θ) − |pq| + w|rs| = |rs|(sin θ + w) + |rs| cos θ − |pq| |rs| ≤ |pq|

cos θ ⇒ |rs| cos θ − |pq| ≤ 0

50 / 67

slide-147
SLIDE 147

Lemma 6.4.1(proof)

|su| + |ru| = |rs|(sin α + cos α) |sq| ≤ |rs|(sin α + cos α) − |pq| + |pr| |sq| ≤ |rs|(sin θ + cos θ) − |pq| + w|rs| |sq| ≤ |rs|(sin θ + cos θ) − |pq| + w|rs| = |rs|(sin θ + w) + |rs| cos θ − |pq| |rs| ≤ |pq|

cos θ ⇒ |rs| cos θ − |pq| ≤ 0

|sq| ≤ |rs|(sin θ + w)

50 / 67

slide-148
SLIDE 148

Lemma 6.4.1(proof)

|rs| ≤ |pq|

cos θ , w < (cos θ−sin θ) 2

51 / 67

slide-149
SLIDE 149

Lemma 6.4.1(proof)

|rs| ≤ |pq|

cos θ , w < (cos θ−sin θ) 2

|sq| ≤ |rs|(sin θ + w) ⇒ |sq| ≤ |pq|

cos θ(sin θ + (cos θ−sin θ) 2

)

51 / 67

slide-150
SLIDE 150

Lemma 6.4.1(proof)

|rs| ≤ |pq|

cos θ , w < (cos θ−sin θ) 2

|sq| ≤ |rs|(sin θ + w) ⇒ |sq| ≤ |pq|

cos θ(sin θ + (cos θ−sin θ) 2

) = |pq|

2 (tan θ + 1)

51 / 67

slide-151
SLIDE 151

Lemma 6.4.1(proof)

|rs| ≤ |pq|

cos θ , w < (cos θ−sin θ) 2

|sq| ≤ |rs|(sin θ + w) ⇒ |sq| ≤ |pq|

cos θ(sin θ + (cos θ−sin θ) 2

) = |pq|

2 (tan θ + 1)

0 < θ < π

4 ⇒ tan θ < 1

⇒ |sq| < |pq|

51 / 67

slide-152
SLIDE 152

Lemma 6.4.1(proof)

t|pr| + |rs| + t|sq| ≤ t|pr| + |rs| + t|rs|(sin θ + w)

52 / 67

slide-153
SLIDE 153

Lemma 6.4.1(proof)

t|pr| + |rs| + t|sq| ≤ t|pr| + |rs| + t|rs|(sin θ + w) ≤ tw|rs| + |rs| + t|rs|(sin θ + w)

52 / 67

slide-154
SLIDE 154

Lemma 6.4.1(proof)

t|pr| + |rs| + t|sq| ≤ t|pr| + |rs| + t|rs|(sin θ + w) ≤ tw|rs| + |rs| + t|rs|(sin θ + w) = (1 + t(sin θ + 2w))|rs|

52 / 67

slide-155
SLIDE 155

Lemma 6.4.1(proof)

t|pq| − t|pq| + (1 + t(sin θ + 2w))|rs|

53 / 67

slide-156
SLIDE 156

Lemma 6.4.1(proof)

t|pq| − t|pq| + (1 + t(sin θ + 2w))|rs| ≤ t|pq| − t|rs| cos θ + (1 + t(sin θ + 2w))|rs|

53 / 67

slide-157
SLIDE 157

Lemma 6.4.1(proof)

t|pq| − t|pq| + (1 + t(sin θ + 2w))|rs| ≤ t|pq| − t|rs| cos θ + (1 + t(sin θ + 2w))|rs| = t|pq| − (t(cos θ − sin θ − 2w) − 1)|rs|

53 / 67

slide-158
SLIDE 158

Lemma 6.4.1(proof)

t|pq| − t|pq| + (1 + t(sin θ + 2w))|rs| ≤ t|pq| − t|rs| cos θ + (1 + t(sin θ + 2w))|rs| = t|pq| − (t(cos θ − sin θ − 2w) − 1)|rs| t ≥

1 (cos θ−sin θ−2w) ⇒ 1 − t(cos θ − sin θ − 2w) ≤ 0

53 / 67

slide-159
SLIDE 159

Lemma 6.4.1(proof)

t|pq| − t|pq| + (1 + t(sin θ + 2w))|rs| ≤ t|pq| − t|rs| cos θ + (1 + t(sin θ + 2w))|rs| = t|pq| − (t(cos θ − sin θ − 2w) − 1)|rs| t ≥

1 (cos θ−sin θ−2w) ⇒ 1 − t(cos θ − sin θ − 2w) ≤ 0

⇒ t|pr| + |rs| + t|sq| ≤ t|pq|

53 / 67

slide-160
SLIDE 160

Worst case analysis of the 2-OPT algorithm for the TSP

TSP is NP-hard

54 / 67

slide-161
SLIDE 161

Worst case analysis of the 2-OPT algorithm for the TSP

TSP is NP-hard 2-opt is a heuristic and fast algorithm

54 / 67

slide-162
SLIDE 162

Worst case analysis of the 2-OPT algorithm for the TSP

TSP is NP-hard 2-opt is a heuristic and fast algorithm Start with an arbitrary tour

54 / 67

slide-163
SLIDE 163

Worst case analysis of the 2-OPT algorithm for the TSP

TSP is NP-hard 2-opt is a heuristic and fast algorithm Start with an arbitrary tour |pr| + |qs| < |pq| + |rs|

54 / 67

slide-164
SLIDE 164

Worst case analysis of the 2-OPT algorithm for the TSP

TSP is NP-hard 2-opt is a heuristic and fast algorithm Start with an arbitrary tour |pr| + |qs| < |pq| + |rs| TSP(S) → T0

54 / 67

slide-165
SLIDE 165

Worst case analysis of the 2-OPT algorithm for the TSP

TSP is NP-hard 2-opt is a heuristic and fast algorithm Start with an arbitrary tour |pr| + |qs| < |pq| + |rs| TSP(S) → T0 wt(T0)/wt(TSP(S)) = O(log n)

54 / 67

slide-166
SLIDE 166

Worst case analysis of the 2-OPT algorithm for the TSP

Compute the approximation factor by Gap-theorem

55 / 67

slide-167
SLIDE 167

Worst case analysis of the 2-OPT algorithm for the TSP

Compute the approximation factor by Gap-theorem

wt(T0) wt(TSP(S)) =?

55 / 67

slide-168
SLIDE 168

Worst case analysis of the 2-OPT algorithm for the TSP

Compute the approximation factor by Gap-theorem

wt(T0) wt(TSP(S)) =?

We will show by gap property and prove wt(T0)/wt(TSP(S)) = O(log n)

55 / 67

slide-169
SLIDE 169

Worst case analysis of the 2-OPT algorithm for the TSP

T0:A tour along the points of s that is 2-optimal

56 / 67

slide-170
SLIDE 170

Worst case analysis of the 2-OPT algorithm for the TSP

T0:A tour along the points of s that is 2-optimal ∀(p, q), (r, s) ∈ T0 : |pr| + |qs| ≥ |pq| + |rs|

56 / 67

slide-171
SLIDE 171

Worst case analysis of the 2-OPT algorithm for the TSP

T0:A tour along the points of s that is 2-optimal ∀(p, q), (r, s) ∈ T0 : |pr| + |qs| ≥ |pq| + |rs| 0 < θ < π/4 , 0 < w < (cos θ − sin θ)/2

56 / 67

slide-172
SLIDE 172

Lemma 6.5.1

Let (p, q) and (r, s) be two distinct edges of T0 and assume that angle (pq, rs) ≤ o

57 / 67

slide-173
SLIDE 173

Lemma 6.5.1

Let (p, q) and (r, s) be two distinct edges of T0 and assume that angle (pq, rs) ≤ o then |pr| > w. min(|pq|, |rs|) ((p, q) and (r, s) satisfy the w-gap property)

57 / 67

slide-174
SLIDE 174

Lemma 6.5.1(proof)

we prove the lemma by contradiction assume that |rs| ≥ |pq| so w. min(|pq|, |rs|) is |rs| Now assume by contradiction that |pr| ≥ w|rs|

58 / 67

slide-175
SLIDE 175

Lemma 6.5.1(proof)

let t = 1/(cos θ − sin θ − 2w)

59 / 67

slide-176
SLIDE 176

Lemma 6.5.1(proof)

let t = 1/(cos θ − sin θ − 2w) so by geometric lemma 6.4.1: t|pr| + |rs| + t|sq| ≤ t|pq|

59 / 67

slide-177
SLIDE 177

Lemma 6.5.1(proof)

let t = 1/(cos θ − sin θ − 2w) so by geometric lemma 6.4.1: t|pr| + |rs| + t|sq| ≤ t|pq| since T0 is 2-opt, we have |pq| + |rs| ≤ |pr| + |sq|

59 / 67

slide-178
SLIDE 178

Lemma 6.5.1(proof)

let t = 1/(cos θ − sin θ − 2w) so by geometric lemma 6.4.1: t|pr| + |rs| + t|sq| ≤ t|pq| since T0 is 2-opt, we have |pq| + |rs| ≤ |pr| + |sq| so |pq| ≤ |pr| + |sq| − |rs|

59 / 67

slide-179
SLIDE 179

Lemma 6.5.1(proof)

t|pr| + |rs| + t|sq| ≤ t|pq| |pq| ≤ |pr| + |sq| − |rs|

60 / 67

slide-180
SLIDE 180

Lemma 6.5.1(proof)

t|pr| + |rs| + t|sq| ≤ t|pq| |pq| ≤ |pr| + |sq| − |rs| ⇒ t|pr| + |rs| + t|sq| ≤ t|pr| + t|sq| − t|rs| ⇒ (1 + t)|rs| ≤ 0

60 / 67

slide-181
SLIDE 181

Lemma 6.5.1(proof)

t|pr| + |rs| + t|sq| ≤ t|pq| |pq| ≤ |pr| + |sq| − |rs| ⇒ t|pr| + |rs| + t|sq| ≤ t|pr| + t|sq| − t|rs| ⇒ (1 + t)|rs| ≤ 0 this is a contradiction, because r = s so the edges satisfy the w-gap property

60 / 67

slide-182
SLIDE 182

worst-case analysis of the 2-OPT TSP

◮ partition T0 into O(1/θd − 1) subsets s.t. ant two edges

make angle of at most θ (theorem 5.3.3 makes it possible)

61 / 67

slide-183
SLIDE 183

worst-case analysis of the 2-OPT TSP

◮ partition T0 into O(1/θd − 1) subsets s.t. ant two edges

make angle of at most θ (theorem 5.3.3 makes it possible)

◮ Let (p, q) and (r, s) be toe distinct edges and

angle(pq, rs) ≤ θ

61 / 67

slide-184
SLIDE 184

worst-case analysis of the 2-OPT TSP

◮ partition T0 into O(1/θd − 1) subsets s.t. ant two edges

make angle of at most θ (theorem 5.3.3 makes it possible)

◮ Let (p, q) and (r, s) be toe distinct edges and

angle(pq, rs) ≤ θ

◮ then, (p, q) and (r, s) satisfy the w-gap property.

61 / 67

slide-185
SLIDE 185

worst-case analysis of the 2-OPT TSP

theorem 5.3.3: Let d ≥ 2 and 0 < θ ≤ π , E is a set of directed edges in Rd

62 / 67

slide-186
SLIDE 186

worst-case analysis of the 2-OPT TSP

theorem 5.3.3: Let d ≥ 2 and 0 < θ ≤ π , E is a set of directed edges in Rd we can partition E into O(1/θd − 1) subsets in time O(1/θd−1 + |E| log 1/θ) for each pair in the same subset (pq, rs) ≤ θ

62 / 67

slide-187
SLIDE 187

Worst case analysis of the 2-OPT TSP

◮ (By 6.5.1 and 6.1.2) If a set of edges satisfies the w-gap

property , then the weight of these edges is less than (1 + 2

w )wt(MST(S)) log n

63 / 67

slide-188
SLIDE 188

Worst case analysis of the 2-OPT TSP

◮ (By 6.5.1 and 6.1.2) If a set of edges satisfies the w-gap

property , then the weight of these edges is less than (1 + 2

w )wt(MST(S)) log n ◮ wt(MST(S)) ≤ wt(TSP(S))

63 / 67

slide-189
SLIDE 189

Worst case analysis of the 2-OPT TSP

◮ (By 6.5.1 and 6.1.2) If a set of edges satisfies the w-gap

property , then the weight of these edges is less than (1 + 2

w )wt(MST(S)) log n ◮ wt(MST(S)) ≤ wt(TSP(S)) ◮ wt(T0) = O( 1 wθd−1 wt(TSP(S)) log n)

63 / 67

slide-190
SLIDE 190

Theorem 6.5.2

◮ Let d ≥ 2, S a set of n points in Rd , and θ and W constant,

then:

64 / 67

slide-191
SLIDE 191

Theorem 6.5.2

◮ Let d ≥ 2, S a set of n points in Rd , and θ and W constant,

then:

◮ 2-opt algorithm computes a tour along the points of S, whose

length is O(log n) times the length of an optimal TSP(S).

64 / 67

slide-192
SLIDE 192

Theorem 6.5.2

◮ Let d ≥ 2, S a set of n points in Rd , and θ and W constant,

then:

◮ 2-opt algorithm computes a tour along the points of S, whose

length is O(log n) times the length of an optimal TSP(S).

◮ The worst-case approximation ratio of the 2-OPT algorithm is

O(logn)

64 / 67

slide-193
SLIDE 193

Theorem 6.5.2 (conclusion)

◮ The worst-case approximation ratio of the 2-OPT algorithm is

O(log n)

65 / 67

slide-194
SLIDE 194

Theorem 6.5.2 (conclusion)

◮ The worst-case approximation ratio of the 2-OPT algorithm is

O(log n)

◮ The ratio will be bigger than c log n log log n for so many ’n’

65 / 67

slide-195
SLIDE 195

Open problem

for all s ∈ Rd and all 2-opt tours T0 find the biggest value for

wt(T0) wt(TSP(S))

66 / 67

slide-196
SLIDE 196

67 / 67