Planar Delaunay Triangulations and Proximity Structures Proximity - - PowerPoint PPT Presentation

planar delaunay triangulations and proximity structures
SMART_READER_LITE
LIVE PREVIEW

Planar Delaunay Triangulations and Proximity Structures Proximity - - PowerPoint PPT Presentation

Wolfgang Mulzer Institut f r Informatik Planar Delaunay Triangulations and Proximity Structures Proximity Structures Given: a set P of n points in the plane proximity structure : a structure that encodes useful information about the local


slide-1
SLIDE 1

Wolfgang Mulzer Institut für Informatik

Planar Delaunay Triangulations and Proximity Structures

slide-2
SLIDE 2

2

Proximity Structures

Given: a set P of n points in the plane proximity structure: a structure that “encodes useful information about the local relationships of the points in P”

Planar Delaunay Triangulations and Proximity Structures

slide-3
SLIDE 3

3

Proximity Structures

Given: a set P of n points in the plane proximity structure: a structure that “encodes useful information about the local relationships of the points in P”

Planar Delaunay Triangulations and Proximity Structures

slide-4
SLIDE 4

4

Proximity Structures

Given: a set P of n points in the plane proximity structure: a structure that “encodes useful information about the local relationships of the points in P”

Planar Delaunay Triangulations and Proximity Structures

slide-5
SLIDE 5

5

Proximity Structures

Reduction from sorting → usually need Ω(n log n) to build a proximity structure

Planar Delaunay Triangulations and Proximity Structures

slide-6
SLIDE 6

6

Proximity Structures

But: shouldn’t one proximity structure suffice to construct another proximity structure faster? Voronoi diagram → Quadtree

s s s s s

Planar Delaunay Triangulations and Proximity Structures

slide-7
SLIDE 7

7

Proximity Structures

Point sets may exhibit strange behaviors, so this is not always easy.

Planar Delaunay Triangulations and Proximity Structures

slide-8
SLIDE 8

8

Proximity Structures

There might be clusters…

Planar Delaunay Triangulations and Proximity Structures

slide-9
SLIDE 9

9

Proximity Structures

…high degrees…

Planar Delaunay Triangulations and Proximity Structures

slide-10
SLIDE 10

10

Proximity Structures

  • r large spread.

Planar Delaunay Triangulations and Proximity Structures

slide-11
SLIDE 11

11

Overview

Planar Delaunay Triangulations and Proximity Structures

Voronoi Diagram Delaunay Triangulation Well-Separated Pair Decomposition DT

  • n Superset

WSPD Sequence c-CQT

  • n Superset

c-Cluster Quadtree Compressed Quadtree QT Sequence (Skip Quadtree) Minimum Spanning Tree Gabriel Graph Nearest Neighbor Graph NNG Sequence Linear Time (deterministic) Linear Time (randomized) Linear Time (w/ floor function) [Dirichlet, 1850] [Delaunay, 1934] [Gabriel, 1969] [Clarkson, 1983] [Preparata Shamos 1985] [Bern Eppstein Gilbert 1990] [Chazelle 1991] [Matsui 1995] [Callahan Kosaraju 1995] [Chin Wang1998] [Krznaric Levcopoulos1998] [Chazelle D H M S T 2002] [Eppstein Goodrich Sun 2005] [Buchin M 2009] [Löffler M 2012]

slide-12
SLIDE 12

12

Our Results

Two algorithms: Given: Delaunay triangulation for P Can find: compressed quadtree for P in linear deterministic time on a pointer machine.

Planar Delaunay Triangulations and Proximity Structures

slide-13
SLIDE 13

13

Our Results

Two algorithms: Previous result by Levcopolous and Krznaric [1998] uses bit tricks and bucketing. Our result follows by carefully adapting their algorithm to avoid these features. Won’t give any more details here. Given: Delaunay triangulation for P Can find: compressed quadtree for P in linear deterministic time on a pointer machine.

Planar Delaunay Triangulations and Proximity Structures

slide-14
SLIDE 14

14

Our Results

Two algorithms: Given: compressed quadtree for P Can find: a Delaunay triangulation for P in linear time on a pointer machine.

Planar Delaunay Triangulations and Proximity Structures

slide-15
SLIDE 15

15

Our Results

Two algorithms: Given: compressed quadtree for P Can find: a Delaunay triangulation for P in linear time on a pointer machine. Randomized algorithm: relatively simple, incremental construction of the Delaunay triangulation (w. K. Buchin). Deterministic algorithm: different approach and several new ideas (w. M. Löffler).

Planar Delaunay Triangulations and Proximity Structures

slide-16
SLIDE 16

16

Compressed Quadtrees

Quadtree: hierarchical subdivision of a bounding square for P into axis parallel boxes that separate P. Can be compressed if P is very clustered.

Planar Delaunay Triangulations and Proximity Structures

slide-17
SLIDE 17

17

compressed quadtree nearest-neighbor graph Delaunay triangulation

O(n) WSPD [CK95] BrioDC NEW

Randomized Algorithm

Planar Delaunay Triangulations and Proximity Structures

slide-18
SLIDE 18

18

Theorem [CK95]: Given a compressed quadtree for P, we can find its nearest-neighbor graph in time O(n) using the well-separated pair decomposition for P. O(n)

Quadtrees and Nearest-Neighbor Graphs

Planar Delaunay Triangulations and Proximity Structures

slide-19
SLIDE 19

19

Theorem: If the nearest-neighbor graph for any Q can be found in time f(|Q|), with f(|Q|)/|Q| nondecreasing, the Delaunay triangulation of P can be found in expected time O(f(n)+n). O(f(n) +n)

Nearest-Neighbor Graphs and DTs

Planar Delaunay Triangulations and Proximity Structures

slide-20
SLIDE 20

20

Proof: We use a randomized incremental construction with biased insertion order and dependent sampling. Given P. Find NNG(P). Pick an edge in each component. Sample one point from each edge, sample the rest independently. Theorem: If the nearest-neighbor graph for any Q can be found in time f(|Q|), with f(|Q|)/|Q| nondecreasing, the Delaunay triangulation of P can be found in expected time O(f(n)+n).

Nearest-Neighbor Graphs and DTs

Planar Delaunay Triangulations and Proximity Structures

slide-21
SLIDE 21

21

Recurse on the sample. Insert the remaining points: walk along edges of NNG(P) and insert the points along the way. Proof: We use a randomized incremental construction with biased insertion order and dependent sampling. Theorem: If the nearest-neighbor graph for any Q can be found in time f(|Q|), with f(|Q|)/|Q| nondecreasing, the Delaunay triangulation of P can be found in expected time O(f(n)+n).

Nearest-Neighbor Graphs and DTs

Planar Delaunay Triangulations and Proximity Structures

slide-22
SLIDE 22

22

Recurse on the sample. Insert the remaining points: walk along edges of NNG(P) and insert the points along the way. Proof: We use a randomized incremental construction with biased insertion order and dependent sampling. Theorem: If the nearest-neighbor graph for any Q can be found in time f(|Q|), with f(|Q|)/|Q| nondecreasing, the Delaunay triangulation of P can be found in expected time O(f(n)+n).

Nearest-Neighbor Graphs and DTs

Planar Delaunay Triangulations and Proximity Structures

slide-23
SLIDE 23

23

Lemma: The time to insert the remaining points is O(|P|). The sample size decreases geometrically, so the lemma gives total O(f(n)+n). Proof idea for the lemma: NNG(P) ⊆ DT(P), so all triangles traversed during an insertion step will be destroyed. Hence, it suffices to count the number of active triangles in the insertion phase (structural change).

Analysis

Planar Delaunay Triangulations and Proximity Structures

slide-24
SLIDE 24

24

Consider a triangle ∆. ∆ can be active during the insertion phase only if the sample contains no point inside its circumcircle. If ∆’s circumcircle contains s points, the probability for this event is ≤1/2s. There are O(ns2) empty triangles with ≤s points in their circumcircle [CS88], so the expected number of active triangles is O(n∑ss2/2s) = O(n). ∆

Analysis

Planar Delaunay Triangulations and Proximity Structures

slide-25
SLIDE 25

25

Deterministic Algorithm

Given a quadtree for P, we want the Delaunay triangulation for P. Actually, we compute the Euclidean minimum spanning tree for P: the shortest tree with vertex set P. The EMST is a subgraph of the Delaunay triangulation.

Planar Delaunay Triangulations and Proximity Structures

slide-26
SLIDE 26

26

Deterministic Algorithm

Given a quadtree for P, we want the Delaunay triangulation for P. Actually, we compute the Euclidean minimum spanning tree for P: the shortest tree with vertex set P. Given the EMST, we can find the DT in linear deterministic time on a pointer machine [ChinWang98].

Planar Delaunay Triangulations and Proximity Structures

slide-27
SLIDE 27

27

The Final Link

We need a structure that connects quadtrees and Euclidean MSTs – the well-separated pair decomposition (WSPD) [CK95]. A WSPD offers a way to approximate the (n²) Ɵ distances in an n-point set compactly.

Planar Delaunay Triangulations and Proximity Structures

slide-28
SLIDE 28

28

WSPD - Definition

Two point sets U and V are ε-well separated, if max(diam(U), diam(V) ≤ εd(U,V).

U V diam(U) diam(V) d(U,V)

If we represent U by an arbitrary point p ε U, and V by an arbitrary q ε V, we lose only a factor 1±ε in the distance.

Planar Delaunay Triangulations and Proximity Structures

slide-29
SLIDE 29

29

WSPD - Definition

Given an n-point set P, an ε-well separated pair decomposition for P is a set of pairs {(U1,V1), (U2, V2), …, (Um, Vm)} so that Given a compressed quadtree for P, an ε-WSPD with O(n) pairs can be found in linear deterministic time on a pointer machine [CK95]. The ε-WSPD is represented as pointers to nodes in the quadtree.

  • 1. For every i, we have Ui, Vi ⊆ P and Ui, Vi are ε-well

separated.

  • 2. For every distinct p, q ε P, there is exactly one pair

(Ui,Vi) with p ε Ui and q ε Vi or vice versa.

Planar Delaunay Triangulations and Proximity Structures

slide-30
SLIDE 30

30

WSPD and EMST

Lemma: Note: G has only m = O(n) edges. The lemma is well known and used often in the literature. Let {(U1,V1), (U2, V2), …, (Um, Vm)} be an ε-WSPD for P, and let G be the graph on P that for each i has an edge between the closest pair between Ui and Vi. Then G contains the EMST of P.

Planar Delaunay Triangulations and Proximity Structures

slide-31
SLIDE 31

31

WSPD and EMST

Lemma: Let {(U1,V1), (U2, V2), …, (Um, Vm)} be an ε-WSPD for P, and let G be the graph on P that for each i has an edge between the closest pair between Ui and Vi. Then G contains the EMST of P. Proof: pq: edge of the EMST for P, (U,V): pair of the WSPD with p ε U and q ε V. Need to show: pq is the closest pair for (U,V).

U V p q

Planar Delaunay Triangulations and Proximity Structures

slide-32
SLIDE 32

32

WSPD and EMST

Lemma: Let {(U1,V1), (U2, V2), …, (Um, Vm)} be an ε-WSPD for P, and let G be the graph on P that for each i has an edge between the closest pair between Ui and Vi. Then G contains the EMST of P. Proof: Need to show: pq is the closest pair for (U,V). Consider an execution of Kruskal’s algorithm on P.

U V p q

When pq is considered, p and q are in different components.

Planar Delaunay Triangulations and Proximity Structures

slide-33
SLIDE 33

33

WSPD and EMST

Lemma: Let {(U1,V1), (U2, V2), …, (Um, Vm)} be an ε-WSPD for P, and let G be the graph on P that for each i has an edge between the closest pair between Ui and Vi. Then G contains the EMST of P. Proof: These components wholly contain U and V, respectively, because of well-separation.

U V p q

Planar Delaunay Triangulations and Proximity Structures

slide-34
SLIDE 34

34

WSPD and EMST

Lemma: Let {(U1,V1), (U2, V2), …, (Um, Vm)} be an ε-WSPD for P, and let G be the graph on P that for each i has an edge between the closest pair between Ui and Vi. Then G contains the EMST of P. Proof: Hence, pq is the first edge between U and V considered by Kruskal’s algorithm, so it is the closest pair between U and V.

U V p q

Planar Delaunay Triangulations and Proximity Structures

slide-35
SLIDE 35

35

Algorithm Outline

The lemma leads to the following strategy: Given: compressed quadtree for P. Want: Delaunay triangulation for P.

quadtree ε-WSPD EMST Delaunay supergraph of EMST [CK95] [CW98] Lemma MST Algorithm

Planar Delaunay Triangulations and Proximity Structures

slide-36
SLIDE 36

36

Implementing the Strategy

We need to overcome several challenges.

quadtree ε-WSPD EMST Delaunay supergraph of EMST [CK95] [CW98] Lemma MST Algorithm

Planar Delaunay Triangulations and Proximity Structures

slide-37
SLIDE 37

37

Implementing the Strategy

To make this work, we need to overcome several challenges.

ε-WSPD supergraph of EMST

By the lemma, we can find the a sparse sugergraph of the EMST by solving a sequence of bichromatic closest pair problems. But how to do that? The total size of the sets Ui, Vi may be quadratic. Finding the closest pair between Ui and Vi usually takes O((|Ui|+|Vi|)log (min (|Ui|, |Vi|))) time.

Planar Delaunay Triangulations and Proximity Structures

slide-38
SLIDE 38

38

Implementing the Strategy

To make this work, we need to overcome several challenges. We need to find the MST of the sparse supergraph. The fastest known deterministic MST-algorithm for the pointer machine whose running time can be analyzed runs in time O(nα(n)). [C00] For planar graphs, Borůvka’s algorithm needs only linear time, but the supergraph need not be planar.

EMST supergraph of EMST

Planar Delaunay Triangulations and Proximity Structures

slide-39
SLIDE 39

39

Reducing the Weight

ε-WSPD supergraph of EMST

First, we need to reduce the total size of the Ui, Vi sets. Similar to Yao [1982], we partition the pairs by their “general direction” and process each part individually. Take all WSPD-pairs with general direction ɸ.

ɸ

Planar Delaunay Triangulations and Proximity Structures

slide-40
SLIDE 40

40

Reducing the Weight

ε-WSPD supergraph of EMST

First, we need to reduce the total size of the Ui, Vi sets. For every point find the k closest pairs in each direction ɸ and remove it from all other pairs.

ɸ

Planar Delaunay Triangulations and Proximity Structures

slide-41
SLIDE 41

41

Reducing the Weight

ε-WSPD supergraph of EMST

First, we need to reduce the total size of the Ui, Vi sets. Lemma: This can be done in linear time and results in a collection of pairs with total linear size whose bichromatic nearest neighbor graph still contains the EMST.

ɸ

Planar Delaunay Triangulations and Proximity Structures

slide-42
SLIDE 42

42

Finding the Nearest Neighbors

ε-WSPD supergraph of EMST

Second, we need to find the bichromatic nearest neighbors for each reduced pair. If the points were sorted in in the right order (perpendicular to ɸ), this could be done in linear time.

ɸ

Planar Delaunay Triangulations and Proximity Structures

slide-43
SLIDE 43

43

Finding the Nearest Neighbors

ε-WSPD supergraph of EMST

Second, we need to find the bichromatic nearest neighbors for each reduced pair. However, sorting would take too much time.

ɸ

Planar Delaunay Triangulations and Proximity Structures

slide-44
SLIDE 44

44

Finding the Nearest Neighbors

ε-WSPD supergraph of EMST

Second, we need to find the bichromatic nearest neighbors for each reduced pair. But we only need to sort locally, so that the order for the points in each pair is known.

ɸ

Planar Delaunay Triangulations and Proximity Structures

slide-45
SLIDE 45

45

Finding the Nearest Neighbors

ε-WSPD supergraph of EMST

Second, we need to find the bichromatic nearest neighbors for each reduced pair. We can use the structure of the quadtree to define a directed graph H of linear size, such that a topological ordering of H yields the desired order for each pair.

ɸ

Planar Delaunay Triangulations and Proximity Structures

slide-46
SLIDE 46

46

Finding the Nearest Neighbors

ε-WSPD supergraph of EMST

Second, we need to find the bichromatic nearest neighbors for each reduced pair. A topological ordering can be found in O(n) time via depth first search.

ɸ

Planar Delaunay Triangulations and Proximity Structures

slide-47
SLIDE 47

47

Finding the Nearest Neighbors

ε-WSPD supergraph of EMST

To summarize, the supergraph of the EMST is found in three steps.

  • 1. Prune the pairs of the WSPD to make their size linear.
  • 2. Locally sort the points in each pair through a topological

sort of an appropriate graph.

  • 3. Use the local ordering to find the nearest neighbors.

Planar Delaunay Triangulations and Proximity Structures

slide-48
SLIDE 48

48

Finding the EMST

Finally, we need to extract the MST. This can be done in linear time by an appropriate variant of Borůvka’s algorithm that exploits the structure of the compressed quadtree. We use the crossing number inequality to bound the number of edges we need to consider.

EMST supergraph of EMST

Planar Delaunay Triangulations and Proximity Structures

slide-49
SLIDE 49

49

Algorithm Outline

This finally concludes the description of the algorithm. Given: a compressed quadtree for P. Want: the Delaunay triangulation for P.

quadtree ε-WSPD EMST Delaunay supergraph of EMST [CK95] [CW98] Prune & Topo-Sort Borůvka variant

Planar Delaunay Triangulations and Proximity Structures

slide-50
SLIDE 50

50

Applications

Planar Delaunay Triangulations and Proximity Structures

slide-51
SLIDE 51

51

Applications

Splitting Delaunay triangulations Given the DT of a bicolored n-point set, we can compute the DT of the blue points in O(n) expected time [CDHMST02] [CM09].

Planar Delaunay Triangulations and Proximity Structures

slide-52
SLIDE 52

52

Applications

Splitting Delaunay triangulations Given the DT of a bicolored n-point set, we can compute the DT of the blue points in O(n) expected time [CDHMST02] [CM09]. Now we can do it deterministically. Convert the DT into a quadtree, remove the red points from the tree (easy), convert the pruned quadtree back into a DT.

Planar Delaunay Triangulations and Proximity Structures

slide-53
SLIDE 53

53

Applications

Transdichotomous Delaunay triangulations Using randomized approach and bit tricks the Delaunay triangulation of a planar point set can be found in O(sort(n)) expected time on a word RAM.

Planar Delaunay Triangulations and Proximity Structures

slide-54
SLIDE 54

54

Applications

Transdichotomous Delaunay triangulations Using randomized approach and bit tricks the Delaunay triangulation of a planar point set can be found in O(sort(n)) expected time on a word RAM. Now we can do it deterministically in O(n loglog n) time.

Planar Delaunay Triangulations and Proximity Structures

slide-55
SLIDE 55

55

Applications

and a few more…

  • preprocessing planar regions for Delaunay

triangulations

  • self-improving algorithms for planar DTs

Planar Delaunay Triangulations and Proximity Structures

slide-56
SLIDE 56

56

Open Problems

Can our algorithm be simplified? Can we find a deterministic algorithm for splitting 3D convex hulls? Are there further relationships between proximity structures to be discovered?

slide-57
SLIDE 57

57

Questions?