An Improved Algorithm for Shortest Paths in Weighted Unit-Disk Graphs

Bruce W. Brewer, Haitao WangCCCG 2024 · DOI

Abstract

This paper addresses the Single Source Shortest Path (SSSP) problem within weighted unit-disk graphs (UDGs). While the unweighted variant of this problem has long been solved with optimal efficiency, the weighted version—where edge costs correspond to Euclidean distances—has remained a challenge due to the potential for $O(n^2)$ edges. Building upon the grid-based Dijkstra framework, we introduce a refined approach to the "Insertion-Only Additively-Weighted Nearest Neighbor with a Separating Line" (IOAWNN-SL) subproblem. By developing a linear-time merging technique for additively weighted Voronoi diagrams separated by a line, we achieve a runtime of $O(n \log^2 n / \log \log n)$ in the real RAM model and $O(n \log n)$ in the algebraic decision tree model, matching the theoretical lower bound for comparison-based algorithms.

Introduction

In computational geometry, a unit-disk graph (UDG) is defined by a set of $n$ points in a 2D plane where an edge exists between two points if their Euclidean distance is at most 1. In a weighted UDG, each edge is assigned a weight equal to that distance. Finding the shortest path from a source point $s$ to all other points (SSSP) is a fundamental problem with applications in sensor networks and motion planning.

The primary difficulty in solving SSSP for UDGs efficiently is the density of the graph; a UDG can contain up to $O(n^2)$ edges, making standard Dijkstra's algorithm $O(n^2 + n \log n)$ in the worst case. To achieve sub-quadratic time, algorithms must exploit the underlying geometric structure. The previous best-known result, established by Wang and Xue (2019), achieved a runtime of $O(n \log^2 n)$. This work improves upon that result by optimizing the core geometric subproblems.

The IOAWNN-SL Bottleneck

The framework proposed by Wang and Xue utilizes a grid-based decomposition to manage Dijkstra’s algorithm. The efficiency of this framework is dictated by the speed at which one can solve the Insertion-Only Additively-Weighted Nearest Neighbor with a Separating Line (IOAWNN-SL) problem. In this scenario, points are inserted into a data structure, and queries are made to find the nearest neighbor under an additive weight (the Euclidean distance plus a point-specific weight).

A critical constraint in this subproblem is that all inserted points (sites) lie on one side of a line (e.g., the x-axis), while all query points lie on the opposite side. This geometric separation is the key to the algorithmic improvements presented in this research.

Methodology: Linear-Time Merging and Spoke Subdivision

The authors' primary technical contribution is an $O(n)$ time algorithm for merging two additively weighted Voronoi diagrams, provided the point sets are separated by a line. This is a significant departure from standard Voronoi diagrams. In the unweighted case, the Euclidean Minimum Spanning Tree (EMST) is a subgraph of the Delaunay triangulation, a property that facilitates linear-time merging. However, this property does not hold for additively weighted Voronoi diagrams.

To overcome this, the authors adapted Kirkpatrick’s classic merging algorithm with several key modifications:

  1. Recursive Structure: The algorithm employs a recursive data structure to maintain segments of the weighted Voronoi diagrams.
  2. Spoke Subdivision: To ensure efficient tracing of the "contour"—the boundary between the two merging diagrams—the authors subdivide Voronoi regions into simpler sub-regions using "spokes." This subdivision ensures that each step of the contour-tracing process can be performed in constant time.
  3. Point Location Optimization: By utilizing recent advancements in algebraic decision tree models (specifically techniques by Chan and Zheng), the authors optimize point location queries within the diagrams.

Results and Complexity

The proposed refinements lead to two major complexity results:

  • Real RAM Model: The algorithm achieves a runtime of $O(n \log^2 n / \log \log n)$. This represents a $1/\log \log n$ speedup over the previous state-of-the-art, a significant theoretical advancement in the efficiency of weighted UDG shortest path calculations.
  • Algebraic Decision Tree Model: When measuring complexity by the number of comparisons, the algorithm reaches $O(n \log n)$. This matches the known lower bound for the problem, proving that the algorithm is theoretically optimal in this model.

The algorithm maintains linear space complexity, $O(n)$, making it memory-efficient even for large point sets.

Conclusion

This work successfully bridges the gap between the known lower bounds and the best-known algorithms for the weighted SSSP problem in unit-disk graphs. By exploiting the geometric properties of the separating line in the IOAWNN-SL subproblem, the authors have provided a more efficient path to calculating shortest paths in geometric graphs.

A significant open question remains: can additively weighted Voronoi diagrams be merged in linear time without the assumption of a separating line? Additionally, while the theoretical speedup is clear, the complexity of the spoke subdivision and recursive merging may introduce high constant factors. Future research could focus on simplifying these structures to improve practical performance on real-world datasets.

Summary updated

BibTeX
@inproceedings{brewer2024improved,
  author = {Bruce W. Brewer and Haitao Wang},
  title = {{An Improved Algorithm for Shortest Paths in Weighted Unit-Disk Graphs}},
  booktitle = {CCCG},
  year = {2024},
  doi = {10.48550/arxiv.2407.03176},
}
Figure