











Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!












Motion is ubiquitous in the physical world, yet its study is much less developed than that of another common physical modality, namely shape. While we have several standardized mathematical shape descriptions, and even entire disciplines devoted to that area–such as Computer-Aided Geometric Design (CAGD)—the state of formal motion descriptions is still in flux. This in part because motion descriptions span many levels of detail; they also tend to be intimately coupled to an underlying physical process generating the motion (dynamics). Thus, until recently, proper abstractions were lacking and there was only limited work on algorithmic descriptions of motion and their associated complexity measures. This chapter aims to show how an algorithmic study of motion is intimately tied to discrete and computational geometry. After a quick survey of earlier work (Sections 50. and 50.3), we devote the bulk of this chapter to discussing the framework of Kinetic Data Structures (Section 50.4) [Gui98, BGH99]. We also briefly discuss methods for querying moving objects (Section 50.5).
Dynamic computational geometry refers to the study of combinatorial changes in a geometric structure, as its defining objects undergo prescribed motions. For example, we may have n points moving linearly with constant velocities in R^2 , and may want to know the time intervals during which a particular point appears on their convex hull, the steady-state form of the hull (after all changes have occurred), or get an upper bound on how many times the convex hull changes during this motion. Such problems were introduced and studied in [Ata85]. A number of other authors have dealt with geometric problems arising from motion, such as collision detection (Chapter 35) or minimum separation determina- tion [GJS96, ST95, ST96]. For instance, [ST96] shows how to check in subquadratic time whether two collections of simple geometric objects (spheres, triangles) collide with each other under specified polynomial motions.
An issue in the above research is that object motion(s) are assumed to be known in advance, sometimes in explicit form (e.g., points moving as polynomial functions
Chapter 50: Motion 3
certification needs to change. Event queue: In a KDS, all certificates are placed in an event queue, according to their earliest failure time.
The inner loop of a KDS consists of repeated certificate failures and certification repairs, as depicted in Figure 50.4.1.
Proof of correctness
Certificate failure
Proof update Attributeupdate
FIGURE 50.4. The inner loop of a kinetic data structure.
We remark that in the KDS framework, objects are allowed to change their motions at will, with appropriate notification to the data structure. When this happens all certificates involving the object whose motion has changed must re- evaluate their failure times.
Suppose we have four points a, b, c, and d in R^2 , and wish to track their convex hull. For the convex hull problem, the most important geometric relation is the ccw predicate: ccw(a, b, c) asserts that the triangle abc is oriented counterclockwise. Figure 50.4.2 shows a configuration of four points and four ccw relations that hold among them. It turns out that these four relations are sufficient to prove that the convex hull of the four points is the triangle abc. Indeed the points can move and form different configurations, but as long as the four certificates shown remain valid, the convex hull must be abc. Now suppose that points a, b, and c are stationary and only point d is moving, as shown in Figure 50.4.3. At some time t 1 the certificate ccw(d, b, c) will fail, and at a later time t 2 ccw(d, a, b) will also fail. Note that the certificate ccw(d, c, a) will never fail in the configuration shown even though d is moving. So the certificates ccw(d, b, c) and ccw(d, a, b) schedule events that go into the event queue. At time t 1 , ccw(d, b, c) ceases to be true and its negation, ccw(c, b, d), becomes true. In this simple case the three old certificates, plus the new certificate ccw(c, b, d) allow us to conclude that convex hull has now changed to abdc. If the certificate set is chosen judiciously, the KDS repair can be a local, incre- mental process—a small number of certificates may leave the cache, a small number may be added, and the new attribute certification will be closely related to the old one. A good KDS exploits the continuity or coherence of motion and change in the world to maintain certifications that themselves change only incrementally and locally as assertions in the cache fail.
4 L. J. Guibas
Old proof New proof
ccw(a, b, c) ccw(a, b, c)
ccw(d, b, c) ccw(c, b, d)
ccw(d, c, a) ccw(d, c, a)
ccw(d, a, b) ccw(d, a, b)
t 1 t^2
c
d
a
b
c d
a
b
FIGURE 50.4. Updating the convex hull of the points.
Because a KDS is not intended to facilitate a terminating computation but rather an on-going process, we need to use somewhat different measures to assess its com- plexity. In classical data structures there is usually a tradeoff between operations that interrogate a set of data and operations that update the data. We commonly seek a compromise by building indices that make queries fast, but such that up- dates to the set of indexed data are not that costly as well. Similarly in the KDS setting, we must at the same time have access to information that facilitates or trivializes the computation of the attribute of interest, yet we want information that is relatively stable and not so costly to maintain. Thus, in the same way that classical data structures need to balance the efficiency of access to the data with the ease of its update, kinetic data structures must tread a delicate path between “knowing too little” and “knowing too much” about the world. A good KDS will select a certificate set that is at once economical and stable, but also allows a quick repair of itself and the attribute computation when one of its certificates fails.
responsiveness: A KDS is responsive if the cost, when a certificate fails, of repairing the certificate set and updating the attribute computation is small. By
6 L. J. Guibas
FIGURE 50.4. Merging the red and blue upper envelopes. In this example, the red envelope (solid line) is above the blue (dotted line), except at the extreme left and right areas. Vertical double-ended arrows represent y-certificates and horizontal double-ended arrows represent x-certificates, as described below.
Figure 50.4.5 shows examples of how these types of certificates can be used to specify x-ordering constraints and to establish intersection or non-intersection of the envelopes.
a b
c
d e ab<xde de<xbc x-ordering certificates
a b d (^) e
ab<yd de<yb intersection certificates
a b
d e c
d<sb b<se b<y de
non-intersection certificates
FIGURE 50.4. Using the different types of certificates to certify the red-blue envelope merge.
A total of O(n) such certificates suffices to verify the correctness of the upper envelope merge. Whenever the motion of the lines causes one of these certificates to fail, a local, constant-time process suffices to update the envelope and repair the certification. Figure 50.4.6 shows an example where an y-certicate fails, allowing the blue enve- lope to poke up above the red. It is straightforward to prove that this kinetic upper envelope algorithm is responsive, local, and compact, using the logarithmic depth of the hierarchical structure of the certification. In order to bound the number of events processed,
Chapter 50: Motion 7
a b
d (^) e
f
d e
f
a b
FIGURE 50.4. Envelope repair after a certificate failure.In the event shown lines b, d, and e become concurrent, producing a red-blue envelope intersection
however, we must assume that the line motions are polynomial or at least pseudo- algebraic. A proof of efficiency can be developed by extruding the moving lines into space-time surfaces. Using certain well-known theorems about the complexity of upper envelopes of surfaces [Sha94] and the overlays of such envelopes [ASS96] (cf. Chapter 47), it can be shown that in the worst case the number of events processed by this algorithm is near quadratic (O(n2+)). Since the convex hull of even linearly moving points can change Ω(n^2 ) times [AGHV01], the efficiency result follows. No comparable structure is known for the convex hull of points in dimensions d ≥ 3.
A number of the original problems for which kinetic data structures were developed are aimed at different measures of how “spread out” a moving set of points in R^2 is—one example is the convex hull, whose maintenance was discussed in the previous subsection. Other measures of interest include the diameter, width, and smallest area or perimeter bounding rectangle for a moving set S of n points. All these problems can be solved using the kinetic convex hull algorithm above; the efficiency of the algorithms is O(n2+), for any > 0. There are also corresponding Ω(n^2 ) lower bounds for the number of combinatorial changes in these measures. Surprisingly, the best known upper bound for maintaining the smallest enclosing disk containing S is still near-cubic. Extensions of these results to dimensions higher than two are also lacking. These costs can be dramatically reduced if we consider approximate extent measures. If we are content with (1 + ) approximations to the measures, then an approximate smallest orthogonal rectangle, diameter, and smallest enclosing disk can be maintained with a number of events that is a function only and not of n [AHP01]. For example, the bound of the number of approximate diameter updates in R^2 under linear motion of the points is O(1/).
The fundamental proximity structures in computational geometry are the Voronoi Diagram and the Delaunay triangulation (Chapter 23). The edges of the Delaunay triangulation contain the closest pair of points, the closest neighbor to each point, as well as a wealth of other proximity information among the points. From the
Chapter 50: Motion 9
problems. The lower-bound results in [ABdB+99] indicate that one cannot hope for a subquadratic bound on the number of events in the worst case in the mainte- nance an any triangulation, even if a linear number of additional Steiner points is allowed. There is large gap between the desired quadratic upper bound and the cur- rent state of art. Even for maintaining an arbitrary triangulation of a set of n points moving linearly in the plane, the best-known algorithm processes O(n^7 /^3 ) events [ABG+00] in the worst case. The algorithm actually maintains a pseudo- triangulation of the convex hull of the point set and then a triangulation of each pseudotriangle. Although there are only O(n^2 ) events in the pseudotriangulation, some of the events change too many triangles because of high-degree vertices. Un- less additional Steiner points are allowed, there are point configurations for which high-degree vertices are inevitable and therefore some of the events will be expen- sive. A more clever, global argument is needed to prove a near-quadratic upper bound on the total number of events in the above algorithm. Methods that choose to add additional points, on the other hand, have the burden of defining appropri- ate trajectories for these Steiner points as well. Finally, today no triangulation that guarantees certain quality on the shapes of triangles as well as a subcubic bound on the number of retiling events is known.
Kinetic methods are naturally applicable to the problem of collision detection be- tween moving geometric objects. Typically collisions occur at irregular intervals, so that fixed-time stepping methods have difficulty selecting an appropriate sampling rate to fit both the numerical requirements of the integrator as well as thos of colli- sion detection. A kinetic method based on the discrete events that are the failures of relevant geometric conditions can avoid the pitfalls of both oversampling and undersampling the system. For two moving convex polygons in the plane, a kinetic algorithm where the number of events is a function of the relative separation of the two polygons is given in [EGSZ99]. The algorithm is based on constructing certain outer hierarchies on the two polygons. Analogous methods for 3D polytopes were presented in [GXZ01], together with implementation data. A tiling of the free space around objects can serve as a proof of non-intersection of the objects. If such a tiling can be efficiently maintained under object motion, then it can be the basis of a kinetic algorithm for collision detection. Several papers have developed techniques along these lines, including the case of two moving simple polygons in the plane [BEG+99], or multiple moving polygons [ABG+00, KSS00]. These developments all exploit deformable pseudotriangulations of the free space— tilings which undergo fewer combinatorial changes than, for example, triangula- tions. An example from [ABG+00] is shown in Figure 50.4.7. The figure shows how the pseudotriangulation adjusts by local retiling to the motion of the inner qudrilateral. The approach of [ABG+00] maintains a canonical pseudotriangula- tion, while others are based on letting a pseudotriangulation evolve according to the history of the motion. It is unclear at this point which is best. An advantage of all these methods is that the number of certificates needed is close to size of the min- link separating subdivision of the objects, and thus sensitive to how intertwined the objects are. Deformable objects are more challenging to handle. Classical methods, such as
10 L. J. Guibas
(i) (ii)
(iii) (iv) FIGURE 50.4. Snapshots of the mixed pseudotriangulation of [ABG+00]. As the center trapezoid-like polygon moves to the right, the edges corresponding to the next about-to-fail certificate are highlighted.
bounding volume hierarchies [GLM96], become expensive, as the fixed object hier- archies have to be rebuilt frequently. One possibility for mitigating this cost is to let the hierarchies themselves deform continuously, by having the bounding volumes defined implicitly in terms of object features. Such an approach was developed for flexible linear objects (such as rope or macromolecules), using combinatorially de- fined sphere hierarchies in [GNRZ02]. In that work a bounding sphere is defined not in the usual way, via its center and radius, but in an implicit combinatorial way, in terms of four feature points of the enclosed object geometry. As the object deforms these implicitly defined spheres automatically track their assigned features, and therefore the deformation. Of ourse the validity of the hierarchy has to be checked at each time step and repaired if necessary. What helps here is that the implicitly defined spheres change their combinatorial description rather infrequently, even un- der extrem deformation. An example is shown in Figure 50.4.8 where the rod shown is bent substantially, yet only the top-level sphere needs to update its description. The pseudotriangulation-based methods above can also be adapted to deal with object deformation.
Closely related to proximity problems is the issue of maintaining structures en- coding connectivity among moving geometric objects. Connectivity problems arise frequently in ad hoc mobile communication and sensor networks, where the viability of links may depend on proximity or direct line-of-sight visibility among the sta- tions desiring to communicate. With some assumptions, the communication range
12 L. J. Guibas
The problem of maintaining the visible parts of the environment when an observer is moving is one of the classic questions in computer graphics and has motivated significant developments, such as binary space partition trees, the hardware depth buffer, etc. The difficulty of the question increases significantly when the environ- ment itself includes moving objects; whatever visibility structures accelerate occlu- sion culling for the moving observer, must now themselves be maintained under object motion. Binary space partitions (BSP) are hierarchical partitions of space into convex tiles obtained by performing planar cuts (Chapter 28.8.2). Tiles are refined by further cuts until the interior of each tile is free of objects or contains geometry of limited complexity. Once a BSP tree is available, a correct visibility ordering for all geometry fragments in the tiles can be easily determined and incrementally main- tained as the observer moves. A kinetic algorithm for visibility can be devised by maintaining a BSP tree as the objects move. The key insight is to certify the correct- ness of the BSP tree through certain combinatorial conditions, whose failure triggers localized tree rearrangements — most of the classical BSP construction algorithms do not have this property. In R^2 , a randomized algorithm for maintaining a BSP of moving disjoint line segments is given in [AGMV00]. The algorithm processes O(n^2 ) events, the expected cost per tree update is O(log n), and the expected tree size is O(n log n). The maintenance cost increases to O(nλs+2 (n) log^2 n) [AEG98] for disjoint moving triangles in R^3 (s is a constant depending on the triangle mo- tion). Both of these algorithms are based on variants on vertical decompositions (many of the cuts are parallel to a given direction). It turns out that in practice these generate “sliver-like” BSP tiles that lead to robustness issues [Com99]. As the pioneering work on the visibility complex has shown [PV96], another structure that is well suited to visibility queries in R^2 is an appropriate pseudo- triangulation. Given a moving observer and convex moving obstacles, a full radial decomposition of the free space around the observer is quite expensive to maintain. One can build pseudotriangulations of the free space that become more and more like the radial decomposition as we get closer to the observer. Thus one can have a structure that compactly encodes the changing visibility polygon around the ob- server, while being quite stable in regions of the free space well-occluded from the observer [OH02].
We summarize in Table 50.4.1 the efficiency bounds on the main KDSs discussed above.
As mentioned above, we still lack efficient kinetic data structures for many funda- mental geometric questions. Here is a short list of such open problems:
Chapter 50: Motion 13
changes.
STRUCTURE BOUNDS ON EVENTS SOURCE Convex hull Ω(n2+) [BGH99] Pseudotriangulation O(n^2 ) [ABG+00] Triangulation (arb.) Ω(n^7 /^3 ) [ABG+00] MST O(n^11 /^6 log^3 /^2 n) [AEGH98] BSP O˜(n^2 ) [AGMV00, AEG98]
For d = 2, a goal would be an O(n2+) algorithm.
Beyond specific problems, there are also several important structural issues that require further research in the KDS framework. These include:
Recovery after multiple certificate failures. We have assumed up to now that the KDS assertion cache is repaired after each certificate failure. In many realistic scenarios, however, it is impossible to predict exactly when certificates will fail because explicit motion descriptions may not be available. In such settings we may need to sample the system and thus we must be prepared to deal with multiple (but hopefully few) certificate failures at each time step. A general area of research that this suggests is the study of how to efficiently update common geometric structures, such as convex hulls, Voronoi and Delaunay diagrams, arrangements, etc., after “small motions” of the defining geometric objects. There is also a related subtlety in the way that a KDS assertion cache can certify the value, or a computation yielding the value, of the attribute of interest. Suppose our goal is to certify that a set of moving points in the plane, in a given circular order, always form a convex polygon. A plausible certificate set for convexity is that all interior angles of the polygon are convex. See Figure 50.4.9. In the normal KDS setting where we can always predict accurately the next certificate failure, it turns out that the above certificate set is sufficient, as long as at the beginning of the motion the polygon was convex. One can draw, however, nonconvex self- intersecting polygons all of whose interior angles are convex, as also shown in the same figure. The point here is that a standard KDS can offer a historical proof of the convexity of the polygon by relying on the fact that the certificate set is valid and that the polygon was convex during the prior history of the motion. Indeed
Chapter 50: Motion 15
in [dBK+97]. Thus it is important to develop a class of kinetic motion-sensitive algorithms, whose performance can be expressed a function of how coherent the motions of the underlying objects are.
Non-canonical structures. The complexity measures for KDSs mentioned ear- lier are more suitable for maintaining canonical geometric structures, which are uniquely defined by the position of the data, e.g., convex hull, closest pair, and Delaunay triangulation. In these cases the notion of external events is well defined and is independent of the algorithm used to maintain the structure. On the other hand, as we already discussed, suppose we want to maintain a triangulation of a moving point set. Since the triangulation of a point set is not unique, the external events depend on the triangulation being maintained, and thus depend on the al- gorithm. This makes it difficult to analyze the efficiency of a kinetic triangulation algorithm. Most of the current approaches for maintaining noncanonical structures artificially impose canonicality and maintain the resulting canonical structure. But this typically increases the number of events. So it is entirely possible that methods in which the current form of the structure may depend on its past history can be more efficient. Unfortunately, we lack mathematical techniques for analyzing such history-dependent structures.
50.5 QUERYING MOVING OBJECTS
Continuous tracking of a geometric attribute may be more than is needed for some applications. There may be time intervals during which the value of the attribute is of no interest; in other scenarios we may be just interested to know the attribute value at certain discrete query times. For example, given n moving points in R^2 , we may want to pose queries asking for all points inside a rectangle R at time t, for various values of R and t, or for an interval of time ∆t, etc. Such problems can be handled by a mixture of kinetic and static techniques, including standard range- searching tools such as partition trees and range trees [dBvK+00]. They typically involve tradeoffs between evolving indices kinetically, or prebuilding indices for static snapshots. An especially interesting special case is when we want to be able answer queries about the near future faster than those about the distant future—a natural desideratum in many real-time applications. A number of other classical range-searching structures, such as k-d-trees and R-trees have recently been investigated for moving objects [AHPP02, AGG02].
50.6 SOURCES AND RELATED MATERIALS
Results not given an explicit reference above may be traced in these surveys. [Gui98]: An early, and by now somewhat dated, survey of KDS work.
16 L. J. Guibas
[AG+ar]: A report based on an NSF-ARO workshop, addressing several issues on modeling motion from the perspective of a variety of disciplines. [Gui02]: A “popular-science” type article containing material related to the costs of sensing and communication for tracking motion in the real world.
Chapter 22: Convex hull computations Chapter 23: Voronoi diagrams and Delaunay triangulations Chapter 25: Triangulations and mesh generation Chapter 35: Collision detection
[ABdB+99] P.K. Agarwal, J. Basch, M. de Berg, L.J. Guibas, and J. Hershberger. Lower bounds for kinetic planar subdivisions. In Proc. 15th Annu. ACM Sympos. Comput. Geom., pages 247–254, 1999.
[ABG+00] P.K. Agarwal, J. Basch, L.J. Guibas, J. Hershberger, and L. Zhang. Deformable free space tiling for kinetic collision detection. In Proc. 4th Workshop Algorithmic Found. Robot. (WAFR), pages 83–96, 2000.
[AEG98] P.K. Agarwal, Jeff Erickson, and L.J. Guibas. Kinetic BSPs for intersecting segments and disjoint triangles. In Proc. 9th Annu. ACM-SIAM Sympos. Discrete Algorithms, pages 107–116, 1998.
[AEGH98] P.K. Agarwal, D. Eppstein, L.J. Guibas, and M. Henzinger. Parametric and kinetic minimum spanning trees. In Proc. 39th Annu. IEEE Sympos. Found. Comput. Sci., pages 596–605, 1998.
[AGG02] P. Agarwal, J. Gao, and L. Guibas. Kinetic medians and kd-trees. In Proc. 10th Europ. Sympos. Algorithms (ESA), pages 5–16, 2002.
[AGHV01] P.K. Agarwal, L.J. Guibas, J.Hershberger, and E. Veach:. Maintaining the extent of a moving point set. Discrete Comput. Geom., 26:353–374, 2001.
[AGMR98] G. Albers, L.J. Guibas, J.S.B. Mitchell, and T. Roos. Voronoi diagrams of moving points. Internat. J. Comput. Geom. Appl., 8:365–380, 1998.
[AGMV00] P.K. Agarwal, L.J. Guibas, T.M. Murali, and J.S. Vitter. Cylindrical static and kinetic binary space partitions. Comp. Geometry, Theory and Appl., 16:103–127,
[AG+ar] P.K. Agarwal, L.J. Guibas, et al. Algorithmic issues in modeling motion. ACM Comput. Surv., 34(4):550–572, 2002.
[AHP01] P.K. Agarwal and S. Har-Peled. Maintaining approximate extent measures of moving points. In Proc.12th Annu. ACM-SIAM Sympos. Discrete Algorithms (SODA), pages 148–157, 2001.
[AHPP02] P. Agarwal, S. Har-Peled, and M. Procopiuc. Star-tree: An efficent self-adjusting index for moving points. In Workshop Algorithms Engineering, 2002.
[ASS96] P.K. Agarwal, O. Schwarzkopf, and M. Sharir. The overlay of lower envelopes and its applications. Discrete Comput. Geom., 15:1–13, 1996.
18 L. J. Guibas
[Gui98] L.J. Guibas. Kinetic data structures—A state of the art report. In P.K. Agarwal, L.E. Kavraki, and M. Mason, editors, Proc. Workshop Algorithmic Found. Robot., pages 191–209. A.K. Peters, Wellesley, MA, 1998.
[Gui02] L.J. Guibas. Sensing, tracking, and reasoning with relations. IEEE Signal Proc. Mag., pages 73–85, 2002.
[GXZ01] L. Guibas, F. Xie, and L. Zhang. Kinetic collision detection: Algorithms and exper- iments. In Proc. Internat. Conf. Robot. Autom., pages 2903–2910, 2001.
[GZ98] L. Guibas and L. Zhang. Euclidean proximity and power diagrams. In Proc. 10th d. Conf. Comput. Geom., pages 90–91, 1998.
[HS99] J. Hershberger and S. Suri. Kinetic connectivity of rectangles. In Proc. 15th Annu. ACM Sympos. Comput. Geom., pages 237–246, 1999.
[Kah91] S. Kahan. A model for data in motion. In Proc. 23th Annu. ACM Sympos. Theory Comput., pages 267–277, 1991.
[KSS00] D. Kirkpatrick, J. Snoeyink, and Bettina Speckmann. Kinetic collision detection for simple polygons. In Proc. 16th Annu. ACM Sympos. Comput. Geom., pages 322–330,
[OH02] O.Hall-Holt. Kinetic visibility. Ph.D. thesis, Stanford Univ., 2002.
[PV96] M. Pocchiola and G. Vegter. The visibility complex. Internat. J. Comput. Geom. Appl., 6:279–308, 1996.
[Sha94] M. Sharir. Almost tight upper bounds for lower envelopes in higher dimensions. Discrete Comput. Geom., 12:327–345, 1994.
[ST95] E. Sch¨omer and C. Thiel. Efficient collision detection for moving polyhedra. In Proc. 11th Annu. ACM Sympos. Comput. Geom., pages 51–60, 1995.
[ST96] E. Sch¨omer and C. Thiel. Subquadratic algorithms for the general collision detec- tion problem. In Abstracts 12th European Workshop Comput. Geom., pages 95–101. Universit¨at M¨unster, 1996.