260 likes | 316 Views
Trapezoidal Maps. Shmuel Wimer Bar Ilan Univ., School of Engineering. Trapezoidal Map. Planar subdivision. Abscissas are all distinct. n segments 6n+4 vertices at most 3n+1 trapezoids at most. Trapezoidal map can be constructed in O( n log n ) time by a scan-line algorithm.
E N D
Trapezoidal Maps Shmuel Wimer Bar Ilan Univ., School of Engineering
Trapezoidal Map Planar subdivision Abscissas are all distinct n segments 6n+4 vertices at most 3n+1 trapezoids at most
Trapezoidal map can be constructed in O(nlogn) time by a scan-line algorithm.
x-node y-node trapezoid Inner nodes have degree 2
Querying a point location Does q lie to the left or to the right ? Does q lie above or below?
Assuming that a point is contained in Δ, the sub tree replacing its leaf is sufficient to determine whether the point is in A, B, C or D. The information attached to new trapezoids is their left and right neighbor trapezoids, top and bottom segment and points defining their left and right vertical segment. If the information in Δ is properly stored, above info can be determined in a constant time from si and Δ. If pi=leftPoint(Δ) and / or qi=rightPoint(Δ), Δis divided into two or three trapezoids and sub-tree replacement is simpler.
Given a set of segments, nothing is guaranteed on the maximal run time, which can be quadratic. Considering all possible problems of n segments, what is the expected maximal query time? O(logn)