arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 1806.09806cs.DS
收藏

基于线性时间的最短路径在线算法

Linear-Time Online Algorithm Inferring the Shortest Path from a Walk

Shintaro Narisada, Diptarama Hendrian, Ryo Yoshinaka, Ayumi Shinohara

摘要:

我们考虑的问题,推断边标记图的边标签序列中看到的一个图的行走。已经知道,当目标是路径或循环图时,该问题在$O(n \log n)$时间内是可解的。本文基于Manacher的计算字符串中所有最大回文数的算法,提出了一个在$O(n)$时间内运行的在线算法。

英文摘要:

We consider the problem of inferring an edge-labeled graph from the sequence of edge labels seen in a walk of that graph. It has been known that this problem is solvable in $O(n \log n)$ time when the targets are path or cycle graphs. This paper presents an online algorithm for the problem of this restricted case that runs in $O(n)$ time, based on Manacher's algorithm for computing all the maximal palindromes in a string.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑