Computing SEQ-IC-LCS of Labeled Graphs

07/15/2023
by   Yuki Yonemoto, et al.
0

We consider labeled directed graphs where each vertex is labeled with a non-empty string. Such labeled graphs are also known as non-linear texts in the literature. In this paper, we introduce a new problem of comparing two given labeled graphs, called the SEQ-IC-LCS problem on labeled graphs. The goal of SEQ-IC-LCS is to compute the the length of the longest common subsequence (LCS) Z of two target labeled graphs G_1 = (V_1, E_1) and G_2 = (V_2, E_2) that includes some string in the constraint labeled graph G_3 = (V_3, E_3) as its subsequence. Firstly, we consider the case where G_1, G_2 and G_3 are all acyclic, and present algorithms for computing their SEQ-IC-LCS in O(|E_1||E_2||E_3|) time and O(|V_1||V_2||V_3|) space. Secondly, we consider the case where G_1 and G_2 can be cyclic and G_3 is acyclic, and present algorithms for computing their SEQ-IC-LCS in O(|E_1||E_2||E_3| + |V_1||V_2||V_3|log|Σ|) time and O(|V_1||V_2||V_3|) space, where Σ is the alphabet.

READ FULL TEXT

page 1

page 2

page 3

page 4

research
09/11/2021

The Labeled Direct Product Optimally Solves String Problems on Graphs

Suffix trees are an important data structure at the core of optimal solu...
research
02/10/2019

On the Complexity of Exact Pattern Matching in Graphs: Determinism and Zig-Zag Matching

Exact pattern matching in labeled graphs is the problem of searching pat...
research
08/22/2014

Designing labeled graph classifiers by exploiting the Rényi entropy of the dissimilarity representation

Representing patterns as labeled graphs is becoming increasingly common ...
research
12/15/2022

Parameterized Algorithms for String Matching to DAGs: Funnels and Beyond

The problem of String Matching to Labeled Graphs (SMLG) asks to find all...
research
12/07/2022

Combinatorial generation via permutation languages. V. Acyclic orientations

In 1993, Savage, Squire, and West described an inductive construction fo...
research
11/05/2021

On Homomorphism Graphs

We introduce a new type of examples of bounded degree acyclic Borel grap...
research
05/13/2022

Asymptotics for connected graphs and irreducible tournaments

We compute the whole asymptotic expansion of the probability that a larg...

Please sign up or login with your details

Forgot password? Click here to reset