Introduction
Finding the Euclidean shortest path between two points in a 2D plane populated by $h$ disjoint polygonal obstacles with a total of $n$ vertices is a fundamental problem in computational geometry. Its applications are widespread, spanning robotics, motion planning, and geographic information systems (GIS). For over two decades, the $O(n \log n)$ algorithm by Hershberger and Suri (1999) stood as the state-of-the-art. However, a theoretical gap remained: the lower bound for this problem is $\Omega(n + h \log h)$. This paper introduces a time-optimal algorithm that achieves this bound while maintaining $O(n)$ space complexity.
The Continuous Dijkstra Framework
The algorithm is built upon the Continuous Dijkstra paradigm. This approach simulates a wavefront expanding from a source point $s$ at a constant speed. The wavefront consists of circular arcs centered at previously reached obstacle vertices. As the wavefront propagates, it encounters obstacles and other parts of itself, forming bisectors—curves where paths from different directions meet with equal length.
Key Innovations
To break the $O(n \log n)$ barrier, the paper introduces several structural and algorithmic refinements:
1. Conforming Subdivision and Elementary Chains
Traditional methods often rely on subdivisions of the free space into $O(n)$ cells. This algorithm constructs a coarser subdivision $S'$ containing only $O(h)$ cells. Although the boundaries of these cells are more complex—consisting of "elementary chains" of obstacle edges—they are sufficient to guide the wavefront efficiently. By processing these chains as single entities rather than individual vertices, the computational cost becomes more sensitive to the number of obstacles $h$ rather than the total vertex count $n$.
2. Efficient Bisector Management and Space Resetting
Handling the geometry of bisectors is computationally expensive. The author employs a "tentative prune-and-search" technique to locate intersections between bisectors and cell boundaries in $O(\log n)$ time. To maintain a linear $O(n)$ space footprint, the algorithm periodically "resets" its data structures, discarding historical persistent tree information that is no longer required for the wavefront's forward progress.
3. Corridor and Ocean Structure
For non-convex obstacles, the free space is partitioned into an "ocean" (the main connected component), "bays," and "canals." The algorithm first solves the shortest path problem within the ocean—which is bounded by $O(h)$ convex chains—and then propagates these results into the more constrained bays and canals.
Results and Complexity
The primary contribution is the achievement of optimal time complexity: $O(n + h \log h)$. This matches the theoretical lower bound, as sorting $h$ obstacles requires $O(h \log h)$ and inspecting $n$ vertices requires $O(n)$. Furthermore, the algorithm operates in $O(n)$ space, improving upon the $O(n \log n)$ space requirement of previous optimal-time candidates. Once the Shortest Path Map (SPM) is constructed, the shortest distance to any query point $t$ can be determined in $O(\log n)$ time.
Limitations and Future Outlook
While the algorithm is theoretically optimal, it assumes a triangulation of the free space is provided. Currently, triangulating a plane with holes takes $O(n \log n)$ or $O(n + h \log^{1+\epsilon} h)$ time. Achieving a $O(n + h \log h)$ triangulation remains a key open challenge. Additionally, the techniques presented are specific to 2D static environments; extending these results to 3D or dynamic obstacles involves significantly higher complexity.
Summary updated