Delaunay Triangulations-Part II A.Rahiminasab December 2014 1 / 52 - - PowerPoint PPT Presentation

delaunay triangulations part ii
SMART_READER_LITE
LIVE PREVIEW

Delaunay Triangulations-Part II A.Rahiminasab December 2014 1 / 52 - - PowerPoint PPT Presentation

Review Computing the Delaunay Triangulation Analysis Conclusion Department of Computer Science, Yazd University Delaunay Triangulations-Part II A.Rahiminasab December 2014 1 / 52 Review Computing the Delaunay Triangulation Triangulations


slide-1
SLIDE 1

Review Computing the Delaunay Triangulation Analysis Conclusion

Department of Computer Science, Yazd University

Delaunay Triangulations-Part II

A.Rahiminasab

December 2014

1 / 52

slide-2
SLIDE 2

Review Computing the Delaunay Triangulation Analysis Conclusion Triangulations of Planar Point Sets The Delaunay Triangulation

Review

Purpose: Approximating a terrain by constructing a polyhedral terrain from a set P of sample points.

2 / 52

slide-3
SLIDE 3

Review Computing the Delaunay Triangulation Analysis Conclusion Triangulations of Planar Point Sets The Delaunay Triangulation

Review

Theorem 9.1: Let P ={p1,p2,...,pn} be a point set. A triangulation of P is a maximal planar subdivision with vertex set P. ☞ triangles= 2n − 2 − k

Back

☞ edges= 3n − 3 − k where k is the number of points in P on the convex hull of P Theorem 9.2:(Thales Theorem) Let C be a circle,L a line intersecting C in points a and b, and p,q,r and s points lying on the same side of L.Suppose that p and q lie on C, that r lies inside C,and that s lies outside C.Then ∠arb > ∠abq = ∠aqb > ∠asb

3 / 52

slide-4
SLIDE 4

Review Computing the Delaunay Triangulation Analysis Conclusion Triangulations of Planar Point Sets The Delaunay Triangulation

Review

Observation 9.3: Let T be a triangulation with an illegal edge e.Let T ′ be the triangulation obtained from T by flipping e.Then A(T ′) > A(T) Definition: A legal triangulation is a triangulation that does not contain any illegal edge. Conclusion: Any angle-optimal triangulation is legal.

4 / 52

slide-5
SLIDE 5

Review Computing the Delaunay Triangulation Analysis Conclusion Triangulations of Planar Point Sets The Delaunay Triangulation

Review

Observation 9.3: Let T be a triangulation with an illegal edge e.Let T ′ be the triangulation obtained from T by flipping e.Then A(T ′) > A(T) Definition: A legal triangulation is a triangulation that does not contain any illegal edge. Conclusion: Any angle-optimal triangulation is legal.

4 / 52

slide-6
SLIDE 6

Review Computing the Delaunay Triangulation Analysis Conclusion Triangulations of Planar Point Sets The Delaunay Triangulation

Review

Observation 9.3: Let T be a triangulation with an illegal edge e.Let T ′ be the triangulation obtained from T by flipping e.Then A(T ′) > A(T) Definition: A legal triangulation is a triangulation that does not contain any illegal edge. Conclusion: Any angle-optimal triangulation is legal.

4 / 52

slide-7
SLIDE 7

Review Computing the Delaunay Triangulation Analysis Conclusion Triangulations of Planar Point Sets The Delaunay Triangulation

Review

Lemma 9.4: Let edge pipj be incident to triangles pipjpk and pipjpl and let C be the circle through pi,pj and pk. The edge pipj is illegal if and only if the point pl lies in the interior of C. ☞ if the points pi,pj,pk,pl from a convex quadrilateral and do not lie on a common circle ⇒ exactly one of pipj and pkpl is an illegal edge.

Back

Pk Pi Pj Pl

5 / 52

slide-8
SLIDE 8

Review Computing the Delaunay Triangulation Analysis Conclusion Triangulations of Planar Point Sets The Delaunay Triangulation

Review

Lemma 9.4: Let edge pipj be incident to triangles pipjpk and pipjpl and let C be the circle through pi,pj and pk. The edge pipj is illegal if and only if the point pl lies in the interior of C. ☞ if the points pi,pj,pk,pl from a convex quadrilateral and do not lie on a common circle ⇒ exactly one of pipj and pkpl is an illegal edge.

Back

Pk Pi Pj Pl

5 / 52

slide-9
SLIDE 9

Review Computing the Delaunay Triangulation Analysis Conclusion Triangulations of Planar Point Sets The Delaunay Triangulation

Review

Lemma 9.4: Let edge pipj be incident to triangles pipjpk and pipjpl and let C be the circle through pi,pj and pk. The edge pipj is illegal if and only if the point pl lies in the interior of C. ☞ if the points pi,pj,pk,pl from a convex quadrilateral and do not lie on a common circle ⇒ exactly one of pipj and pkpl is an illegal edge.

Back

Pk Pi Pj Pl

5 / 52

slide-10
SLIDE 10

Review Computing the Delaunay Triangulation Analysis Conclusion Triangulations of Planar Point Sets The Delaunay Triangulation

Review

6 / 52

slide-11
SLIDE 11

Review Computing the Delaunay Triangulation Analysis Conclusion Triangulations of Planar Point Sets The Delaunay Triangulation

Review

1

A set P of n points in the plane

2

The Voronoi diagram V or(P) is the subdivision of the plane into Voronoi cells V (p) for all p ∈P

3

Let G be the dual graph of V or(P)

4

The Delaunay graph DG(P) is the straight line embedding of G.

Back 7 / 52

slide-12
SLIDE 12

Review Computing the Delaunay Triangulation Analysis Conclusion Triangulations of Planar Point Sets The Delaunay Triangulation

Review

1

A set P of n points in the plane

2

The Voronoi diagram V or(P) is the subdivision of the plane into Voronoi cells V (p) for all p ∈P

3

Let G be the dual graph of V or(P)

4

The Delaunay graph DG(P) is the straight line embedding of G.

Back 7 / 52

slide-13
SLIDE 13

Review Computing the Delaunay Triangulation Analysis Conclusion Triangulations of Planar Point Sets The Delaunay Triangulation

Review

1

A set P of n points in the plane

2

The Voronoi diagram V or(P) is the subdivision of the plane into Voronoi cells V (p) for all p ∈P

3

Let G be the dual graph of V or(P)

4

The Delaunay graph DG(P) is the straight line embedding of G.

Back 7 / 52

slide-14
SLIDE 14

Review Computing the Delaunay Triangulation Analysis Conclusion Triangulations of Planar Point Sets The Delaunay Triangulation

Review

1

A set P of n points in the plane

2

The Voronoi diagram V or(P) is the subdivision of the plane into Voronoi cells V (p) for all p ∈P

3

Let G be the dual graph of V or(P)

4

The Delaunay graph DG(P) is the straight line embedding of G.

Back 7 / 52

slide-15
SLIDE 15

Review Computing the Delaunay Triangulation Analysis Conclusion Triangulations of Planar Point Sets The Delaunay Triangulation

Review

Lemma 9.5: The Delaunay graph of a planar point set is a plane graph. √ The edge pipj is in the Delaunay graph Dg(P) ⇐ ⇒there is a Cij whit pi and pj on its boundary and no other site of P contained in it. The center of such a disc lies on the common edge of V (pi) and V (pj). ☞ If the point set P is in general position then the Delaunay graph is a triangulation.

8 / 52

slide-16
SLIDE 16

Review Computing the Delaunay Triangulation Analysis Conclusion Triangulations of Planar Point Sets The Delaunay Triangulation

Review

Theorem 9.6:

Back Let P be a set of points in the plane,

Three points pi,pj,pk ∈P are vertices of the same face of the Delaunay graph of P ⇐ ⇒ the circle through pi,pj,pk contains no point of P in its interior. Two points pi,pj ∈Pform an edge of the Delaunay graph of P ⇐ ⇒ there is a closed disc C that contains pi and pj on its boundary and does not contain any other point of P. Theorem 9.7: T is a Delaunay triangulation of P ⇐ ⇒ the circumcircle of any triangle of T does not contain a point of P in its interior.

9 / 52

slide-17
SLIDE 17

Review Computing the Delaunay Triangulation Analysis Conclusion Triangulations of Planar Point Sets The Delaunay Triangulation

Review

10 / 52

slide-18
SLIDE 18

Review Computing the Delaunay Triangulation Analysis Conclusion Triangulations of Planar Point Sets The Delaunay Triangulation

Review

Theorem 9.8: Let P be a set of points in the plane.A triangulation T of P is legal ⇐ ⇒ T is a Delaunay triangulation P. Theorem 9.9: Let P be a set of points in the plane.Any angle-optimal triangulation of P is a Delaunay triangulation P. Furthermore,any Delaunay triangulation of P maximizes the minimum angle over all triangulations ofP.

11 / 52

slide-19
SLIDE 19

Review Computing the Delaunay Triangulation Analysis Conclusion Triangulations of Planar Point Sets The Delaunay Triangulation

Review

√ A Delaunay triangulation for a set P of points in a plane is a triangulation DT(P) such that no point in P is inside the circumcircle of any triangle in DT(P).

12 / 52

slide-20
SLIDE 20

Review Computing the Delaunay Triangulation Analysis Conclusion Triangulations of Planar Point Sets The Delaunay Triangulation

Review

Delaunay triangulations maximize the minimum angle of all the angles of the triangles in the triangulation; they tend to avoid skinny triangles. For a set of points on the same line there is no Delaunay triangulation (the notion of triangulation is degenerate for this case) For four or more points on the same circle (e.g., the vertices of a rectangle) the Delaunay triangulation is not unique By considering circumscribed spheres, the notion of Delaunay triangulation extends to three and higher dimensions

13 / 52

slide-21
SLIDE 21

Review Computing the Delaunay Triangulation Analysis Conclusion Triangulations of Planar Point Sets The Delaunay Triangulation

Review

Delaunay triangulations maximize the minimum angle of all the angles of the triangles in the triangulation; they tend to avoid skinny triangles. For a set of points on the same line there is no Delaunay triangulation (the notion of triangulation is degenerate for this case) For four or more points on the same circle (e.g., the vertices of a rectangle) the Delaunay triangulation is not unique By considering circumscribed spheres, the notion of Delaunay triangulation extends to three and higher dimensions

13 / 52

slide-22
SLIDE 22

Review Computing the Delaunay Triangulation Analysis Conclusion Triangulations of Planar Point Sets The Delaunay Triangulation

Review

Delaunay triangulations maximize the minimum angle of all the angles of the triangles in the triangulation; they tend to avoid skinny triangles. For a set of points on the same line there is no Delaunay triangulation (the notion of triangulation is degenerate for this case) For four or more points on the same circle (e.g., the vertices of a rectangle) the Delaunay triangulation is not unique By considering circumscribed spheres, the notion of Delaunay triangulation extends to three and higher dimensions

13 / 52

slide-23
SLIDE 23

Review Computing the Delaunay Triangulation Analysis Conclusion Triangulations of Planar Point Sets The Delaunay Triangulation

Review

Delaunay triangulations maximize the minimum angle of all the angles of the triangles in the triangulation; they tend to avoid skinny triangles. For a set of points on the same line there is no Delaunay triangulation (the notion of triangulation is degenerate for this case) For four or more points on the same circle (e.g., the vertices of a rectangle) the Delaunay triangulation is not unique By considering circumscribed spheres, the notion of Delaunay triangulation extends to three and higher dimensions

13 / 52

slide-24
SLIDE 24

Review Computing the Delaunay Triangulation Analysis Conclusion Triangulations of Planar Point Sets The Delaunay Triangulation

Review

The triangulation is named after Boris Delaunay for his work on this topic from 1934.

14 / 52

slide-25
SLIDE 25

Review Computing the Delaunay Triangulation Analysis Conclusion Triangulations of Planar Point Sets The Delaunay Triangulation

Review

The voronoi diagram is named after Georgy F . Voronoi for his work on this topic.

15 / 52

slide-26
SLIDE 26

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

Review

16 / 52

slide-27
SLIDE 27

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

Review

17 / 52

slide-28
SLIDE 28

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

Review

18 / 52

slide-29
SLIDE 29

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

Usage

Delaunay triangulations help in constructing various things: Euclidean Minimum Spanning Trees Approximations to the Euclidean Traveling Salesperson Problem , ...

19 / 52

slide-30
SLIDE 30

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

Usage

20 / 52

slide-31
SLIDE 31

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

Usage

21 / 52

slide-32
SLIDE 32

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

Usage

22 / 52

slide-33
SLIDE 33

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

Methods

There are several ways to compute the Delaunay triangulation: By plane sweep By iterative flipping from any triangulation By conversion from the Voronoi diagram

Go to diagram

By randomized incremental approach √

23 / 52

slide-34
SLIDE 34

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

Methods

There are several ways to compute the Delaunay triangulation: By plane sweep By iterative flipping from any triangulation By conversion from the Voronoi diagram

Go to diagram

By randomized incremental approach √

23 / 52

slide-35
SLIDE 35

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

Randomized incremental approach

P 0 24 / 52

slide-36
SLIDE 36

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

Randomized incremental approach

P 0 P -1 P -2 24 / 52

slide-37
SLIDE 37

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

Randomized incremental approach

P 0 P -1 P -2 24 / 52

slide-38
SLIDE 38

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

Randomized incremental approach

P 0 P -1 P -2 24 / 52

slide-39
SLIDE 39

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

Randomized incremental approach

P 0 P -1 P -2 24 / 52

slide-40
SLIDE 40

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

Randomized incremental approach

P 0 P -1 P -2 24 / 52

slide-41
SLIDE 41

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

Randomized incremental approach

P 0 P -1 P -2 24 / 52

slide-42
SLIDE 42

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

Randomized incremental approach

P 0 P -1 P -2 24 / 52

slide-43
SLIDE 43

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

Randomized incremental approach

P 0 P -1 P -2

24 / 52

slide-44
SLIDE 44

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

Randomized incremental approach

P 0 P -1 P -2

24 / 52

slide-45
SLIDE 45

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

Randomized incremental approach

P 0 P -1 P -2

24 / 52

slide-46
SLIDE 46

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

Randomized incremental approach

P 0 P -1 P -2

24 / 52

slide-47
SLIDE 47

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

Randomized incremental approach

P 0 P -1 P -2

24 / 52

slide-48
SLIDE 48

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

Randomized incremental approach

P 0 P -1 P -2

24 / 52

slide-49
SLIDE 49

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

Randomized incremental approach

P 0 P -1 P -2

24 / 52

slide-50
SLIDE 50

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

Randomized incremental approach

P 0 P -1 P -2

24 / 52

slide-51
SLIDE 51

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

Randomized incremental approach

P 0 P -1 P -2

24 / 52

slide-52
SLIDE 52

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

Randomized incremental approach

P 0 P -1 P -2

24 / 52

slide-53
SLIDE 53

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

Randomized incremental approach

P 0 P -1 P -2

24 / 52

slide-54
SLIDE 54

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

Randomized incremental approach

P 0 P -1 P -2

24 / 52

slide-55
SLIDE 55

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

Randomized incremental approach

P 0 P -1 P -2

24 / 52

slide-56
SLIDE 56

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

Randomized incremental approach

P 0 P -1 P -2

24 / 52

slide-57
SLIDE 57

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

Randomized incremental approach

P 0 P -1 P -2

24 / 52

slide-58
SLIDE 58

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

Randomized incremental approach

P 0 P -1 P -2

24 / 52

slide-59
SLIDE 59

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

Randomized incremental approach

P 0 P -1 P -2

24 / 52

slide-60
SLIDE 60

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

Randomized incremental approach

P 0 P -1 P -2

24 / 52

slide-61
SLIDE 61

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

Randomized incremental approach

P 0 P -1 P -2

24 / 52

slide-62
SLIDE 62

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

Randomized incremental approach

P 0 P -1 P -2

24 / 52

slide-63
SLIDE 63

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

Randomized incremental approach

P 0 P -1 P -2

24 / 52

slide-64
SLIDE 64

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

Randomized incremental approach

P 0 P -1 P -2

24 / 52

slide-65
SLIDE 65

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

Randomized incremental approach

P 0 P -1 P -2

24 / 52

slide-66
SLIDE 66

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

Randomized incremental approach

P 0 P -1 P -2

24 / 52

slide-67
SLIDE 67

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

Randomized incremental approach

P 0 P -1 P -2

24 / 52

slide-68
SLIDE 68

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

Randomized incremental approach

P 0 P -1 P -2

24 / 52

slide-69
SLIDE 69

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

Randomized incremental approach

P 0 P -1 P -2

24 / 52

slide-70
SLIDE 70

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

Randomized incremental approach

P 0 P -1 P -2

24 / 52

slide-71
SLIDE 71

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

Randomized incremental approach

P 0 P -1 P -2

24 / 52

slide-72
SLIDE 72

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

Randomized incremental approach

P 0 P -1 P -2

24 / 52

slide-73
SLIDE 73

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

Randomized incremental approach

P 0 P -1 P -2

24 / 52

slide-74
SLIDE 74

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

Randomized incremental approach

P 0 P -1 P -2

24 / 52

slide-75
SLIDE 75

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

Randomized incremental approach

P 0 P -1 P -2

24 / 52

slide-76
SLIDE 76

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

Randomized incremental approach

P 0 P -1 P -2

24 / 52

slide-77
SLIDE 77

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

Randomized incremental approach

P 0 P -1 P -2

24 / 52

slide-78
SLIDE 78

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

Randomized incremental approach

P 0 P -1 P -2

24 / 52

slide-79
SLIDE 79

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

Randomized incremental approach

P 0 P -1 P -2

24 / 52

slide-80
SLIDE 80

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

Randomized incremental approach

P 0 P -1 P -2

24 / 52

slide-81
SLIDE 81

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

Randomized incremental approach

P 0 P -1 P -2

24 / 52

slide-82
SLIDE 82

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

Randomized incremental approach

P 0 P -1 P -2

24 / 52

slide-83
SLIDE 83

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

Randomized incremental approach

P 0 P -1 P -2

24 / 52

slide-84
SLIDE 84

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

Randomized incremental approach

P 0 P -1 P -2

24 / 52

slide-85
SLIDE 85

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

Randomized incremental approach

P 0 P -1 P -2

24 / 52

slide-86
SLIDE 86

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

Randomized incremental approach

P 0 P -1 P -2

24 / 52

slide-87
SLIDE 87

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

Randomized incremental approach

P 0 P -1 P -2

24 / 52

slide-88
SLIDE 88

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

Randomized incremental approach

P 0 P -1 P -2

24 / 52

slide-89
SLIDE 89

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

Randomized incremental approach

P 0 P -1 P -2

24 / 52

slide-90
SLIDE 90

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

Randomized incremental approach

P 0 P -1 P -2

24 / 52

slide-91
SLIDE 91

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

Randomized incremental approach

P 0 P -1 P -2

24 / 52

slide-92
SLIDE 92

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

Randomized incremental approach

P 0 P -1 P -2

24 / 52

slide-93
SLIDE 93

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

Randomized incremental approach

P 0 P -1 P -2

24 / 52

slide-94
SLIDE 94

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

Randomized incremental approach

P 0 P -1 P -2

24 / 52

slide-95
SLIDE 95

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

Randomized incremental approach

P 0 P -1 P -2

24 / 52

slide-96
SLIDE 96

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

Randomized incremental approach

P 0

24 / 52

slide-97
SLIDE 97

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

Pseudocode

Back 25 / 52

slide-98
SLIDE 98

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

Pseudocode

Back 25 / 52

slide-99
SLIDE 99

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

Randomized incremental approach

26 / 52

slide-100
SLIDE 100

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

Pseudocode

27 / 52

slide-101
SLIDE 101

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

Randomized incremental approach

Lemma 9.4 28 / 52

slide-102
SLIDE 102

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

Randomized incremental approach

But

what about the correctness of algorithm?

29 / 52

slide-103
SLIDE 103

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

Randomized incremental approach

Must show no illegal edge left behind! We see that every new edge added is incident to Pr . We will see that every new edge added is in fact legal. Together with the fact that an edge can only become illegal if one of its incident triangles changes,then our algorithm tests any edge that may become illegal. The algorithm is correct

30 / 52

slide-104
SLIDE 104

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

Randomized incremental approach

Must show no illegal edge left behind! We see that every new edge added is incident to Pr . We will see that every new edge added is in fact legal. Together with the fact that an edge can only become illegal if one of its incident triangles changes,then our algorithm tests any edge that may become illegal. The algorithm is correct

30 / 52

slide-105
SLIDE 105

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

Randomized incremental approach

Must show no illegal edge left behind! We see that every new edge added is incident to Pr . We will see that every new edge added is in fact legal. Together with the fact that an edge can only become illegal if one of its incident triangles changes,then our algorithm tests any edge that may become illegal. The algorithm is correct

30 / 52

slide-106
SLIDE 106

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

Randomized incremental approach

Must show no illegal edge left behind! We see that every new edge added is incident to Pr . We will see that every new edge added is in fact legal. Together with the fact that an edge can only become illegal if one of its incident triangles changes,then our algorithm tests any edge that may become illegal. The algorithm is correct

30 / 52

slide-107
SLIDE 107

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

Randomized incremental approach

Must show no illegal edge left behind! We see that every new edge added is incident to Pr . We will see that every new edge added is in fact legal. Together with the fact that an edge can only become illegal if one of its incident triangles changes,then our algorithm tests any edge that may become illegal. The algorithm is correct

30 / 52

slide-108
SLIDE 108

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

Randomized incremental approach

Lemma 9.10: Every new edge created in ’DELAUNAYTRIANGULATION’ or in ’LEGALIZEEDGE’ during the insertion of Pr is an edge of the Delaunay graph of {p−1,p−2,p0,...,pr}

31 / 52

slide-109
SLIDE 109

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

Randomized incremental approach

Lemma 9.10: Every new edge created in ’DELAUNAYTRIANGULATION’ or in ’LEGALIZEEDGE’ during the insertion of Pr is an edge of the Delaunay graph of {p−1,p−2,p0,...,pr}

pl pj pi

31 / 52

slide-110
SLIDE 110

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

Randomized incremental approach

Lemma 9.10: Every new edge created in ’DELAUNAYTRIANGULATION’ or in ’LEGALIZEEDGE’ during the insertion of Pr is an edge of the Delaunay graph of {p−1,p−2,p0,...,pr}

pl pj pi pr

31 / 52

slide-111
SLIDE 111

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

Randomized incremental approach

Lemma 9.10: Every new edge created in ’DELAUNAYTRIANGULATION’ or in ’LEGALIZEEDGE’ during the insertion of Pr is an edge of the Delaunay graph of {p−1,p−2,p0,...,pr}

pl pj pi pr

31 / 52

slide-112
SLIDE 112

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

Randomized incremental approach

Lemma 9.10: Every new edge created in ’DELAUNAYTRIANGULATION’ or in ’LEGALIZEEDGE’ during the insertion of Pr is an edge of the Delaunay graph of {p−1,p−2,p0,...,pr}

pl pj pi pr

31 / 52

slide-113
SLIDE 113

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

Randomized incremental approach

Lemma 9.10: Every new edge created in ’DELAUNAYTRIANGULATION’ or in ’LEGALIZEEDGE’ during the insertion of Pr is an edge of the Delaunay graph of {p−1,p−2,p0,...,pr}

pl pj pi pr

31 / 52

slide-114
SLIDE 114

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

Randomized incremental approach

Lemma 9.10: Every new edge created in ’DELAUNAYTRIANGULATION’ or in ’LEGALIZEEDGE’ during the insertion of Pr is an edge of the Delaunay graph of {p−1,p−2,p0,...,pr}

pl pj pi pr C C’

31 / 52

slide-115
SLIDE 115

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

How to find the triangle containing the point pr ?

Go to algorithm 32 / 52

slide-116
SLIDE 116

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

introduction DAG

✍ A point location structure D is a directed acyclic graph. The leaves of D correspond to the triangles of the current triangulation T ✓ exist cross-pointers between those leaves and the triangulation. The internal nodes of D correspond to triangles that have already been destroyed ✓ Any internal node gets at most three outgoing pointers.

33 / 52

slide-117
SLIDE 117

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

introduction DAG

✍ A point location structure D is a directed acyclic graph. The leaves of D correspond to the triangles of the current triangulation T ✓ exist cross-pointers between those leaves and the triangulation. The internal nodes of D correspond to triangles that have already been destroyed ✓ Any internal node gets at most three outgoing pointers.

33 / 52

slide-118
SLIDE 118

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

Constructing DAG

P 0 P -1 P -2 △1 △1

34 / 52

slide-119
SLIDE 119

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

Constructing DAG

P 0 P -1 P -2 △2 △3 △4 △1 △2 △3 △4

34 / 52

slide-120
SLIDE 120

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

Constructing DAG

P 0 P -1 P -2 △5 △6 △7 △1 △2 △3 △4 △5 △6 △7

34 / 52

slide-121
SLIDE 121

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

Constructing DAG

P 0 P -1 P -2 △8 △9 △11 △10

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

34 / 52

slide-122
SLIDE 122

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

Constructing DAG

P 0 P -1 P -2 △12 △13 △14

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

34 / 52

slide-123
SLIDE 123

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

Constructing DAG

P 0 P -1 P -2

△1 △2 △3 △4 △5 △6 △7 △8 △9 △10 △11 △12 △13 △14 △15 △16

34 / 52

slide-124
SLIDE 124

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

Constructing DAG

P 0 P -1 P -2 △15 △16

△1 △2 △3 △4 △5 △6 △7 △8 △9 △10 △11 △12 △13 △14 △15 △16

34 / 52

slide-125
SLIDE 125

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

Point location

1

Start at the root of D,

2

Check the three children of the root and descend to the corresponding child,

3

check the children of this node,descend to a child whose triangle contains pr, . . .

4

until we reach a leaf of D,this leaf corresponding to a triangle in the current triangulation that contains pr.

35 / 52

slide-126
SLIDE 126

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

How to choose p−1 and p−2? and How to implement the test of whether an edge is legal?

36 / 52

slide-127
SLIDE 127

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

The first issue

P 0

37 / 52

slide-128
SLIDE 128

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

The first issue

L−1 p−1 P 0

37 / 52

slide-129
SLIDE 129

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

The first issue

L−1 L−2 p−1 P 0

37 / 52

slide-130
SLIDE 130

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

The first issue

L−1 L−2 p−1 p−2 P 0

37 / 52

slide-131
SLIDE 131

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

The first issue

L−1 L−2 p−1 p−2 P 0

37 / 52

slide-132
SLIDE 132

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

The first issue

Position of a point pj with respect to the oriented line from pi to pk: pj lies to the left of the line from pi to p−1; pj lies to the left of the line from p−2 to pi; pj is lexicographically larger than pi. By our choice of p−1 and p−2, the above conditions are equivalent.

38 / 52

slide-133
SLIDE 133

Review Computing the Delaunay Triangulation Analysis Conclusion Usage Methods Description of the fourth method Algorithm Point location structure

The second issue

Let pipj be the edge of to be tested,and let pk and pl be the

  • ther vertices of the triangles incident to pipj (if they exist).

pipj is an edge of the triangle p0p−1p−2. These edges are always legal. The indices i,j,k,l are all non-negative.← this case is normal All other cases pipj is legal if and only if min(k,l) < min(i,j)

39 / 52

slide-134
SLIDE 134

Review Computing the Delaunay Triangulation Analysis Conclusion

The Analysis

Lemma 9.11: The expected number of triangles created by the algorithm is at most 9n + 1. Proof. Pr := {p1,p2,...,pr} Dgr := Dg({p−2,p−1,p0}∪Pr) ♯(new triangles in step r)≤ 2k - 3 k=deg(pr,Dgr)

40 / 52

slide-135
SLIDE 135

Review Computing the Delaunay Triangulation Analysis Conclusion

The Analysis

Lemma 9.11: The expected number of triangles created by the algorithm is at most 9n + 1. Proof. Pr := {p1,p2,...,pr} Dgr := Dg({p−2,p−1,p0}∪Pr) ♯(new triangles in step r)≤ 2k - 3 k=deg(pr,Dgr)

40 / 52

slide-136
SLIDE 136

Review Computing the Delaunay Triangulation Analysis Conclusion

The Analysis

degree of pr, over all possible permutations of the set P? ☞ Backwards analysis: By Theorem 7.3: ♯ Edges in Dgr ≤ 3(r + 3) - 6 Total degree of the vertices in Pr < 2[3(r + 3) - 9] = 6r The expected degree of a random point of Pr ≤ 6 we can bound the number of triangles created in step r: E[♯ (△s in step r)]≤ E [2deg(pr,Dgr) - 3] = 2E[deg(pr,Dgr)] - 3 ≤ 2 × 6 - 3 = 9 Total number of △s is at most 9n + 1

41 / 52

slide-137
SLIDE 137

Review Computing the Delaunay Triangulation Analysis Conclusion

The Analysis

degree of pr, over all possible permutations of the set P? ☞ Backwards analysis: By Theorem 7.3: ♯ Edges in Dgr ≤ 3(r + 3) - 6 Total degree of the vertices in Pr < 2[3(r + 3) - 9] = 6r The expected degree of a random point of Pr ≤ 6 we can bound the number of triangles created in step r: E[♯ (△s in step r)]≤ E [2deg(pr,Dgr) - 3] = 2E[deg(pr,Dgr)] - 3 ≤ 2 × 6 - 3 = 9 Total number of △s is at most 9n + 1

41 / 52

slide-138
SLIDE 138

Review Computing the Delaunay Triangulation Analysis Conclusion

The Analysis

degree of pr, over all possible permutations of the set P? ☞ Backwards analysis: By Theorem 7.3: ♯ Edges in Dgr ≤ 3(r + 3) - 6 Total degree of the vertices in Pr < 2[3(r + 3) - 9] = 6r The expected degree of a random point of Pr ≤ 6 we can bound the number of triangles created in step r: E[♯ (△s in step r)]≤ E [2deg(pr,Dgr) - 3] = 2E[deg(pr,Dgr)] - 3 ≤ 2 × 6 - 3 = 9 Total number of △s is at most 9n + 1

41 / 52

slide-139
SLIDE 139

Review Computing the Delaunay Triangulation Analysis Conclusion

The Analysis

degree of pr, over all possible permutations of the set P? ☞ Backwards analysis: By Theorem 7.3: ♯ Edges in Dgr ≤ 3(r + 3) - 6 Total degree of the vertices in Pr < 2[3(r + 3) - 9] = 6r The expected degree of a random point of Pr ≤ 6 we can bound the number of triangles created in step r: E[♯ (△s in step r)]≤ E [2deg(pr,Dgr) - 3] = 2E[deg(pr,Dgr)] - 3 ≤ 2 × 6 - 3 = 9 Total number of △s is at most 9n + 1

41 / 52

slide-140
SLIDE 140

Review Computing the Delaunay Triangulation Analysis Conclusion

The Analysis

degree of pr, over all possible permutations of the set P? ☞ Backwards analysis: By Theorem 7.3: ♯ Edges in Dgr ≤ 3(r + 3) - 6 Total degree of the vertices in Pr < 2[3(r + 3) - 9] = 6r The expected degree of a random point of Pr ≤ 6 we can bound the number of triangles created in step r: E[♯ (△s in step r)]≤ E [2deg(pr,Dgr) - 3] = 2E[deg(pr,Dgr)] - 3 ≤ 2 × 6 - 3 = 9 Total number of △s is at most 9n + 1

41 / 52

slide-141
SLIDE 141

Review Computing the Delaunay Triangulation Analysis Conclusion

The Analysis

Lemma 9.12: The Delaunay triangulation can be computed in O(nlogn) expected time, using O(n) expected storage. Proof. Space follows from nodes in D representing triangles created, which by the previous lemma is O(n). Not counting the time for point location, the creation of each triangle takes O(1) time, so the total time will be O(n) + time for point locations (on expectation).

42 / 52

slide-142
SLIDE 142

Review Computing the Delaunay Triangulation Analysis Conclusion

The Analysis

Lemma 9.12: The Delaunay triangulation can be computed in O(nlogn) expected time, using O(n) expected storage. Proof. Space follows from nodes in D representing triangles created, which by the previous lemma is O(n). Not counting the time for point location, the creation of each triangle takes O(1) time, so the total time will be O(n) + time for point locations (on expectation).

42 / 52

slide-143
SLIDE 143

Review Computing the Delaunay Triangulation Analysis Conclusion

The Analysis

Lemma 9.12: The Delaunay triangulation can be computed in O(nlogn) expected time, using O(n) expected storage. Proof. Space follows from nodes in D representing triangles created, which by the previous lemma is O(n). Not counting the time for point location, the creation of each triangle takes O(1) time, so the total time will be O(n) + time for point locations (on expectation).

42 / 52

slide-144
SLIDE 144

Review Computing the Delaunay Triangulation Analysis Conclusion

The Analysis

Lemma 9.12: The Delaunay triangulation can be computed in O(nlogn) expected time, using O(n) expected storage. Proof. Space follows from nodes in D representing triangles created, which by the previous lemma is O(n). Not counting the time for point location, the creation of each triangle takes O(1) time, so the total time will be O(n) + time for point locations (on expectation).

42 / 52

slide-145
SLIDE 145

Review Computing the Delaunay Triangulation Analysis Conclusion

The Analysis

Let K(△) ⊂ P be the points inside the circumcircle of a given triangle △ Therefore the total time for the point location steps is: O(n + ∑

card(K(△))) ∑

card(K(△))=O(nlogn)?

43 / 52

slide-146
SLIDE 146

Review Computing the Delaunay Triangulation Analysis Conclusion

The Analysis

Let K(△) ⊂ P be the points inside the circumcircle of a given triangle △ Therefore the total time for the point location steps is: O(n + ∑

card(K(△))) ∑

card(K(△))=O(nlogn)?

43 / 52

slide-147
SLIDE 147

Review Computing the Delaunay Triangulation Analysis Conclusion

The Analysis

Let K(△) ⊂ P be the points inside the circumcircle of a given triangle △ Therefore the total time for the point location steps is: O(n + ∑

card(K(△))) ∑

card(K(△))=O(nlogn)?

43 / 52

slide-148
SLIDE 148

Review Computing the Delaunay Triangulation Analysis Conclusion

The Analysis

Lemma 9.13: If P is a point set in general position,then ∑

card(K(△))= O(nlogn) Proof. P is in general position,then every subset Pr is in general position triangulation after insert pr is the unique triangulation Dgr Tr:= the set of △s of Dgr Tr/ Tr−1 = the set of Delaunay △s created in stage r. (by difinition)

44 / 52

slide-149
SLIDE 149

Review Computing the Delaunay Triangulation Analysis Conclusion

The Analysis

Lemma 9.13: If P is a point set in general position,then ∑

card(K(△))= O(nlogn) Proof. P is in general position,then every subset Pr is in general position triangulation after insert pr is the unique triangulation Dgr Tr:= the set of △s of Dgr Tr/ Tr−1 = the set of Delaunay △s created in stage r. (by difinition)

44 / 52

slide-150
SLIDE 150

Review Computing the Delaunay Triangulation Analysis Conclusion

The Analysis

Lemma 9.13: If P is a point set in general position,then ∑

card(K(△))= O(nlogn) Proof. P is in general position,then every subset Pr is in general position triangulation after insert pr is the unique triangulation Dgr Tr:= the set of △s of Dgr Tr/ Tr−1 = the set of Delaunay △s created in stage r. (by difinition)

44 / 52

slide-151
SLIDE 151

Review Computing the Delaunay Triangulation Analysis Conclusion

The Analysis

Lemma 9.13: If P is a point set in general position,then ∑

card(K(△))= O(nlogn) Proof. P is in general position,then every subset Pr is in general position triangulation after insert pr is the unique triangulation Dgr Tr:= the set of △s of Dgr Tr/ Tr−1 = the set of Delaunay △s created in stage r. (by difinition)

44 / 52

slide-152
SLIDE 152

Review Computing the Delaunay Triangulation Analysis Conclusion

The Analysis

Rewrite the sum:

n

r=1

( ∑

△∈Tr∖Tr−1

card(K(△))) Let k(Pr,q) = ♯ of triangles △ ∈ Tr ; q ∈ K(△) Let k(Pr,q,pr) = ♯ of triangles △ ∈ Tr ; q ∈ K(△) , pr is incident to △ so we have: ∑

△∈Tr∖Tr−1

card(K(△))= ∑

q∈P∖Pr

k(Pr,q,pr) But E [k(Pr,q,pr)] ≤ ?

45 / 52

slide-153
SLIDE 153

Review Computing the Delaunay Triangulation Analysis Conclusion

The Analysis

Rewrite the sum:

n

r=1

( ∑

△∈Tr∖Tr−1

card(K(△))) Let k(Pr,q) = ♯ of triangles △ ∈ Tr ; q ∈ K(△) Let k(Pr,q,pr) = ♯ of triangles △ ∈ Tr ; q ∈ K(△) , pr is incident to △ so we have: ∑

△∈Tr∖Tr−1

card(K(△))= ∑

q∈P∖Pr

k(Pr,q,pr) But E [k(Pr,q,pr)] ≤ ?

45 / 52

slide-154
SLIDE 154

Review Computing the Delaunay Triangulation Analysis Conclusion

The Analysis

Rewrite the sum:

n

r=1

( ∑

△∈Tr∖Tr−1

card(K(△))) Let k(Pr,q) = ♯ of triangles △ ∈ Tr ; q ∈ K(△) Let k(Pr,q,pr) = ♯ of triangles △ ∈ Tr ; q ∈ K(△) , pr is incident to △ so we have: ∑

△∈Tr∖Tr−1

card(K(△))= ∑

q∈P∖Pr

k(Pr,q,pr) But E [k(Pr,q,pr)] ≤ ?

45 / 52

slide-155
SLIDE 155

Review Computing the Delaunay Triangulation Analysis Conclusion

The Analysis

Rewrite the sum:

n

r=1

( ∑

△∈Tr∖Tr−1

card(K(△))) Let k(Pr,q) = ♯ of triangles △ ∈ Tr ; q ∈ K(△) Let k(Pr,q,pr) = ♯ of triangles △ ∈ Tr ; q ∈ K(△) , pr is incident to △ so we have: ∑

△∈Tr∖Tr−1

card(K(△))= ∑

q∈P∖Pr

k(Pr,q,pr) But E [k(Pr,q,pr)] ≤ ?

45 / 52

slide-156
SLIDE 156

Review Computing the Delaunay Triangulation Analysis Conclusion

The Analysis

Rewrite the sum:

n

r=1

( ∑

△∈Tr∖Tr−1

card(K(△))) Let k(Pr,q) = ♯ of triangles △ ∈ Tr ; q ∈ K(△) Let k(Pr,q,pr) = ♯ of triangles △ ∈ Tr ; q ∈ K(△) , pr is incident to △ so we have: ∑

△∈Tr∖Tr−1

card(K(△))= ∑

q∈P∖Pr

k(Pr,q,pr) But E [k(Pr,q,pr)] ≤ ?

45 / 52

slide-157
SLIDE 157

Review Computing the Delaunay Triangulation Analysis Conclusion

The Analysis

fix Pr, so k(Pr,q,pr) depends only on pr Probability that pr is incident to a triangle is 3/r Thus: E [k(Pr,q,pr)] ≤ 3k(Pr,q)

r

Using: ∑

△∈Tr∖Tr−1

card(K(△))= ∑

q∈P∖Pr

k(Pr,q,pr) We can rewrite our sum as: E[ ∑

△∈Tr∖Tr−1

card(K(△))] ≤ 3

r

q∈P∖Pr

k(Pr,q)

46 / 52

slide-158
SLIDE 158

Review Computing the Delaunay Triangulation Analysis Conclusion

The Analysis

fix Pr, so k(Pr,q,pr) depends only on pr Probability that pr is incident to a triangle is 3/r Thus: E [k(Pr,q,pr)] ≤ 3k(Pr,q)

r

Using: ∑

△∈Tr∖Tr−1

card(K(△))= ∑

q∈P∖Pr

k(Pr,q,pr) We can rewrite our sum as: E[ ∑

△∈Tr∖Tr−1

card(K(△))] ≤ 3

r

q∈P∖Pr

k(Pr,q)

46 / 52

slide-159
SLIDE 159

Review Computing the Delaunay Triangulation Analysis Conclusion

The Analysis

fix Pr, so k(Pr,q,pr) depends only on pr Probability that pr is incident to a triangle is 3/r Thus: E [k(Pr,q,pr)] ≤ 3k(Pr,q)

r

Using: ∑

△∈Tr∖Tr−1

card(K(△))= ∑

q∈P∖Pr

k(Pr,q,pr) We can rewrite our sum as: E[ ∑

△∈Tr∖Tr−1

card(K(△))] ≤ 3

r

q∈P∖Pr

k(Pr,q)

46 / 52

slide-160
SLIDE 160

Review Computing the Delaunay Triangulation Analysis Conclusion

The Analysis

fix Pr, so k(Pr,q,pr) depends only on pr Probability that pr is incident to a triangle is 3/r Thus: E [k(Pr,q,pr)] ≤ 3k(Pr,q)

r

Using: ∑

△∈Tr∖Tr−1

card(K(△))= ∑

q∈P∖Pr

k(Pr,q,pr) We can rewrite our sum as: E[ ∑

△∈Tr∖Tr−1

card(K(△))] ≤ 3

r

q∈P∖Pr

k(Pr,q)

46 / 52

slide-161
SLIDE 161

Review Computing the Delaunay Triangulation Analysis Conclusion

The Analysis

fix Pr, so k(Pr,q,pr) depends only on pr Probability that pr is incident to a triangle is 3/r Thus: E [k(Pr,q,pr)] ≤ 3k(Pr,q)

r

Using: ∑

△∈Tr∖Tr−1

card(K(△))= ∑

q∈P∖Pr

k(Pr,q,pr) We can rewrite our sum as: E[ ∑

△∈Tr∖Tr−1

card(K(△))] ≤ 3

r

q∈P∖Pr

k(Pr,q)

46 / 52

slide-162
SLIDE 162

Review Computing the Delaunay Triangulation Analysis Conclusion

The Analysis

Any of the remaining n-r points is equally likely to appear as pr+1 So: E[ k(Pr,pr+1)] =

1 n−r

q∈P∖Pr

k(Pr,q) By substitute this into: E[ ∑

△∈Tr∖Tr−1

card(K(△))] ≤ 3

r

q∈P∖Pr

k(Pr,q) We have: E[ ∑

△∈Tr∖Tr−1

card(K(△))] ≤ 3(n−1

r

)E[k(Pr,pr+1)]. But what is k(Pr,pr+1)?

47 / 52

slide-163
SLIDE 163

Review Computing the Delaunay Triangulation Analysis Conclusion

The Analysis

Any of the remaining n-r points is equally likely to appear as pr+1 So: E[ k(Pr,pr+1)] =

1 n−r

q∈P∖Pr

k(Pr,q) By substitute this into: E[ ∑

△∈Tr∖Tr−1

card(K(△))] ≤ 3

r

q∈P∖Pr

k(Pr,q) We have: E[ ∑

△∈Tr∖Tr−1

card(K(△))] ≤ 3(n−1

r

)E[k(Pr,pr+1)]. But what is k(Pr,pr+1)?

47 / 52

slide-164
SLIDE 164

Review Computing the Delaunay Triangulation Analysis Conclusion

The Analysis

Any of the remaining n-r points is equally likely to appear as pr+1 So: E[ k(Pr,pr+1)] =

1 n−r

q∈P∖Pr

k(Pr,q) By substitute this into: E[ ∑

△∈Tr∖Tr−1

card(K(△))] ≤ 3

r

q∈P∖Pr

k(Pr,q) We have: E[ ∑

△∈Tr∖Tr−1

card(K(△))] ≤ 3(n−1

r

)E[k(Pr,pr+1)]. But what is k(Pr,pr+1)?

47 / 52

slide-165
SLIDE 165

Review Computing the Delaunay Triangulation Analysis Conclusion

The Analysis

Any of the remaining n-r points is equally likely to appear as pr+1 So: E[ k(Pr,pr+1)] =

1 n−r

q∈P∖Pr

k(Pr,q) By substitute this into: E[ ∑

△∈Tr∖Tr−1

card(K(△))] ≤ 3

r

q∈P∖Pr

k(Pr,q) We have: E[ ∑

△∈Tr∖Tr−1

card(K(△))] ≤ 3(n−1

r

)E[k(Pr,pr+1)]. But what is k(Pr,pr+1)?

47 / 52

slide-166
SLIDE 166

Review Computing the Delaunay Triangulation Analysis Conclusion

The Analysis

Any of the remaining n-r points is equally likely to appear as pr+1 So: E[ k(Pr,pr+1)] =

1 n−r

q∈P∖Pr

k(Pr,q) By substitute this into: E[ ∑

△∈Tr∖Tr−1

card(K(△))] ≤ 3

r

q∈P∖Pr

k(Pr,q) We have: E[ ∑

△∈Tr∖Tr−1

card(K(△))] ≤ 3(n−1

r

)E[k(Pr,pr+1)]. But what is k(Pr,pr+1)?

47 / 52

slide-167
SLIDE 167

Review Computing the Delaunay Triangulation Analysis Conclusion

The Analysis

k(Pr,pr+1), number of triangles of Tr that contain pr+1 These are the triangles that will be destroyed when pr+1 is inserted.

Theorem 9.6 (i)

Rewrite our sum as: E[ ∑

△∈Tr∖Tr−1

card(K(△))] ≤ 3(n−1

r

)E[card(Tr∖Tr+1)]

48 / 52

slide-168
SLIDE 168

Review Computing the Delaunay Triangulation Analysis Conclusion

The Analysis

k(Pr,pr+1), number of triangles of Tr that contain pr+1 These are the triangles that will be destroyed when pr+1 is inserted.

Theorem 9.6 (i)

Rewrite our sum as: E[ ∑

△∈Tr∖Tr−1

card(K(△))] ≤ 3(n−1

r

)E[card(Tr∖Tr+1)]

48 / 52

slide-169
SLIDE 169

Review Computing the Delaunay Triangulation Analysis Conclusion

The Analysis

k(Pr,pr+1), number of triangles of Tr that contain pr+1 These are the triangles that will be destroyed when pr+1 is inserted.

Theorem 9.6 (i)

Rewrite our sum as: E[ ∑

△∈Tr∖Tr−1

card(K(△))] ≤ 3(n−1

r

)E[card(Tr∖Tr+1)]

48 / 52

slide-170
SLIDE 170

Review Computing the Delaunay Triangulation Analysis Conclusion

The Analysis

k(Pr,pr+1), number of triangles of Tr that contain pr+1 These are the triangles that will be destroyed when pr+1 is inserted.

Theorem 9.6 (i)

Rewrite our sum as: E[ ∑

△∈Tr∖Tr−1

card(K(△))] ≤ 3(n−1

r

)E[card(Tr∖Tr+1)]

48 / 52

slide-171
SLIDE 171

Review Computing the Delaunay Triangulation Analysis Conclusion

The Analysis

By Theorem 9.1: Tm has 2(m + 3) - 2 - 3 = 2m + 1

Tm+1 has two triangles more than Tm Thus, card(Tr∖Tr+1) ≤ card(triangles destroyed by pr+1) = card(triangles created by pr+1)-2 = card(Tr+1∖Tr) - 2 We can rewrite our sum as: E[ ∑

△∈Tr∖Tr−1

card(K(△))] ≤ 3(n−1

r

)(E[card(Tr+1∖Tr)] - 2)

49 / 52

slide-172
SLIDE 172

Review Computing the Delaunay Triangulation Analysis Conclusion

The Analysis

By Theorem 9.1: Tm has 2(m + 3) - 2 - 3 = 2m + 1

Tm+1 has two triangles more than Tm Thus, card(Tr∖Tr+1) ≤ card(triangles destroyed by pr+1) = card(triangles created by pr+1)-2 = card(Tr+1∖Tr) - 2 We can rewrite our sum as: E[ ∑

△∈Tr∖Tr−1

card(K(△))] ≤ 3(n−1

r

)(E[card(Tr+1∖Tr)] - 2)

49 / 52

slide-173
SLIDE 173

Review Computing the Delaunay Triangulation Analysis Conclusion

The Analysis

By Theorem 9.1: Tm has 2(m + 3) - 2 - 3 = 2m + 1

Tm+1 has two triangles more than Tm Thus, card(Tr∖Tr+1) ≤ card(triangles destroyed by pr+1) = card(triangles created by pr+1)-2 = card(Tr+1∖Tr) - 2 We can rewrite our sum as: E[ ∑

△∈Tr∖Tr−1

card(K(△))] ≤ 3(n−1

r

)(E[card(Tr+1∖Tr)] - 2)

49 / 52

slide-174
SLIDE 174

Review Computing the Delaunay Triangulation Analysis Conclusion

The Analysis

By Theorem 9.1: Tm has 2(m + 3) - 2 - 3 = 2m + 1

Tm+1 has two triangles more than Tm Thus, card(Tr∖Tr+1) ≤ card(triangles destroyed by pr+1) = card(triangles created by pr+1)-2 = card(Tr+1∖Tr) - 2 We can rewrite our sum as: E[ ∑

△∈Tr∖Tr−1

card(K(△))] ≤ 3(n−1

r

)(E[card(Tr+1∖Tr)] - 2)

49 / 52

slide-175
SLIDE 175

Review Computing the Delaunay Triangulation Analysis Conclusion

The Analysis

Remember we fixed Pr earlier Consider all Pr by averaging over both sides of the inequality, but the inequality comes out identical. E[♯ of triangles created by pr] = E[♯ of edges incident to pr+1 in Tr+1]≤ 6 Therefore: E[ ∑

△∈Tr∖Tr−1

card(K(△))] ≤ 12(n−1

r

) If we sum this over all r, we have shown that: ∑

card(K(△))= O(nlogn) And thus, the algorithm runs in O(nlogn) time.

50 / 52

slide-176
SLIDE 176

Review Computing the Delaunay Triangulation Analysis Conclusion

The Analysis

Remember we fixed Pr earlier Consider all Pr by averaging over both sides of the inequality, but the inequality comes out identical. E[♯ of triangles created by pr] = E[♯ of edges incident to pr+1 in Tr+1]≤ 6 Therefore: E[ ∑

△∈Tr∖Tr−1

card(K(△))] ≤ 12(n−1

r

) If we sum this over all r, we have shown that: ∑

card(K(△))= O(nlogn) And thus, the algorithm runs in O(nlogn) time.

50 / 52

slide-177
SLIDE 177

Review Computing the Delaunay Triangulation Analysis Conclusion

The Analysis

Remember we fixed Pr earlier Consider all Pr by averaging over both sides of the inequality, but the inequality comes out identical. E[♯ of triangles created by pr] = E[♯ of edges incident to pr+1 in Tr+1]≤ 6 Therefore: E[ ∑

△∈Tr∖Tr−1

card(K(△))] ≤ 12(n−1

r

) If we sum this over all r, we have shown that: ∑

card(K(△))= O(nlogn) And thus, the algorithm runs in O(nlogn) time.

50 / 52

slide-178
SLIDE 178

Review Computing the Delaunay Triangulation Analysis Conclusion

The Analysis

Remember we fixed Pr earlier Consider all Pr by averaging over both sides of the inequality, but the inequality comes out identical. E[♯ of triangles created by pr] = E[♯ of edges incident to pr+1 in Tr+1]≤ 6 Therefore: E[ ∑

△∈Tr∖Tr−1

card(K(△))] ≤ 12(n−1

r

) If we sum this over all r, we have shown that: ∑

card(K(△))= O(nlogn) And thus, the algorithm runs in O(nlogn) time.

50 / 52

slide-179
SLIDE 179

Review Computing the Delaunay Triangulation Analysis Conclusion

The Analysis

Remember we fixed Pr earlier Consider all Pr by averaging over both sides of the inequality, but the inequality comes out identical. E[♯ of triangles created by pr] = E[♯ of edges incident to pr+1 in Tr+1]≤ 6 Therefore: E[ ∑

△∈Tr∖Tr−1

card(K(△))] ≤ 12(n−1

r

) If we sum this over all r, we have shown that: ∑

card(K(△))= O(nlogn) And thus, the algorithm runs in O(nlogn) time.

50 / 52

slide-180
SLIDE 180

Review Computing the Delaunay Triangulation Analysis Conclusion

The Analysis

Remember we fixed Pr earlier Consider all Pr by averaging over both sides of the inequality, but the inequality comes out identical. E[♯ of triangles created by pr] = E[♯ of edges incident to pr+1 in Tr+1]≤ 6 Therefore: E[ ∑

△∈Tr∖Tr−1

card(K(△))] ≤ 12(n−1

r

) If we sum this over all r, we have shown that: ∑

card(K(△))= O(nlogn) And thus, the algorithm runs in O(nlogn) time.

50 / 52

slide-181
SLIDE 181

Review Computing the Delaunay Triangulation Analysis Conclusion

polyhedral terrain made!

51 / 52

slide-182
SLIDE 182

Review Computing the Delaunay Triangulation Analysis Conclusion 52 / 52