Improved Algorithms for Distance Selection and Related Problems

Haitao Wang, Yiming Zhao

TL;DR

This paper introduces novel algorithmic techniques to efficiently solve geometric optimization problems involving interpoint distances. The authors present a new deterministic algorithm for the distance selection problem that improves upon previous state-of-the-art by a logarithmic factor, and generalize their approach to tackle other complex problems like discrete Fréchet distance and reverse shortest paths in unit-disk graphs.

What Problem Does This Paper Address?

The paper tackles a class of geometric optimization problems where the optimal solution is determined by the distance between pairs of points in a given set. A central problem is the distance selection problem: given a set of $n$ points in a plane, find the $k$-th smallest distance among all possible pairs of points. While simple brute-force takes $O(n^2)$ time, achieving significantly better performance, especially for deterministic algorithms, has been a long-standing challenge. Previous deterministic algorithms for distance selection had a time complexity of $O(n^{4/3} \log^2 n)$. The authors also address related problems like the discrete Fréchet distance with shortcuts and reverse shortest paths in unit-disk graphs, which also rely on efficiently handling interpoint distances.

Methods

The core of the paper's contribution lies in a new technique for solving a partial batched range searching (BRS) problem. This technique allows for the construction of edge-disjoint complete bipartite graphs that capture pairs of points whose distances fall within a specified range, with a controlled number of "uncertain" pairs. This partial BRS algorithm is then used as a building block for a new deterministic algorithm for the distance selection problem, achieving a time complexity of $O(n^{4/3} \log n)$.

The authors also develop a general algorithmic framework, both deterministic and randomized, that leverages their BRS solution. This framework can be applied to a variety of geometric optimization problems. For instance, they adapt their techniques to improve algorithms for:

  • Two-sided discrete Fréchet distance with shortcuts: Improving upon previous work by a factor of roughly $\log^2(m+n)$.
  • One-sided discrete Fréchet distance with shortcuts: Achieving a time complexity of $O((m+n)^{6/5} \log^{7/5}(m+n))$.
  • Reverse shortest paths in unit-disk graphs: Leading to new randomized algorithms with improved time complexities.

Datasets

Not discussed in the paper. The problems addressed are theoretical and rely on geometric point sets as input, rather than specific datasets.

Key Insights and Ideas

  • Partial Batched Range Searching (BRS) as a Core Primitive: The paper demonstrates that a carefully designed "partial" BRS algorithm, which allows for a small number of unresolved pairs, can be more efficient than a "complete" BRS and still be sufficient for solving complex geometric problems.
  • Logarithmic Factor Improvements: The authors consistently achieve improvements over prior work by at least a logarithmic factor, highlighting the power of their new techniques.
  • General Algorithmic Framework: The development of a unified framework for solving various distance-based geometric optimization problems is a significant contribution, suggesting broader applicability of their methods.
  • Bridging Deterministic and Randomized Approaches: The paper presents both deterministic and randomized frameworks, offering flexibility depending on the specific problem constraints and desired performance guarantees.

Key Results

  • Distance Selection: A new deterministic algorithm for the distance selection problem with a time complexity of $O(n^{4/3} \log n)$, improving upon the previous $O(n^{4/3} \log^2 n)$.
  • Two-sided DFD: Improved runtime to $O((m^{2/3}n^{2/3} \cdot 2^{O(\log^*(m+n))} + m\log n + n\log m) \log(m+n))$.
  • One-sided DFD: Improved runtime to $O((m+n)^{6/5} \log^{7/5}(m+n))$.
  • Reverse Shortest Paths (Unit-Disk Graphs): New randomized algorithms achieving $O(n^{6/5} \log^{8/5} n)$ for the unweighted case and $O(n^{6/5} \log^{11/5} n)$ for the weighted case.
  • General Framework: A general framework for optimization problems involving interpoint distances, with a runtime of $O((m^{2/3}n^{2/3} + m\log n + n\log m + T_D) \cdot \log(m+n))$, where $T_D$ is the time for the decision problem.

Limitations and Future Work

  • Subpolynomial Factor: While the paper achieves significant improvements, the authors note that it's unclear if Chan and Zheng's techniques could further reduce the $2^{O(\log^*(m+n))}$ factor in their complete BRS algorithm.
  • Randomized vs. Deterministic: The paper presents both deterministic and randomized algorithms. While the deterministic improvements are notable, the randomized algorithms often offer better asymptotic performance, and further exploration in this direction is suggested.
  • Broader Applications: The authors believe their techniques are quite general and will find many other applications in future work, hinting at potential for further research in related geometric optimization problems.

Summary updated

BibTeX
@inproceedings{wang2023improved,
  author = {Haitao Wang and Yiming Zhao},
  title = {{Improved Algorithms for Distance Selection and Related Problems}},
  booktitle = {Algorithmica},
  year = {2023},
}
Figure