conference

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

Shintaro Narisada, Diptarama Hendrian, Ryo Yoshinaka, Ayumi Shinohara

The 25th International Symposium on String Processing and Information Retrieval (SPIRE2018), LNCS Vol.11147, pp.311-324 (2018), [peer-reviewed]
Event Date: October 9-11, 2018 @ Lima, Peru

  • Lima, Peru

Abstract / 概要

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.