Segment Intersection Searching Problems in General Settings

Vladlen KoltunDiscret. Comput. Geom 2003

Abstract

This paper, originally published in Discrete & Computational Geometry (2003), introduces a near-optimal data structure for segment intersection searching among general algebraic arcs. By "lifting" 2D geometry into a specific 3D arrangement, the author achieves $O(\log n)$ query times for counting intersections, matching the performance of previous algorithms that were restricted to much simpler shapes like lines or circles.

Introduction: The Intersection Searching Problem

Intersection searching is a fundamental task in computational geometry: given a collection of $n$ objects, how can we quickly identify which ones intersect a "query" object, such as a line segment?

Examples of segment intersection queries among a set of algebraic arcs.

While this problem was well-solved for simple cases—such as searching among sets of lines or segments—it remained a difficult "open problem" for general curved objects. Previous state-of-the-art solutions were specialized for circular arcs or segments and often required near-cubic storage to achieve fast query times. The challenge addressed here was to find a "generalist" approach capable of handling any algebraic arc of constant degree without sacrificing speed or requiring astronomical amounts of memory.

Methodology: Dimensionality as a Solution

The core of the paper is a geometric transformation that maps 2D objects into 3D space. Instead of tackling the problem in the 2D plane, the author defines a mapping ($T$) that "lifts" points in $\mathbb{R}^2$ to one-dimensional curves in $\mathbb{R}^3$ and 2D arcs to two-dimensional surfaces in $\mathbb{R}^3$.

To keep the math algebraic and solvable by standard algorithms, the author utilizes a trigonometric substitution ($\tan \theta/2$), ensuring the resulting 3D surfaces are defined by polynomials rather than transcendental functions. Through this transform, the problem of finding which 2D arcs intersect a query segment is reduced to finding which 3D surfaces intersect a vertical segment in 3D.

The author then constructs a three-level data structure based on Chazelle’s point location algorithm. It uses "shafts"—regions of space above or below a cell—to canonicalize the search, allowing the algorithm to count or report intersections through a series of filtered steps.

Key Results and Complexity

The most profound insight is that adding a dimension actually makes the problem more structured. While 3D arrangements of $n$ surfaces typically have a complexity of $O(n^3)$, the author proves that the specific surfaces generated by this transform have a "vertical decomposition" complexity of roughly $O(n^2)$. This near-quadratic bound makes the data structure theoretically practical.

Key performance metrics include:

  • Query Performance: For a set of $n$ algebraic arcs, the structure can count intersections with a query segment in $O(\log n)$ time and report them in $O(\log n + k)$ time (where $k$ is the number of intersections).
  • Space Complexity: The data structure requires $O(n^{2+\epsilon})$ space and preprocessing time for any arbitrarily small $\epsilon > 0$.
  • Ray Shooting: The paper also derives a ray shooting data structure with $O(\log n)$ query time.

Applications and Limitations

The method is highly versatile; it does not distinguish between segments, circles, or ellipses, provided they are defined by constant-degree polynomials. This has immediate applications in Triangular Windowing (finding curves inside a triangular window) and Red-Blue Counting (counting intersections between segments and algebraic arcs).

However, limitations remain. The $O(n^{2+\epsilon})$ space requirement, while an improvement, is still high for massive real-world datasets. Additionally, the constant factors hidden by the $\epsilon$ notation can be large, and 3D vertical decompositions are notoriously difficult to implement. Finally, the "double-general" case—where both sets of objects are general algebraic arcs—remains an open challenge for achieving subquadratic time.

Summary updated

BibTeX
@article{koltun2003segment,
  author = {Vladlen Koltun},
  title = {{Segment Intersection Searching Problems in General Settings}},
  journal = {Discret. Comput. Geom.},
  year = {2003},
  doi = {10.1007/s00454-003-2924-7},
}
Figure