Abstract
$\newcommand{\OO}[1]{O\left(#1\right)}\newcommand{\eps}{\varepsilon}$We present the first near-linear-time algorithm that computes a $(1+\eps)$-approximation of the diameter of a weighted unit-disk graph of $n$ vertices. Our algorithm requires $\OO{n \log^2 n}$ time for any constant $\eps>0$, so we considerably improve upon the near-$\OO{n^{3/2}}$-time algorithm of Gao and Zhang (2005). Using similar ideas we develop $(1+\eps)$-approximate \emph{distance oracles} of $\OO{1}$ query time with a likewise improvement in the preprocessing time, specifically from near $\OO{n^{3/2}}$ to $\OO{n \log^3 n}$. We also obtain similar new results for a number of related problems in the weighted unit-disk graph metric such as the radius and the bichromatic closest pair. As a further application we employ our distance oracle, along with additional ideas, to solve the $(1+\eps)$-approximate \emph{all-pairs bounded-leg shortest paths\/} (apBLSP) problem for a set of $n$ planar points. Our data structure requires $\OO{n^2 \log n}$ space, $\OO{\log{\log n}}$ query time, and nearly $\OO{n^{2.579}}$ preprocessing time for any constant $\eps>0$, and is the first that breaks the near-cubic preprocessing time bound given by Roditty and Segal (2011).
Talk to us
Join us for a 30 min session where you can share your feedback and ask us any queries you have
Disclaimer: All third-party content on this website/platform is and will remain the property of their respective owners and is provided on "as is" basis without any warranties, express or implied. Use of third-party content does not indicate any affiliation, sponsorship with or endorsement by them. Any references to third-party content is to identify the corresponding services and shall be considered fair use under The CopyrightLaw.