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

06/26/2018
by   Shintaro Narisada, et al.
0

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

READ FULL TEXT

page 1

page 2

page 3

page 4

research
03/01/2023

A linear time algorithm for linearizing quadratic and higher-order shortest path problems

An instance of the NP-hard Quadratic Shortest Path Problem (QSPP) is cal...
research
01/30/2019

Computing runs on a trie

A maximal repeat, or run, in a string, is a periodically maximal substri...
research
05/27/2021

Towards Classifying the Polynomial-Time Solvability of Temporal Betweenness Centrality

In static graphs, the betweenness centrality of a graph vertex measures ...
research
01/28/2022

The Complexity of Approximate Pattern Matching on De Bruijn Graphs

Aligning a sequence to a walk in a labeled graph is a problem of fundame...
research
10/29/2020

Around the diameter of AT-free graphs

A graph algorithm is truly subquadratic if it runs in O(m^b) time on con...
research
08/08/2018

A practical Single Source Shortest Path algorithm for random directed graphs with arbitrary weight in expecting linear time

In this paper we present a new algorithm called Raffica algorithm for Si...
research
06/26/2020

Computing all s-t bridges and articulation points simplified

Given a directed graph G and a pair of nodes s and t, an s-t bridge of G...

Please sign up or login with your details

Forgot password? Click here to reset