Linear-Time Online Algorithm Inferring the Shortest Path from a Walk
Shintaro Narisada, Diptarama Hendrian, Ryo Yoshinaka, Ayumi Shinohara

TL;DR
This paper introduces a linear-time online algorithm for inferring edge-labeled graphs from walks, improving upon previous methods that required logarithmic factors, by leveraging palindrome detection techniques.
Contribution
It presents the first linear-time online algorithm for inferring path graphs from walks, utilizing Manacher's algorithm for maximal palindrome computation.
Findings
Algorithm runs in O(n) time for path graphs
Improves upon previous O(n log n) solutions
Uses palindrome detection for graph inference
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 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 time, based on Manacher's algorithm for computing all the maximal palindromes in a string.
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Code & Models
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAlgorithms and Data Compression · Optimization and Search Problems · Complexity and Algorithms in Graphs
