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 \(\mathrm {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 \(\mathrm {O}(n)\) time, based on Manacher’s algorithm for computing all the maximal palindromes in a string.
S. Narisada—Currently affiliated with KDDI Corporation, Tokyo, Japan.
This is a preview of subscription content, log in via an institution.
Buying options
Tax calculation will be finalised at checkout
Purchases are for personal use only
Learn about institutional subscriptionsNotes
- 1.
To avoid lengthy expressions, we casually say that a palindrome centered at c in x becomes or grows to a bigger palindrome in xy when \(\rho _x(c) < \rho _{xy}(c)\), without explicitly mentioning several involved mathematical objects that should be understood from the context or that are not important. Other similar phrases should be understood in an appropriate way.
References
Akutsu, T., Fukagawa, D.: Inferring a graph from path frequency. In: Apostolico, A., Crochemore, M., Park, K. (eds.) CPM 2005. LNCS, vol. 3537, pp. 371–382. Springer, Heidelberg (2005). https://doi.org/10.1007/11496656_32
Aslam, J.A., Rivest, R.L.: Inferring graphs from walks. In: Computational Learning Theory, pp. 359–370 (1990)
Manacher, G.K.: A new linear-time on-line algorithm for finding the smallest initial palindrome of a string. J. ACM 22(3), 346–351 (1975)
Maruyama, O., Miyano, S.: Graph inference from a walk for trees of bounded degree 3 is NP-complete. In: Wiedermann, J., Hájek, P. (eds.) MFCS 1995. LNCS, vol. 969, pp. 257–266. Springer, Heidelberg (1995). https://doi.org/10.1007/3-540-60246-1_132
Maruyama, O., Miyano, S.: Inferring a tree from walks. Theor. Comput. Sci. 161(1), 289–300 (1996)
Raghavan, V.: Bounded degree graph inference from walks. J. Comput. Syst. Sci. 49(1), 108–132 (1994)
Acknowledgments
The research is supported by JSPS KAKENHI Grant Numbers JP15H05706, JP26330013 and JP18K11150, and ImPACT Program of Council for Science, Technology and Innovation (Cabinet Office, Government of Japan).
Author information
Authors and Affiliations
Corresponding author
Editor information
Editors and Affiliations
Rights and permissions
Copyright information
© 2018 Springer Nature Switzerland AG
About this paper
Cite this paper
Narisada, S., Hendrian, D., Yoshinaka, R., Shinohara, A. (2018). Linear-Time Online Algorithm Inferring the Shortest Path from a Walk. In: Gagie, T., Moffat, A., Navarro, G., Cuadros-Vargas, E. (eds) String Processing and Information Retrieval. SPIRE 2018. Lecture Notes in Computer Science(), vol 11147. Springer, Cham. https://doi.org/10.1007/978-3-030-00479-8_25
Download citation
DOI: https://doi.org/10.1007/978-3-030-00479-8_25
Published:
Publisher Name: Springer, Cham
Print ISBN: 978-3-030-00478-1
Online ISBN: 978-3-030-00479-8
eBook Packages: Computer ScienceComputer Science (R0)