Probability and Delaunay triangulations 1 Randomized algorithms for - - PowerPoint PPT Presentation

probability and delaunay triangulations
SMART_READER_LITE
LIVE PREVIEW

Probability and Delaunay triangulations 1 Randomized algorithms for - - PowerPoint PPT Presentation

Probability and Delaunay triangulations 1 Randomized algorithms for Delaunay triangulations Poisson Delaunay triangulation 2 - 1 Randomized algorithms for Delaunay triangulations Randomized backward analysis of binary trees Randomized


slide-1
SLIDE 1

1

Probability and Delaunay triangulations

slide-2
SLIDE 2

2 - 1

Randomized algorithms for Delaunay triangulations Poisson Delaunay triangulation

slide-3
SLIDE 3

2 - 2

  • Randomized backward analysis of binary trees
  • Randomized incremental construction of Delaunay
  • Jump and walk
  • The Delaunay hierarchy
  • Biased randomized incremental order
  • Chew algorithm for convex polygon

Randomized algorithms for Delaunay triangulations Poisson Delaunay triangulation

  • Poisson distribution
  • Slivnyak-Mecke formula
  • Blaschke-Petkanschin variables substitution
  • Stupid analysis of the expected degree
  • Straight walk expected analysis
  • Catalog of properties
slide-4
SLIDE 4

3 - 1 1 1

Sorting

slide-5
SLIDE 5

3 - 2 1 1

Sorting

slide-6
SLIDE 6

4 - 1

Binary tree

8

Sorting

slide-7
SLIDE 7

4 - 2

Binary tree

8

Sorting

slide-8
SLIDE 8

4 - 3

Binary tree

8

 8 > 8 Sorting

slide-9
SLIDE 9

4 - 4

Binary tree

8 4

Sorting

slide-10
SLIDE 10

4 - 5

Binary tree

8 4 7

Sorting

slide-11
SLIDE 11

4 - 6

Binary tree

8 4 7 14

Sorting

slide-12
SLIDE 12

4 - 7

Binary tree

8 4 7 14 12

Sorting

slide-13
SLIDE 13

4 - 8

Binary tree

8 4 7 14 12 1

Sorting

slide-14
SLIDE 14

4 - 9

Binary tree

8 4 7 14 12 1 11

Sorting

slide-15
SLIDE 15

4 - 10

Binary tree

8 4 7 14 12 1 11 ] 1, 1]

Sorting

slide-16
SLIDE 16

4 - 11

Binary tree

8 4 7 14 12 1 11 ] 1, 1] ]1, 4]

Sorting

slide-17
SLIDE 17

4 - 12

Binary tree

8 4 7 14 12 1 11 1 1 8 4 7 14 12 1 11

Sorting Sorting Sorting

slide-18
SLIDE 18

5 - 1 8 time new drawing

1

Sorting

slide-19
SLIDE 19

5 - 2 8 4 time new drawing

1 2

Sorting

slide-20
SLIDE 20

5 - 3 8 4 7 time new drawing

1 2 3

Sorting

slide-21
SLIDE 21

5 - 4 8 4 7 14 time new drawing

1 2 3 4

Sorting

slide-22
SLIDE 22

5 - 5 8 4 7 14 12 time new drawing

1 2 3 4 5

Sorting

slide-23
SLIDE 23

5 - 6 8 4 7 14 12 1 time new drawing

1 2 3 4 5 6

Sorting

slide-24
SLIDE 24

5 - 7 8 4 7 14 12 1 11 time new drawing

1 2 3 4 5 6 7

Sorting

slide-25
SLIDE 25

5 - 8 8 4 7 14 12 1 11 time new drawing

1 2 3 4 5 6 7

1 1 8 4 7 14 12 1 11

Sorting

slide-26
SLIDE 26

5 - 9 8 4 7 14 12 1 11 time new drawing

1 2 3 4 5 6 7

1 1 8 4 7 14 12 1 11

Sorting

slide-27
SLIDE 27

6 - 1 time

Sorting

slide-28
SLIDE 28

6 - 2 time 1 1

Sorting

slide-29
SLIDE 29

6 - 3 time 1 1

k

Sorting

slide-30
SLIDE 30

6 - 4 time 1 1

k

Sorting

slide-31
SLIDE 31

6 - 5 time 1 1

k n Localisation

Sorting

slide-32
SLIDE 32

6 - 6 time 1 1

k n Localisation

Sorting

slide-33
SLIDE 33

6 - 7 time 1 1

k n Localisation

Sorting

slide-34
SLIDE 34

6 - 8 time 1 1

k n Localisation

Sorting

slide-35
SLIDE 35

6 - 9 time 1 1

k n Localisation

Sorting

E []visited nodes] O( 2

k)

slide-36
SLIDE 36

6 - 10 time 1 1

k n Localisation

Total insertion : X

k

2 k ' 2 log n

Sorting

E []visited nodes] O( 2

k)

slide-37
SLIDE 37

6 - 11 time 1 1

k n Localisation

Total insertion : X

k

2 k ' 2 log n

Sorting

Total construction : X

k

2 log k ' 2n log n

E []visited nodes] O( 2

k)

slide-38
SLIDE 38

7 - 1 new drawing

] 1, 1[ conflict graph

Sorting

1 1 8 4 7 14 12 1 11

slide-39
SLIDE 39

7 - 2 8

] 1, 8[ ]8, 1[

Sorting

1 1 8 4 7 14 12 1 11

slide-40
SLIDE 40

7 - 3 8 4

] 1, 8[ ]8, 1[

14

] 1, 4[ ]4, 8[ ]8, 14[ ]14, 1[

Sorting

1 1 8 4 7 14 12 1 11

slide-41
SLIDE 41

8

Quicksort Unbalanced binary tree History graph Conflict graph Same analysis O(n log n) Backwards analysis Analyse last insertion and sum Last object is a random object

Sorting

slide-42
SLIDE 42

9

Randomization

Backwards analysis for Delaunay triangulation

slide-43
SLIDE 43

10 - 1

Delaunay triangulation ] of triangles during incremental construction?

slide-44
SLIDE 44

10 - 2

Delaunay triangulation ] of triangles during incremental construction?

slide-45
SLIDE 45

10 - 3

Delaunay triangulation ] triangles created/incident to last point? ] of triangles during incremental construction?

slide-46
SLIDE 46

10 - 4

Delaunay triangulation ] triangles created/incident to last point?

Last point?

] of triangles during incremental construction?

slide-47
SLIDE 47

10 - 5

1 n n

X

i=1

d(pi) 6

slide-48
SLIDE 48

10 - 6

1 n n

X

i=1

d(pi) 6

P 6 = 6n

slide-49
SLIDE 49

11 - 1 Alternative analysis Triangle ∆ with j stoppers

slide-50
SLIDE 50

11 - 2 Alternative analysis Triangle ∆ with j stoppers

Probability that it exists in the triangulation of a sample of size ↵n

' ↵3(1 ↵)j ↵3(1 ↵)

1 α 1

4↵3

if 2  j  1

α

slide-51
SLIDE 51

11 - 3 Alternative analysis Triangle ∆ with j stoppers

Probability that it exists in the triangulation of a sample of size ↵n

' ↵3(1 ↵)j ↵3(1 ↵)

1 α 1

4↵3

Size of the triangulation of the sample

=

n

X

j=0

P[∆withj stoppersisthere] ⇥ ]∆withj stoppers

if 2  j  1

α

slide-52
SLIDE 52

11 - 4 Alternative analysis Triangle ∆ with j stoppers

Probability that it exists in the triangulation of a sample of size ↵n

' ↵3(1 ↵)j ↵3(1 ↵)

1 α 1

4↵3

Size of the triangulation of the sample

=

n

X

j=0

P[∆withj stoppersisthere] ⇥ ]∆withj stoppers

  • 1/α

X

j=0

↵3 4 ⇥ ]∆ with j stoppers if 2  j  1

α

slide-53
SLIDE 53

11 - 5 Alternative analysis Triangle ∆ with j stoppers

Probability that it exists in the triangulation of a sample of size ↵n

' ↵3(1 ↵)j ↵3(1 ↵)

1 α 1

4↵3

Size of the triangulation of the sample

=

n

X

j=0

P[∆withj stoppersisthere] ⇥ ]∆withj stoppers

  • 1/α

X

j=0

↵3 4 ⇥ ]∆ with j stoppers= ↵3]∆ with  1

α stoppers

if 2  j  1

α

slide-54
SLIDE 54

11 - 6 Alternative analysis Triangle ∆ with j stoppers

Probability that it exists in the triangulation of a sample of size ↵n

' ↵3(1 ↵)j ↵3(1 ↵)

1 α 1

4↵3

Size of the triangulation of the sample

=

n

X

j=0

P[∆withj stoppersisthere] ⇥ ]∆withj stoppers

  • 1/α

X

j=0

↵3 4 ⇥ ]∆ with j stoppers= ↵3]∆ with  1

α stoppers

= O(↵n) if 2  j  1

α

slide-55
SLIDE 55

11 - 7 Alternative analysis Triangle ∆ with j stoppers

Probability that it exists in the triangulation of a sample of size ↵n

' ↵3(1 ↵)j ↵3(1 ↵)

1 α 1

4↵3

Size of the triangulation of the sample

=

n

X

j=0

P[∆withj stoppersisthere] ⇥ ]∆withj stoppers

  • 1/α

X

j=0

↵3 4 ⇥ ]∆ with j stoppers= ↵3]∆ with  1

α stoppers

= O(↵n) Size (order  k Voronoi)  αn

α3 = nk2

if 2  j  1

α

slide-56
SLIDE 56

11 - 8 Alternative analysis Triangle ∆ with j stoppers

Probability that it exists during the construction

=

3 j+3 2 j+2 1 j+1

slide-57
SLIDE 57

11 - 9 Alternative analysis Triangle ∆ with j stoppers

Probability that it exists during the construction

=

3 j+3 2 j+2 1 j+1

=

n

X

j=0

P[∆ with j stoppers appears] ⇥ ]∆ with j stoppers

] of created triangles

slide-58
SLIDE 58

11 - 10 Alternative analysis Triangle ∆ with j stoppers

Probability that it exists during the construction

=

3 j+3 2 j+2 1 j+1

=

n

X

j=0

P[∆ with j stoppers appears] ⇥ ]∆ with j stoppers

] of created triangles

=

n

X

j=0

(P[∆ with j] P[∆ with j + 1]) ⇥ ]∆ with  j stoppers

slide-59
SLIDE 59

11 - 11 Alternative analysis Triangle ∆ with j stoppers

Probability that it exists during the construction

=

3 j+3 2 j+2 1 j+1

=

n

X

j=0

P[∆ with j stoppers appears] ⇥ ]∆ with j stoppers

] of created triangles

=

n

X

j=0

(P[∆ with j] P[∆ with j + 1]) ⇥ ]∆ with  j stoppers '

n

X

j=0

18 j4 ⇥ nj2 = O(n X 1 j2 ) = O(n)

slide-60
SLIDE 60

11 - 12 Alternative analysis Triangle ∆ with j stoppers

It remains to analyze conflict location Conflict graph / History graph

slide-61
SLIDE 61

11 - 13 Alternative analysis Triangle ∆ with j stoppers

Probability that it exists during the construction

=

3 j+3 2 j+2 1 j+1

=

n

X

j=0

j ⇥ P[∆ with j stoppers appears] ⇥ ]∆ with j stoppers

] of conflicts occuring

slide-62
SLIDE 62

11 - 14 Alternative analysis Triangle ∆ with j stoppers

Probability that it exists during the construction

=

3 j+3 2 j+2 1 j+1

=

n

X

j=0

j ⇥ P[∆ with j stoppers appears] ⇥ ]∆ with j stoppers

] of conflicts occuring

=

n

X

j=0

j ⇥ (P[∆ with j] P[∆ with j + 1]) ⇥ ]∆ with  j stoppers

slide-63
SLIDE 63

11 - 15 Alternative analysis Triangle ∆ with j stoppers

Probability that it exists during the construction

=

3 j+3 2 j+2 1 j+1

=

n

X

j=0

j ⇥ P[∆ with j stoppers appears] ⇥ ]∆ with j stoppers

] of conflicts occuring

=

n

X

j=0

j ⇥ (P[∆ with j] P[∆ with j + 1]) ⇥ ]∆ with  j stoppers '

n

X

j=0

j ⇥ 18 j4 ⇥ nj2 = O(n X 1 j ) = O(nlog n)

slide-64
SLIDE 64

12 - 1

History graph

slide-65
SLIDE 65

12 - 2

History graph

slide-66
SLIDE 66

12 - 3

History graph

slide-67
SLIDE 67

12 - 4

Father Stepfather History graph

slide-68
SLIDE 68

13 - 1

Father Stepfather (Delaunay tree) History graph

slide-69
SLIDE 69

13 - 2

Father Stepfather (Delaunay tree) if conflict there was a conflict with the father

  • r the stepfather
  • r both

History graph

slide-70
SLIDE 70

14 - 1 Conflict graph

slide-71
SLIDE 71

14 - 2 Conflict graph

slide-72
SLIDE 72

14 - 3 Conflict graph

slide-73
SLIDE 73

14 - 4 Conflict graph Insert

slide-74
SLIDE 74

14 - 5 Conflict graph

slide-75
SLIDE 75

14 - 6 Conflict graph

slide-76
SLIDE 76

14 - 7 Conflict graph

slide-77
SLIDE 77

15 - 1 Walk

slide-78
SLIDE 78

15 - 2 Walk

slide-79
SLIDE 79

15 - 3 Walk

slide-80
SLIDE 80

15 - 4 Walk Complexity O(n)

slide-81
SLIDE 81

15 - 5 Walk Complexity O(n) T e a s e r p r

  • b

a b i l i t y l e c t u r e Better bounds for random points

slide-82
SLIDE 82

16 - 1 Jump and walk

slide-83
SLIDE 83

16 - 2 Jump and walk

slide-84
SLIDE 84

16 - 3 Jump and walk

slide-85
SLIDE 85

16 - 4 Jump and walk Hopefully shorter walk Designed for random points O( 3 pn) expected location time

slide-86
SLIDE 86

17 - 1 Jump and walk (no distribution hypothesis)

slide-87
SLIDE 87

17 - 2 Jump and walk (no distribution hypothesis) E [] of in ] = n

k

slide-88
SLIDE 88

17 - 3 Jump and walk (no distribution hypothesis) choose k =

2

pn Walk length = O n

k

  • E [] of

in ] = n

k

slide-89
SLIDE 89

17 - 4 Jump and walk (no distribution hypothesis) choose k =

2

pn Delaunay hierarchy Walk length = O n

k

  • E [] of

in ] = n

k

slide-90
SLIDE 90

17 - 5 Jump and walk (no distribution hypothesis) choose k =

2

pn Delaunay hierarchy

n k1

Walk length = O n

k

  • E [] of

in ] = n

k

slide-91
SLIDE 91

17 - 6 Jump and walk (no distribution hypothesis) choose k =

2

pn Delaunay hierarchy

n k1 + k1 k2

Walk length = O n

k

  • E [] of

in ] = n

k

slide-92
SLIDE 92

17 - 7 Jump and walk (no distribution hypothesis) choose k =

2

pn Delaunay hierarchy

n k1 + k1 k2

Walk length = O n

k

  • E [] of

in ] = n

k

+ k2

k3 + . . .

slide-93
SLIDE 93

17 - 8 Jump and walk (no distribution hypothesis) choose k =

2

pn Delaunay hierarchy

n k1 + k1 k2

Walk length = O n

k

  • E [] of

in ] = n

k

+ k2

k3 + . . .

choose

ki ki+1 = ↵

slide-94
SLIDE 94

17 - 9 Jump and walk (no distribution hypothesis) choose k =

2

pn Delaunay hierarchy

n k1 + k1 k2

Walk length = O n

k

  • E [] of

in ] = n

k

+ k2

k3 + . . .

choose

ki ki+1 = ↵

point location in O (↵ logα n)

slide-95
SLIDE 95

17 - 10 Jump and walk (no distribution hypothesis) choose k =

2

pn Delaunay hierarchy

n k1 + k1 k2

Walk length = O n

k

  • E [] of

in ] = n

k

+ k2

k3 + . . .

choose

ki ki+1 = ↵

point location in O (↵ logα n) point location in O (p↵ logα n)

slide-96
SLIDE 96

18 - 1 Technical detail Walk length = O ] of in

( ) = O

n

k

slide-97
SLIDE 97

18 - 2 Technical detail Walk length = O ] of in

( ) = O

n

k

  • random point

not a random point

slide-98
SLIDE 98

18 - 3 Technical detail Walk length = O ] of in

( ) = O

n

k

  • random point

not a random point E [d ] = 1 n X

q

dNN(q) = 1 n X

q

X

v=NN(q)

dv = 1 n X

v

X

q;v=NN(q)

dv  1 n X

v

6dv  36

slide-99
SLIDE 99

18 - 4 Technical detail Walk length = O ] of in

( ) = O

n

k

  • random point

not a random point E [d ] = 1 n X

q

dNN(q) = 1 n X

q

X

v=NN(q)

dv = 1 n X

v

X

q;v=NN(q)

dv  1 n X

v

6dv  36 P d

slide-100
SLIDE 100

19 How many randomness is necessary? If the data are not known in advance shuffle locally

Randomization

slide-101
SLIDE 101

20

Drawbacks of random order non locality of memory access data structure for point location Hilbert sort

Randomization

slide-102
SLIDE 102

21 - 1

slide-103
SLIDE 103

21 - 2

slide-104
SLIDE 104

21 - 3

slide-105
SLIDE 105

21 - 4

slide-106
SLIDE 106

22

Drawbacks of random order non locality of memory access data structure for point location Hilbert sort Last point is not at all a random point Walk should be fast no control of degree of last point

slide-107
SLIDE 107

23 - 1

slide-108
SLIDE 108

23 - 2

slide-109
SLIDE 109

23 - 3

slide-110
SLIDE 110

23 - 4

slide-111
SLIDE 111

23 - 5

slide-112
SLIDE 112

23 - 6

slide-113
SLIDE 113

24 - 1 Triangle ∆ with j stoppers

slide-114
SLIDE 114

24 - 2 Triangle ∆ with j stoppers Size (order  k Voronoi)  αn

α3 = nk2

slide-115
SLIDE 115

24 - 3 Triangle ∆ with j stoppers

Probability that it exists during the construction

=

3 j+3 2 j+2 1 j+1

slide-116
SLIDE 116

24 - 4 Triangle ∆ with j stoppers

Probability that it exists during the construction

=

3 j+3 2 j+2 1 j+1

remains Θ(j3)

slide-117
SLIDE 117

24 - 5 Triangle ∆ with j stoppers

Probability that it exists during the construction

=

3 j+3 2 j+2 1 j+1

=

n

X

j=0

P[∆ with j stoppers appears] ⇥ ]∆ with j stoppers

] of created triangles

' O( X nj2 j4 ) = O(n)

remains Θ(j3)

slide-118
SLIDE 118

24 - 6 Triangle ∆ with j stoppers

Probability that it exists during the construction

=

3 j+3 2 j+2 1 j+1

=

n

X

j=0

j ⇥ P[∆ with j stoppers appears] ⇥ ]∆ with j stoppers

] of conflicts occuring

' O( X j nj2 j4 ) = O(nlog n)

remains Θ(j3)

slide-119
SLIDE 119

25 - 1 random order (visibility walk) x-order Hilbert order Biased order (Spatial sorting) locate using Delaunay hierarchy

0.7 seconds 157 seconds 3 seconds 0.8 seconds 6 seconds

Delaunay 2D 1M random points

slide-120
SLIDE 120

25 - 2 random order (visibility walk) x-order Hilbert order Biased order (Spatial sorting) locate using Delaunay hierarchy

Delaunay 2D 100K parabola points

128 seconds 632 seconds 46 seconds 0.3 seconds 0.3 seconds

slide-121
SLIDE 121

48

T h e e n d