Skip to main content

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

  • Conference paper
  • First Online:
  • 689 Accesses

Part of the book series: Lecture Notes in Computer Science ((LNTCS,volume 11147))

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

Chapter
USD   29.95
Price excludes VAT (USA)
  • Available as PDF
  • Read on any device
  • Instant download
  • Own it forever
eBook
USD   39.99
Price excludes VAT (USA)
  • Available as EPUB and PDF
  • Read on any device
  • Instant download
  • Own it forever
Softcover Book
USD   54.99
Price excludes VAT (USA)
  • Compact, lightweight edition
  • Dispatched in 3 to 5 business days
  • Free shipping worldwide - see info

Tax calculation will be finalised at checkout

Purchases are for personal use only

Learn about institutional subscriptions

Notes

  1. 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

  1. 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

    Chapter  Google Scholar 

  2. Aslam, J.A., Rivest, R.L.: Inferring graphs from walks. In: Computational Learning Theory, pp. 359–370 (1990)

    Google Scholar 

  3. 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)

    Article  Google Scholar 

  4. 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

    Chapter  MATH  Google Scholar 

  5. Maruyama, O., Miyano, S.: Inferring a tree from walks. Theor. Comput. Sci. 161(1), 289–300 (1996)

    Article  MathSciNet  Google Scholar 

  6. Raghavan, V.: Bounded degree graph inference from walks. J. Comput. Syst. Sci. 49(1), 108–132 (1994)

    Article  MathSciNet  Google Scholar 

Download references

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

Authors

Corresponding author

Correspondence to Ryo Yoshinaka .

Editor information

Editors and Affiliations

Rights and permissions

Reprints and permissions

Copyright information

© 2018 Springer Nature Switzerland AG

About this paper

Check for updates. Verify currency and authenticity via CrossMark

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)

Publish with us

Policies and ethics