Yazd Univ. Computational Geometry Motivation Point Location and Trapezoidal Maps A Randomized Incremental Algorithm
Search Structure
Point Location
1397-2
1 / 38
Point Location Geometry Motivation Point Location and Trapezoidal - - PowerPoint PPT Presentation
Yazd Univ. Computational Point Location Geometry Motivation Point Location and Trapezoidal Maps A Randomized Incremental 1397-2 Algorithm Search Structure 1 / 38 Motivation: Point location in a map Point location query: Given a map and
Yazd Univ. Computational Geometry Motivation Point Location and Trapezoidal Maps A Randomized Incremental Algorithm
Search Structure
1397-2
1 / 38
Yazd Univ. Computational Geometry Motivation Point Location and Trapezoidal Maps A Randomized Incremental Algorithm
Search Structure
Point location in a map
5◦6′ 52◦3′
2 / 38
Yazd Univ. Computational Geometry Motivation Point Location and Trapezoidal Maps A Randomized Incremental Algorithm
Search Structure
Point location in a map
5◦6′ 52◦3′
3 / 38
Yazd Univ. Computational Geometry Motivation Point Location and Trapezoidal Maps A Randomized Incremental Algorithm
Search Structure
Point location in a map
5◦6′ 52◦3′
3 / 38
Yazd Univ. Computational Geometry Motivation Point Location and Trapezoidal Maps A Randomized Incremental Algorithm
Search Structure
5◦6′ 52◦3′
4 / 38
Yazd Univ. Computational Geometry Motivation Point Location and Trapezoidal Maps A Randomized Incremental Algorithm
Search Structure
5◦6′ 52◦3′
4 / 38
Yazd Univ. Computational Geometry Motivation Point Location and Trapezoidal Maps A Randomized Incremental Algorithm
Search Structure
5 / 38
Yazd Univ. Computational Geometry Motivation Point Location and Trapezoidal Maps A Randomized Incremental Algorithm
Search Structure
6 / 38
Yazd Univ. Computational Geometry Motivation Point Location and Trapezoidal Maps A Randomized Incremental Algorithm
Search Structure
6 / 38
Yazd Univ. Computational Geometry Motivation Point Location and Trapezoidal Maps A Randomized Incremental Algorithm
Search Structure
7 / 38
Yazd Univ. Computational Geometry Motivation Point Location and Trapezoidal Maps A Randomized Incremental Algorithm
Search Structure
n 4 n 4
7 / 38
Yazd Univ. Computational Geometry Motivation Point Location and Trapezoidal Maps A Randomized Incremental Algorithm
Search Structure
n 4 n 4
7 / 38
Yazd Univ. Computational Geometry Motivation Point Location and Trapezoidal Maps A Randomized Incremental Algorithm
Search Structure
8 / 38
Yazd Univ. Computational Geometry Motivation Point Location and Trapezoidal Maps A Randomized Incremental Algorithm
Search Structure
8 / 38
Yazd Univ. Computational Geometry Motivation Point Location and Trapezoidal Maps A Randomized Incremental Algorithm
Search Structure
R 9 / 38
Yazd Univ. Computational Geometry Motivation Point Location and Trapezoidal Maps A Randomized Incremental Algorithm
Search Structure
R
9 / 38
Yazd Univ. Computational Geometry Motivation Point Location and Trapezoidal Maps A Randomized Incremental Algorithm
Search Structure
Lemma 6.1 Each face in a trapezoidal map of a set S of line segments in general position has one or two vertical sides and exactly two non-vertical sides.
10 / 38
Yazd Univ. Computational Geometry Motivation Point Location and Trapezoidal Maps A Randomized Incremental Algorithm
Search Structure
Lemma 6.1 Each face in a trapezoidal map of a set S of line segments in general position has one or two vertical sides and exactly two non-vertical sides.
10 / 38
Yazd Univ. Computational Geometry Motivation Point Location and Trapezoidal Maps A Randomized Incremental Algorithm
Search Structure
Lemma 6.1 Each face in a trapezoidal map of a set S of line segments in general position has one or two vertical sides and exactly two non-vertical sides.
10 / 38
Yazd Univ. Computational Geometry Motivation Point Location and Trapezoidal Maps A Randomized Incremental Algorithm
Search Structure
Lemma 6.1 Each face in a trapezoidal map of a set S of line segments in general position has one or two vertical sides and exactly two non-vertical sides.
10 / 38
Yazd Univ. Computational Geometry Motivation Point Location and Trapezoidal Maps A Randomized Incremental Algorithm
Search Structure
Lemma 6.1 Each face in a trapezoidal map of a set S of line segments in general position has one or two vertical sides and exactly two non-vertical sides.
11 / 38
Yazd Univ. Computational Geometry Motivation Point Location and Trapezoidal Maps A Randomized Incremental Algorithm
Search Structure
(a) It degenerates to a point, which is the common left endpoint of top(∆) and bottom(∆). (b) It is the lower vertical extension of the left endpoint of top(∆) that abuts
(c) It is the upper vertical extension of the left endpoint of bottom(∆) that abuts on top(∆). (d) It consists of the upper and lower extension of the right endpoint p of a third segment s. These extensions abut on top(∆) and bottom(∆), respectively. (e) It is the left edge of R. This case occurs for a single trapezoid of T(S) only, namely the unique leftmost trapezoid of T(S). The first four cases are illustrated in Figure 6.4. The five cases for the right
(a) (b) (c)
top(∆) bottom(∆) leftp(∆)
(d)
s leftp(∆) leftp(∆) leftp(∆) top(∆) top(∆) top(∆) bottom(∆) bottom(∆) bottom(∆)
12 / 38
Yazd Univ. Computational Geometry Motivation Point Location and Trapezoidal Maps A Randomized Incremental Algorithm
Search Structure
Lemma 6.2 The trapezoidal map T(S) of a set S of n line segments in general position contains at most 6n+4 vertices and at most 3n+1 trapezoids.
R
13 / 38
Yazd Univ. Computational Geometry Motivation Point Location and Trapezoidal Maps A Randomized Incremental Algorithm
Search Structure
Lemma 6.2 The trapezoidal map T(S) of a set S of n line segments in general position contains at most 6n+4 vertices and at most 3n+1 trapezoids.
(a) (b) (c)
top(∆) bottom(∆) leftp(∆)
(d)
s leftp(∆) leftp(∆) leftp(∆) top(∆) top(∆) top(∆) bottom(∆) bottom(∆) bottom(∆) 13 / 38
Yazd Univ. Computational Geometry Motivation Point Location and Trapezoidal Maps A Randomized Incremental Algorithm
Search Structure
Lemma 6.2 The trapezoidal map T(S) of a set S of n line segments in general position contains at most 6n+4 vertices and at most 3n+1 trapezoids.
(a) (b) (c)
top(∆) bottom(∆) leftp(∆)
(d)
s leftp(∆) leftp(∆) leftp(∆) top(∆) top(∆) top(∆) bottom(∆) bottom(∆) bottom(∆) 13 / 38
Yazd Univ. Computational Geometry Motivation Point Location and Trapezoidal Maps A Randomized Incremental Algorithm
Search Structure
Lemma 6.2 The trapezoidal map T(S) of a set S of n line segments in general position contains at most 6n+4 vertices and at most 3n+1 trapezoids.
(a) (b) (c)
top(∆) bottom(∆) leftp(∆)
(d)
s leftp(∆) leftp(∆) leftp(∆) top(∆) top(∆) top(∆) bottom(∆) bottom(∆) bottom(∆) 13 / 38
Yazd Univ. Computational Geometry Motivation Point Location and Trapezoidal Maps A Randomized Incremental Algorithm
Search Structure
(i) (ii)
∆1 ∆2 ∆3 ∆4 ∆5 ∆6
∆1 ∆2 ∆3 ∆4 ∆5
14 / 38
Yazd Univ. Computational Geometry Motivation Point Location and Trapezoidal Maps A Randomized Incremental Algorithm
Search Structure
(i) (ii)
∆1 ∆2 ∆3 ∆4 ∆5 ∆6
∆1 ∆2 ∆3 ∆4 ∆5
14 / 38
Yazd Univ. Computational Geometry Motivation Point Location and Trapezoidal Maps A Randomized Incremental Algorithm
Search Structure
∆1 ∆2 ∆3 ∆4 ∆5
15 / 38
Yazd Univ. Computational Geometry Motivation Point Location and Trapezoidal Maps A Randomized Incremental Algorithm
Search Structure
∆1 ∆2 ∆3 ∆4 ∆5
16 / 38
Yazd Univ. Computational Geometry Motivation Point Location and Trapezoidal Maps A Randomized Incremental Algorithm
Search Structure
17 / 38
Yazd Univ. Computational Geometry Motivation Point Location and Trapezoidal Maps A Randomized Incremental Algorithm
Search Structure
17 / 38
Yazd Univ. Computational Geometry Motivation Point Location and Trapezoidal Maps A Randomized Incremental Algorithm
Search Structure
A Randomized Incremental Algorithm
18 / 38
Yazd Univ. Computational Geometry Motivation Point Location and Trapezoidal Maps A Randomized Incremental Algorithm
Search Structure
A Randomized Incremental Algorithm
18 / 38
Yazd Univ. Computational Geometry Motivation Point Location and Trapezoidal Maps A Randomized Incremental Algorithm
Search Structure
A Randomized Incremental Algorithm
19 / 38
Yazd Univ. Computational Geometry Motivation Point Location and Trapezoidal Maps A Randomized Incremental Algorithm
Search Structure
A Randomized Incremental Algorithm
s1 s2 A B C D E F G p1 p2 q1 q2 s1 p1 q1 p2 s2 s2 q2 E A B C D F G
19 / 38
Yazd Univ. Computational Geometry Motivation Point Location and Trapezoidal Maps A Randomized Incremental Algorithm
Search Structure
A Randomized Incremental Algorithm
s1 s2 A B C D E F G p1 p2 q1 q2 s1 p1 q1 p2 s2 s2 q2 E A B C D F G
19 / 38
Yazd Univ. Computational Geometry Motivation Point Location and Trapezoidal Maps A Randomized Incremental Algorithm
Search Structure
A Randomized Incremental Algorithm
s1 s2 A B C D E F G p1 p2 q1 q2 s1 p1 q1 p2 s2 s2 q2 E A B C D F G
19 / 38
Yazd Univ. Computational Geometry Motivation Point Location and Trapezoidal Maps A Randomized Incremental Algorithm
Search Structure
A Randomized Incremental Algorithm
s1 s2 A B C D E F G p1 p2 q1 q2 s1 p1 q1 p2 s2 s2 q2 E A B C D F G
19 / 38
Yazd Univ. Computational Geometry Motivation Point Location and Trapezoidal Maps A Randomized Incremental Algorithm
Search Structure
A Randomized Incremental Algorithm
s1 s2 A B C D E F G p1 p2 q1 q2 s1 p1 q1 p2 s2 s2 q2 E A B C D F G
19 / 38
Yazd Univ. Computational Geometry Motivation Point Location and Trapezoidal Maps A Randomized Incremental Algorithm
Search Structure
A Randomized Incremental Algorithm
20 / 38
Yazd Univ. Computational Geometry Motivation Point Location and Trapezoidal Maps A Randomized Incremental Algorithm
Search Structure
A Randomized Incremental Algorithm
Algorithm TRAPEZOIDALMAP(S)
1. Determine a bounding box R that contains all segments of S, and initialize the trapezoidal map structure T and search structure D for it. 2. Compute a random permutation s1,s2,...,sn of the elements of S. 3. for i ← 1 to n 4. do Find the set ∆0,∆1,...,∆k of trapezoids in T properly intersected by si. 5. Remove ∆0,∆1,...,∆k from T and replace them by the new trapezoids that appear because of the insertion of si. 6. Remove the leaves for ∆0,∆1,...,∆k from D, and create leaves for the new trape-
nodes, as explained below.
20 / 38
Yazd Univ. Computational Geometry Motivation Point Location and Trapezoidal Maps A Randomized Incremental Algorithm
Search Structure
A Randomized Incremental Algorithm
Algorithm TRAPEZOIDALMAP(S)
1. Determine a bounding box R that contains all segments of S, and initialize the trapezoidal map structure T and search structure D for it. 2. Compute a random permutation s1,s2,...,sn of the elements of S. 3. for i ← 1 to n 4. do Find the set ∆0,∆1,...,∆k of trapezoids in T properly intersected by si. 5. Remove ∆0,∆1,...,∆k from T and replace them by the new trapezoids that appear because of the insertion of si. 6. Remove the leaves for ∆0,∆1,...,∆k from D, and create leaves for the new trape-
nodes, as explained below.
21 / 38
Yazd Univ. Computational Geometry Motivation Point Location and Trapezoidal Maps A Randomized Incremental Algorithm
Search Structure
A Randomized Incremental Algorithm
Algorithm TRAPEZOIDALMAP(S)
1. Determine a bounding box R that contains all segments of S, and initialize the trapezoidal map structure T and search structure D for it. 2. Compute a random permutation s1,s2,...,sn of the elements of S. 3. for i ← 1 to n 4. do Find the set ∆0,∆1,...,∆k of trapezoids in T properly intersected by si. 5. Remove ∆0,∆1,...,∆k from T and replace them by the new trapezoids that appear because of the insertion of si. 6. Remove the leaves for ∆0,∆1,...,∆k from D, and create leaves for the new trape-
nodes, as explained below.
∆0 ∆1 ∆2 ∆3
si
21 / 38
Yazd Univ. Computational Geometry Motivation Point Location and Trapezoidal Maps A Randomized Incremental Algorithm
Search Structure
A Randomized Incremental Algorithm
∆0 ∆1 ∆2 ∆3
si
p q
22 / 38
Yazd Univ. Computational Geometry Motivation Point Location and Trapezoidal Maps A Randomized Incremental Algorithm
Search Structure
A Randomized Incremental Algorithm
∆0 ∆1 ∆2 ∆3
si
p q
22 / 38
Yazd Univ. Computational Geometry Motivation Point Location and Trapezoidal Maps A Randomized Incremental Algorithm
Search Structure
A Randomized Incremental Algorithm
∆0 ∆1 ∆2 ∆3
si
p q
22 / 38
Yazd Univ. Computational Geometry Motivation Point Location and Trapezoidal Maps A Randomized Incremental Algorithm
Search Structure
A Randomized Incremental Algorithm
Algorithm FOLLOWSEGMENT(T,D,si)
1. Let p and q be the left and right endpoint of si. 2. Search with p in the search structure D to find ∆0. 3. j ← 0; 4. while q lies to the right of rightp(∆ j) 5. do if rightp(∆ j) lies above si 6. then Let ∆j+1 be the lower right neighbor of ∆j. 7. else Let ∆j+1 be the upper right neighbor of ∆j. 8. j ← j +1 9. return ∆0,∆1,...,∆ j
∆0 ∆1 ∆2 ∆3
si
p q
23 / 38
Yazd Univ. Computational Geometry Motivation Point Location and Trapezoidal Maps A Randomized Incremental Algorithm
Search Structure
A Randomized Incremental Algorithm si pi qi A C D B T(Si−1) si pi qi A B C D T(Si)
∆
D(Si−1) D(Si) D(Si−1)
∆
24 / 38
Yazd Univ. Computational Geometry Motivation Point Location and Trapezoidal Maps A Randomized Incremental Algorithm
Search Structure
A Randomized Incremental Algorithm
∆0 ∆1 ∆2 ∆3
si pi qi qi si B A C D E F A B D C E F si
∆0 ∆1 ∆2 ∆3
T(Si−1) T(Si) D(Si−1) D(Si−1) D(Si)
si si si
25 / 38
Yazd Univ. Computational Geometry Motivation Point Location and Trapezoidal Maps A Randomized Incremental Algorithm
Search Structure
A Randomized Incremental Algorithm
Figure 9: (Left) A set of segments in T which, if inserted bottom to top, leads to a worst-case query time. (Right) The resulting query structure.
26 / 38
Yazd Univ. Computational Geometry Motivation Point Location and Trapezoidal Maps A Randomized Incremental Algorithm
Search Structure
A Randomized Incremental Algorithm
Figure 9: (Left) A set of segments in T which, if inserted bottom to top, leads to a worst-case query time. (Right) The resulting query structure.
26 / 38
Yazd Univ. Computational Geometry Motivation Point Location and Trapezoidal Maps A Randomized Incremental Algorithm
Search Structure
A Randomized Incremental Algorithm Theorem 6.3 Algorithm TRAPEZOIDALMAP computes the trapezoidal map T(S) of a set S of n line segments in general position and a search structure D for T(S) in O(nlogn) expected time. The expected size of the search structure is O(n) and for any query point q the expected query time is O(logn).
n
27 / 38
Yazd Univ. Computational Geometry Motivation Point Location and Trapezoidal Maps A Randomized Incremental Algorithm
Search Structure
A Randomized Incremental Algorithm Theorem 6.3 Algorithm TRAPEZOIDALMAP computes the trapezoidal map T(S) of a set S of n line segments in general position and a search structure D for T(S) in O(nlogn) expected time. The expected size of the search structure is O(n) and for any query point q the expected query time is O(logn).
n
27 / 38
Yazd Univ. Computational Geometry Motivation Point Location and Trapezoidal Maps A Randomized Incremental Algorithm
Search Structure
A Randomized Incremental Algorithm Theorem 6.3 Algorithm TRAPEZOIDALMAP computes the trapezoidal map T(S) of a set S of n line segments in general position and a search structure D for T(S) in O(nlogn) expected time. The expected size of the search structure is O(n) and for any query point q the expected query time is O(logn).
n
27 / 38
Yazd Univ. Computational Geometry Motivation Point Location and Trapezoidal Maps A Randomized Incremental Algorithm
Search Structure
A Randomized Incremental Algorithm Theorem 6.3 Algorithm TRAPEZOIDALMAP computes the trapezoidal map T(S) of a set S of n line segments in general position and a search structure D for T(S) in O(nlogn) expected time. The expected size of the search structure is O(n) and for any query point q the expected query time is O(logn).
n
27 / 38
Yazd Univ. Computational Geometry Motivation Point Location and Trapezoidal Maps A Randomized Incremental Algorithm
Search Structure
A Randomized Incremental Algorithm Theorem 6.3 Algorithm TRAPEZOIDALMAP computes the trapezoidal map T(S) of a set S of n line segments in general position and a search structure D for T(S) in O(nlogn) expected time. The expected size of the search structure is O(n) and for any query point q the expected query time is O(logn).
n
27 / 38
Yazd Univ. Computational Geometry Motivation Point Location and Trapezoidal Maps A Randomized Incremental Algorithm
Search Structure
A Randomized Incremental Algorithm Theorem 6.3 Algorithm TRAPEZOIDALMAP computes the trapezoidal map T(S) of a set S of n line segments in general position and a search structure D for T(S) in O(nlogn) expected time. The expected size of the search structure is O(n) and for any query point q the expected query time is O(logn).
n
n
28 / 38
Yazd Univ. Computational Geometry Motivation Point Location and Trapezoidal Maps A Randomized Incremental Algorithm
Search Structure
A Randomized Incremental Algorithm Theorem 6.3 Algorithm TRAPEZOIDALMAP computes the trapezoidal map T(S) of a set S of n line segments in general position and a search structure D for T(S) in O(nlogn) expected time. The expected size of the search structure is O(n) and for any query point q the expected query time is O(logn).
29 / 38
Yazd Univ. Computational Geometry Motivation Point Location and Trapezoidal Maps A Randomized Incremental Algorithm
Search Structure
A Randomized Incremental Algorithm Theorem 6.3 Algorithm TRAPEZOIDALMAP computes the trapezoidal map T(S) of a set S of n line segments in general position and a search structure D for T(S) in O(nlogn) expected time. The expected size of the search structure is O(n) and for any query point q the expected query time is O(logn).
29 / 38
Yazd Univ. Computational Geometry Motivation Point Location and Trapezoidal Maps A Randomized Incremental Algorithm
Search Structure
A Randomized Incremental Algorithm Theorem 6.3 Algorithm TRAPEZOIDALMAP computes the trapezoidal map T(S) of a set S of n line segments in general position and a search structure D for T(S) in O(nlogn) expected time. The expected size of the search structure is O(n) and for any query point q the expected query time is O(logn).
29 / 38
Yazd Univ. Computational Geometry Motivation Point Location and Trapezoidal Maps A Randomized Incremental Algorithm
Search Structure
A Randomized Incremental Algorithm Theorem 6.3 Algorithm TRAPEZOIDALMAP computes the trapezoidal map T(S) of a set S of n line segments in general position and a search structure D for T(S) in O(nlogn) expected time. The expected size of the search structure is O(n) and for any query point q the expected query time is O(logn).
29 / 38
Yazd Univ. Computational Geometry Motivation Point Location and Trapezoidal Maps A Randomized Incremental Algorithm
Search Structure
A Randomized Incremental Algorithm Theorem 6.3 Algorithm TRAPEZOIDALMAP computes the trapezoidal map T(S) of a set S of n line segments in general position and a search structure D for T(S) in O(nlogn) expected time. The expected size of the search structure is O(n) and for any query point q the expected query time is O(logn).
29 / 38
Yazd Univ. Computational Geometry Motivation Point Location and Trapezoidal Maps A Randomized Incremental Algorithm
Search Structure
A Randomized Incremental Algorithm Theorem 6.3 Algorithm TRAPEZOIDALMAP computes the trapezoidal map T(S) of a set S of n line segments in general position and a search structure D for T(S) in O(nlogn) expected time. The expected size of the search structure is O(n) and for any query point q the expected query time is O(logn).
30 / 38
Yazd Univ. Computational Geometry Motivation Point Location and Trapezoidal Maps A Randomized Incremental Algorithm
Search Structure
A Randomized Incremental Algorithm Theorem 6.3 Algorithm TRAPEZOIDALMAP computes the trapezoidal map T(S) of a set S of n line segments in general position and a search structure D for T(S) in O(nlogn) expected time. The expected size of the search structure is O(n) and for any query point q the expected query time is O(logn).
30 / 38
Yazd Univ. Computational Geometry Motivation Point Location and Trapezoidal Maps A Randomized Incremental Algorithm
Search Structure
A Randomized Incremental Algorithm Theorem 6.3 Algorithm TRAPEZOIDALMAP computes the trapezoidal map T(S) of a set S of n line segments in general position and a search structure D for T(S) in O(nlogn) expected time. The expected size of the search structure is O(n) and for any query point q the expected query time is O(logn).
30 / 38
Yazd Univ. Computational Geometry Motivation Point Location and Trapezoidal Maps A Randomized Incremental Algorithm
Search Structure
A Randomized Incremental Algorithm Theorem 6.3 Algorithm TRAPEZOIDALMAP computes the trapezoidal map T(S) of a set S of n line segments in general position and a search structure D for T(S) in O(nlogn) expected time. The expected size of the search structure is O(n) and for any query point q the expected query time is O(logn).
i .
31 / 38
Yazd Univ. Computational Geometry Motivation Point Location and Trapezoidal Maps A Randomized Incremental Algorithm
Search Structure
A Randomized Incremental Algorithm Theorem 6.3 Algorithm TRAPEZOIDALMAP computes the trapezoidal map T(S) of a set S of n line segments in general position and a search structure D for T(S) in O(nlogn) expected time. The expected size of the search structure is O(n) and for any query point q the expected query time is O(logn).
i .
31 / 38
Yazd Univ. Computational Geometry Motivation Point Location and Trapezoidal Maps A Randomized Incremental Algorithm
Search Structure
A Randomized Incremental Algorithm Theorem 6.3 Algorithm TRAPEZOIDALMAP computes the trapezoidal map T(S) of a set S of n line segments in general position and a search structure D for T(S) in O(nlogn) expected time. The expected size of the search structure is O(n) and for any query point q the expected query time is O(logn).
i .
31 / 38
Yazd Univ. Computational Geometry Motivation Point Location and Trapezoidal Maps A Randomized Incremental Algorithm
Search Structure
A Randomized Incremental Algorithm Theorem 6.3 Algorithm TRAPEZOIDALMAP computes the trapezoidal map T(S) of a set S of n line segments in general position and a search structure D for T(S) in O(nlogn) expected time. The expected size of the search structure is O(n) and for any query point q the expected query time is O(logn).
i .
32 / 38
Yazd Univ. Computational Geometry Motivation Point Location and Trapezoidal Maps A Randomized Incremental Algorithm
Search Structure
A Randomized Incremental Algorithm Theorem 6.3 Algorithm TRAPEZOIDALMAP computes the trapezoidal map T(S) of a set S of n line segments in general position and a search structure D for T(S) in O(nlogn) expected time. The expected size of the search structure is O(n) and for any query point q the expected query time is O(logn).
i .
32 / 38
Yazd Univ. Computational Geometry Motivation Point Location and Trapezoidal Maps A Randomized Incremental Algorithm
Search Structure
A Randomized Incremental Algorithm Theorem 6.3 Algorithm TRAPEZOIDALMAP computes the trapezoidal map T(S) of a set S of n line segments in general position and a search structure D for T(S) in O(nlogn) expected time. The expected size of the search structure is O(n) and for any query point q the expected query time is O(logn).
i .
32 / 38
Yazd Univ. Computational Geometry Motivation Point Location and Trapezoidal Maps A Randomized Incremental Algorithm
Search Structure
A Randomized Incremental Algorithm Theorem 6.3 Algorithm TRAPEZOIDALMAP computes the trapezoidal map T(S) of a set S of n line segments in general position and a search structure D for T(S) in O(nlogn) expected time. The expected size of the search structure is O(n) and for any query point q the expected query time is O(logn).
n
n
n
33 / 38
Yazd Univ. Computational Geometry Motivation Point Location and Trapezoidal Maps A Randomized Incremental Algorithm
Search Structure
A Randomized Incremental Algorithm Theorem 6.3 Algorithm TRAPEZOIDALMAP computes the trapezoidal map T(S) of a set S of n line segments in general position and a search structure D for T(S) in O(nlogn) expected time. The expected size of the search structure is O(n) and for any query point q the expected query time is O(logn).
i=1 i = O(n2).
i=1(ki − 1)] = O(n) + E [n i=1(ki)].
34 / 38
Yazd Univ. Computational Geometry Motivation Point Location and Trapezoidal Maps A Randomized Incremental Algorithm
Search Structure
A Randomized Incremental Algorithm Theorem 6.3 Algorithm TRAPEZOIDALMAP computes the trapezoidal map T(S) of a set S of n line segments in general position and a search structure D for T(S) in O(nlogn) expected time. The expected size of the search structure is O(n) and for any query point q the expected query time is O(logn).
i=1 i = O(n2).
i=1(ki − 1)] = O(n) + E [n i=1(ki)].
34 / 38
Yazd Univ. Computational Geometry Motivation Point Location and Trapezoidal Maps A Randomized Incremental Algorithm
Search Structure
A Randomized Incremental Algorithm Theorem 6.3 Algorithm TRAPEZOIDALMAP computes the trapezoidal map T(S) of a set S of n line segments in general position and a search structure D for T(S) in O(nlogn) expected time. The expected size of the search structure is O(n) and for any query point q the expected query time is O(logn).
i=1 i = O(n2).
i=1(ki − 1)] = O(n) + E [n i=1(ki)].
34 / 38
Yazd Univ. Computational Geometry Motivation Point Location and Trapezoidal Maps A Randomized Incremental Algorithm
Search Structure
A Randomized Incremental Algorithm Theorem 6.3 Algorithm TRAPEZOIDALMAP computes the trapezoidal map T(S) of a set S of n line segments in general position and a search structure D for T(S) in O(nlogn) expected time. The expected size of the search structure is O(n) and for any query point q the expected query time is O(logn).
i=1 i = O(n2).
i=1(ki − 1)] = O(n) + E [n i=1(ki)].
34 / 38
Yazd Univ. Computational Geometry Motivation Point Location and Trapezoidal Maps A Randomized Incremental Algorithm
Search Structure
A Randomized Incremental Algorithm Theorem 6.3 Algorithm TRAPEZOIDALMAP computes the trapezoidal map T(S) of a set S of n line segments in general position and a search structure D for T(S) in O(nlogn) expected time. The expected size of the search structure is O(n) and for any query point q the expected query time is O(logn).
i=1 i = O(n2).
i=1(ki − 1)] = O(n) + E [n i=1(ki)].
34 / 38
Yazd Univ. Computational Geometry Motivation Point Location and Trapezoidal Maps A Randomized Incremental Algorithm
Search Structure
A Randomized Incremental Algorithm Theorem 6.3 Algorithm TRAPEZOIDALMAP computes the trapezoidal map T(S) of a set S of n line segments in general position and a search structure D for T(S) in O(nlogn) expected time. The expected size of the search structure is O(n) and for any query point q the expected query time is O(logn).
35 / 38
Yazd Univ. Computational Geometry Motivation Point Location and Trapezoidal Maps A Randomized Incremental Algorithm
Search Structure
A Randomized Incremental Algorithm Theorem 6.3 Algorithm TRAPEZOIDALMAP computes the trapezoidal map T(S) of a set S of n line segments in general position and a search structure D for T(S) in O(nlogn) expected time. The expected size of the search structure is O(n) and for any query point q the expected query time is O(logn).
35 / 38
Yazd Univ. Computational Geometry Motivation Point Location and Trapezoidal Maps A Randomized Incremental Algorithm
Search Structure
A Randomized Incremental Algorithm Theorem 6.3 Algorithm TRAPEZOIDALMAP computes the trapezoidal map T(S) of a set S of n line segments in general position and a search structure D for T(S) in O(nlogn) expected time. The expected size of the search structure is O(n) and for any query point q the expected query time is O(logn).
35 / 38
Yazd Univ. Computational Geometry Motivation Point Location and Trapezoidal Maps A Randomized Incremental Algorithm
Search Structure
A Randomized Incremental Algorithm Theorem 6.3 Algorithm TRAPEZOIDALMAP computes the trapezoidal map T(S) of a set S of n line segments in general position and a search structure D for T(S) in O(nlogn) expected time. The expected size of the search structure is O(n) and for any query point q the expected query time is O(logn).
i=1 E(ki) = O(n).
36 / 38
Yazd Univ. Computational Geometry Motivation Point Location and Trapezoidal Maps A Randomized Incremental Algorithm
Search Structure
A Randomized Incremental Algorithm Theorem 6.3 Algorithm TRAPEZOIDALMAP computes the trapezoidal map T(S) of a set S of n line segments in general position and a search structure D for T(S) in O(nlogn) expected time. The expected size of the search structure is O(n) and for any query point q the expected query time is O(logn).
i=1 E(ki) = O(n).
36 / 38
Yazd Univ. Computational Geometry Motivation Point Location and Trapezoidal Maps A Randomized Incremental Algorithm
Search Structure
A Randomized Incremental Algorithm Theorem 6.3 Algorithm TRAPEZOIDALMAP computes the trapezoidal map T(S) of a set S of n line segments in general position and a search structure D for T(S) in O(nlogn) expected time. The expected size of the search structure is O(n) and for any query point q the expected query time is O(logn).
i=1 E(ki) = O(n).
36 / 38
Yazd Univ. Computational Geometry Motivation Point Location and Trapezoidal Maps A Randomized Incremental Algorithm
Search Structure
A Randomized Incremental Algorithm Theorem 6.3 Algorithm TRAPEZOIDALMAP computes the trapezoidal map T(S) of a set S of n line segments in general position and a search structure D for T(S) in O(nlogn) expected time. The expected size of the search structure is O(n) and for any query point q the expected query time is O(logn).
i=1 E(ki) = O(n).
36 / 38
Yazd Univ. Computational Geometry Motivation Point Location and Trapezoidal Maps A Randomized Incremental Algorithm
Search Structure
A Randomized Incremental Algorithm Theorem 6.3 Algorithm TRAPEZOIDALMAP computes the trapezoidal map T(S) of a set S of n line segments in general position and a search structure D for T(S) in O(nlogn) expected time. The expected size of the search structure is O(n) and for any query point q the expected query time is O(logn).
i=1 (O(log i) + O(E(ki))) = O(n log n).
37 / 38
Yazd Univ. Computational Geometry Motivation Point Location and Trapezoidal Maps A Randomized Incremental Algorithm
Search Structure
A Randomized Incremental Algorithm Theorem 6.3 Algorithm TRAPEZOIDALMAP computes the trapezoidal map T(S) of a set S of n line segments in general position and a search structure D for T(S) in O(nlogn) expected time. The expected size of the search structure is O(n) and for any query point q the expected query time is O(logn).
i=1 (O(log i) + O(E(ki))) = O(n log n).
37 / 38
Yazd Univ. Computational Geometry Motivation Point Location and Trapezoidal Maps A Randomized Incremental Algorithm
Search Structure
38 / 38