English

Finding Diameter-Reducing Shortcuts in Trees

Data Structures and Algorithms 2023-05-30 v1

Abstract

In the \emph{kk-Diameter-Optimally Augmenting Tree Problem} we are given a tree TT of nn 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 uu and vv of TT, can answer queries reporting the cost of the edge (u,v)(u,v) in constant time. We want to augment TT with kk shortcuts in order to minimize the diameter of the resulting graph. For k=1k=1, O(nlogn)O(n \log n) time algorithms are known both for paths [Wang, CG 2018] and trees [Bil\`o, TCS 2022]. In this paper we investigate the case of multiple shortcuts. We show that no algorithm that performs o(n2)o(n^2) queries can provide a better than 10/910/9-approximate solution for trees for k3k\geq 3. For any constant ε>0\varepsilon > 0, we instead design a linear-time (1+ε)(1+\varepsilon)-approximation algorithm for paths and k=o(logn)k = o(\sqrt{\log n}), thus establishing a dichotomy between paths and trees for k3k\geq 3. 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 44-approximation algorithm for trees, and to compute the diameter of graphs with n+k1n + k - 1 edges in time O(nklogn)O(n k \log n) even for non-metric graphs. Our data structure and the latter result are of independent interest.

Keywords

Cite

@article{arxiv.2305.17385,
  title  = {Finding Diameter-Reducing Shortcuts in Trees},
  author = {Davide Bilò and Luciano Gualà and Stefano Leucci and Luca Pepè Sciarria},
  journal= {arXiv preprint arXiv:2305.17385},
  year   = {2023}
}

Comments

22 pages, 6 figures, WADS 2023

R2 v1 2026-06-28T10:48:13.082Z