KTT 和其近似问题
A Data-Structure for Approximate Dynamic Envelope in 2D
中文版在施工。
Introduction
The maintenance of geometric envelopes---the pointwise maximum or minimum of a set of functions---is a fundamental problem in computational geometry with far-reaching applications in computer graphics, motion planning, and optimization. As a result, there has been a great deal of work on implementing high-speed algorithm for maintaining geometric envelopes around last decades [@Edelsbrunner1989; @BASCH19991; @ALEXANDRON2007144]. After finding the tight upper bound of this problem [@Sharir1994], approximate algorithms are introduced [@BAREQUET200191; @10.1145/1008731.1008736; @Schulz2011]. Then, in dynamic settings, algorithms are created to maintain the envelopes [@10.1145/1008731.1008736; @ALEXANDRON2007144; @Botana2017].
Problem Formulation
Let
We wish to maintain
-
Insert(
i, f_i ): Add a new functionf_i at indexi . -
Delete(
i ): Remove the function at indexi . -
Translate
_I (\alpha, \beta ): For all functionsf_j in a contiguous interval of indicesI , apply the transformationf_j(x) \leftarrow f_j(x + \alpha) + \beta . This is a bulkt ranslation. -
QueryMax(
x_q ): Return an approximate value\widetilde{U}(x_q) such that\mathfrak U_F(x_q) \geq \widetilde{\mathfrak U}(x_q) \geq \mathfrak U_F(x_q) - \epsilon \mathfrak E_F(x_q). -
QueryMin(
x_q ): Return an approximate value\widetilde{L}(x_q) such that\mathfrak L_F(x_q) \leq \widetilde{\mathfrak L}(x_q) \leq \mathfrak L_F(x_q) + \epsilon \mathfrak E_F(x_q).
To make it more convenient, let
Literature Review
The problem of maintaining the envelope of a set of functions in 2D has deep roots in computational geometry and has been approached from multiple perspectives, ranging from exact solutions for specific function classes to approximate generalized frameworks. This review systematically examines the evolution of these techniques, with particular attention to the key challenges of dynamism, approximation, and handling complex operations like bulk translations.
Exact Envelope Structures for Linear Functions
The foundation of envelope maintenance lies in the study of the convex hull of points in the plane, which is dual to the upper envelope of lines.
-
Static Upper Envelope of Lines: The classical result establishes that the upper envelope of
N lines has complexity\Theta(N) and can be computed in optimalO(N \log N) time using a sweep-line algorithm or divide-and-conquer [@KEIL1991121; @AGARWAL20001]. -
Dynamic Convex Hull (Logarithmic Time): Overmars and van Leeuwen [@OVERMARS1981166] presented a seminal data structure maintaining the convex hull under point insertions and deletions in
O(\log^2 N) time per update. This directly solves the exact dynamic upper envelope problem for lines. Brodal and Jacob [@1181985] later improved this toO(\log N) amortized time.
These exact structures, while optimal for lines, do not extend efficiently to non-linear functions. The upper envelope of
Kinetic Data Structures for Moving Points
The problem of tracking attributes of moving points, such as the convex hull, introduced the concept of kinetic data structures (KDS)[@BASCH19991].
-
Kinetic Heaps and Tournament Trees: A kinetic heap [@BASCH19991] maintains the maximum of a set of values changing over time. It functions by storing certificates that guarantee the current maximum is valid and processing certificate failures as time progresses. This is highly relevant for querying the upper envelope at a moving point
x(t) . -
Kinetic Convex Hull: KDS frameworks can maintain the convex hull of points moving with known trajectories. While efficient for pseudo-algebraic motions, a general KDS for the convex hull may require processing
\Omega(N^2) events in the worst case, and updating the structure upon insertions or deletions is non-trivial.
The KDS framework is a natural fit for the translate operation, as a translation corresponds to a change in the time variable
Approximation Schemes for Envelopes
To overcome the high complexity of exact envelopes, a rich line of research has focused on
-
Coresets and Simplified Envelopes: Agarwal et al. [@10.1145/1008731.1008736] introduced the concept of
\epsilon -coresets for extent measures. For the width of a point set (dually, the vertical distance between upper and lower envelopes), they show that a coreset of sizeO(1/\sqrt{\epsilon}) can be maintained, which can be seen as storing a simplified envelope. This result is foundational for our approach, as it justifies that a small number of functions can suffice for an\epsilon -approximation. -
Mergeable Summaries: The work of Agarwal et al. [@agarwal2011mergeable] on mergeable summaries for extent measures provides a direct technical tool. They demonstrate how to maintain small, approximate summaries for the extent of a point set that can be efficiently merged, which is precisely the operation required to combine the
\epsilon -kernel of two children in our segment tree.
These approximation schemes form the mathematical basis of it, demonstrating that the complexity of the envelope can be made independent of
Data Structures for Bulk Updates
Handling bulk operations efficiently requires moving beyond point updates to range updates.
-
Segment Trees with Lazy Propagation: The segment tree is the canonical data structure for range updates and queries on an array. Its extension with lazy propagation allows range updates to be applied in
O(\log N) time. This project adapts this classic idea, but the update is an affine transformation applied to a set of functions. -
Affine Transformations in Geometric Structures: The problem of maintaining geometric structures under rigid motions or affine transformations has been studied. For instance, the work of Basch et al. [@BASCH19991] on kinetization can be viewed as handling continuous transformations. However, applying this to a discrete, bulk update over an interval of indices in a dynamic set of functions is a novel combination of these ideas.
Background - Kinetic Tournament Tree
First, we introduce Davenport-Schinzel Sequences [@AGARWAL20001], used to analysis the time complexity of the Kinetic Tournament Tree.
Definition 1 (
Let
1\leq u_i \leq n for eachi\leq m ,u_i \neq u_{i+1} for eachi < m ,- *there do not exist
s+2 indices u_{i_1}=u_{i_3}=u_{i_5}=\cdots=a, \quad u_{i_2}=u_{i_4}=u_{i_6}=\cdots=b,$$ and $a\neq b$.*
We define
Theorem 2 ([@AGARWAL20001]). Let
To solve the exact problem, Kinetic Tournament Tree is promoted, but requires an extra property on
Because the translate operation is in a contiguous interval of incdices, the naive idea is to store
Queries Only
In the construction of the Kinetic Tournament Tree, it costs
Lemma 3. *Let
Proof. The number of intersection points of among
Although the result is not satisfied, compare to the result of fractional cascading [@Chazelle1986] in
Insertions and Deletions
Based on insertions and deletions, we can regard the functions as partially functions, which starts from the query just after inserting it and ends at the query just before deleting it.
Theorem 4 ([@AGARWAL20001]). Let
Lemma 5. Let
Proof. We regard insertion and deletion as the functions are partially defined on the time line. Thus we have at most
Bulk Updates
It is trivial to complete the operation. Using the lazy propagation to record the amount by which the function shifts to the left and up separately. The key challenge is to analysis the time it costs.
Theorem 6. Let
Let
Then, let
Let
Then, plug in
After that, we need to analysis the impact from modification to the potential of data structure. For an insertion, deletion, or interval translation operation, each will at most increasing
Our Method
Kinetic Tournament Tree greatly solve the problem, but requires extra property of monotonicity on queries. We can only translate functions to one side of left and right. However, the problem itself does not provide such property.
To address this case, we introduce a new data structure for approximate result of problem. The main idea is to store the
Definition 7 (
Our goal is to maintain the
Linear Functions
Theorem 8 ([@10.1145/1008731.1008736]). Let
We construct the
However, merging kernels requires strict restrictions [@agarwal2011mergeable]. Thus because the height of tournament tree is
Therefore, each vertex stores
Lemma 9 ([@10.1145/1008731.1008736]). Let
Thus, it is trivial to using lazy propagation to maintain the
Because for each vertex on tree, the
Therefore, in total, the time complexity is
Polynomial Functions
By using the linearization technique, we can transfrom the
Theorem 10 ([@10.1145/1008731.1008736]). Let
Based on Theorem 10, we can still conclude that
References
[1] P. K. Agarwal, G. Cormode, Z. Haung, J. M. Phillips, Z. Wei, and K. Yi. Mergeable coresets. 2011.
[2] P. K. Agarwal, S. Har-Peled, and K. R. Varadarajan. Approximating extent measures of points. J. ACM, 51(4):606–635, July 2004.
[3] P. K. Agarwal and M. Sharir. Davenport-schinzel sequences and their geometric applica- tions. In J.-R. Sack and J. Urrutia, editors, Handbook of Computational Geometry, pages 1–47. North-Holland, Amsterdam, 2000.
[4] G. Alexandron, H. Kaplan, and M. Sharir. Kinetic and dynamic data structures for convex hulls and upper envelopes. Computational Geometry, 36(2):144–158, 2007.
[5] G. Barequet and S. Har-Peled. Efficiently approximating the minimum-volume bounding box of a point set in three dimensions. Journal of Algorithms, 38(1):91–109, 2001.
[6] J. Basch, L. J. Guibas, and J. Hershberger. Data structures for mobile data. Journal of Algorithms, 31(1):1–28, 1999.
[7] F. Botana and T. Recio. Computing envelopes in dynamic geometry environments. Annals of Mathematics and Artificial Intelligence, 80(1):3–20, may 2017.
[8] G. Brodal and R. Jacob. Dynamic planar convex hull. In The 43rd Annual IEEE Symposium on Foundations of Computer Science, 2002. Proceedings., pages 617–626, 2002.
[9] B. Chazelle and L. J. Guibas. Fractional cascading: II. applications. Algorithmica, 1(1):163–191, nov 1986.
[10] H. Edelsbrunner, L. J. Guibas, and M. Sharir. The upper envelope of piecewise linear functions: Algorithms and applications. Discrete & Computational Geometry, 4(1):311– 336, aug 1989.
[11] M. Keil. A simple algorithm for determining the envelope of a set of lines. Information Processing Letters, 39(3):121–124, 1991.
[12] M. H. Overmars and J. van Leeuwen. Maintenance of configurations in the plane. Journal of Computer and System Sciences, 23(2):166–204, 1981.
[13] T. Schulz and B. J¨uttler. Envelope computation in the plane by approximate implicitization. Applicable Algebra in Engineering, Communication and Computing, 22(4):265–288, nov 2011. 10
[14] M. Sharir. Almost tight upper bounds for lower envelopes in higher dimensions. Discrete & Computational Geometry, 12(1):327–345, sep 1994.