English

Almost optimal algorithms for diameter-optimally augmenting trees

Data Structures and Algorithms 2018-10-03 v2

Abstract

We consider the problem of augmenting an nn-vertex tree with one shortcut in order to minimize the diameter of the resulting graph. The tree is embedded in an unknown space and we have access to an oracle that, when queried on a pair of vertices uu and vv, reports the weight of the shortcut (u,v)(u,v) in constant time. Previously, the problem was solved in O(n2log3n)O(n^2 \log^3 n) time for general weights [Oh and Ahn, ISAAC 2016], in O(n2logn)O(n^2 \log n) time for trees embedded in a metric space [Gro{\ss}e et al., {\tt arXiv:1607.05547}], and in O(nlogn)O(n \log n) time for paths embedded in a metric space [Wang, WADS 2017]. Furthermore, a (1+ε)(1+\varepsilon)-approximation algorithm running in O(n+1/ε3)O(n+1/\varepsilon^{3}) has been designed for paths embedded in Rd\mathbb{R}^d, for constant values of dd [Gro{\ss}e et al., ICALP 2015]. The contribution of this paper is twofold: we address the problem for trees (not only paths) and we also improve upon all known results. More precisely, we design a {\em time-optimal} O(n2)O(n^2) time algorithm for general weights. Moreover, for trees embedded in a metric space, we design (i) an exact O(nlogn)O(n \log n) time algorithm and (ii) a (1+ε)(1+\varepsilon)-approximation algorithm that runs in O(n+ε1logε1)O\big(n+ \varepsilon^{-1}\log \varepsilon^{-1}\big) time.

Keywords

Cite

@article{arxiv.1809.08822,
  title  = {Almost optimal algorithms for diameter-optimally augmenting trees},
  author = {Davide Bilò},
  journal= {arXiv preprint arXiv:1809.08822},
  year   = {2018}
}

Comments

The paper has been accepted at the 29th International Symposium on Algorithms and Computation (ISAAC 2018). 22 pages, 4 figures