Finding Diameter-Reducing Shortcuts in Trees
arXiv:2305.17385
Abstract
In the \emph{-Diameter-Optimally Augmenting Tree Problem} we are given a tree of vertices as input. The tree is embedded in an unknown \emph{metric} space and we have unlimited access to an oracle that, given two distinct vertices and of , can answer queries reporting the cost of the edge in constant time. We want to augment with shortcuts in order to minimize the diameter of the resulting graph. For , time algorithms are known both for paths [Wang, CG 2018] and trees [Bilò, TCS 2022]. In this paper we investigate the case of multiple shortcuts. We show that no algorithm that performs queries can provide a better than -approximate solution for trees for . For any constant , we instead design a linear-time -approximation algorithm for paths and , thus establishing a dichotomy between paths and trees for . We achieve the claimed running time by designing an ad-hoc data structure, which also serves as a key component to provide a linear-time -approximation algorithm for trees, and to compute the diameter of graphs with edges in time even for non-metric graphs. Our data structure and the latter result are of independent interest.
22 pages, 6 figures, WADS 2023