计算机科学 > 数据结构与算法
[提交于 2020年11月19日]
标题:Algorithms for Diameters of Unicycle Graphs and Diameter-Optimally Augmenting Trees
查看原文 PDF 中文 PDF (下批处理) EasyResearch 阅读摘要:We consider the problem of computing the diameter of a unicycle graph (i.e., a graph with a unique cycle). We present an O(n) time algorithm for the problem, where n is the number of vertices of the graph. This improves the previous best O(n \log n) time solution [Oh and Ahn, ISAAC 2016]. Using this algorithm as a subroutine, we solve the problem of adding a shortcut to a tree so that the diameter of the new graph (which is a unicycle graph) is minimized; our algorithm takes O(n^2 \log n) time and O(n) space. The previous best algorithms solve the problem in O(n^2 \log^3 n) time and O(n) space [Oh and Ahn, ISAAC 2016], or in O(n^2) time and O(n^2) space [Bil\`o, ISAAC 2018].
提交历史
来自:Yiming Zhao[v1] 2020年11月19日 星期四 00:07:43 UTC