English

Computing SEQ-IC-LCS of Labeled Graphs

Data Structures and Algorithms 2023-07-18 v1

Abstract

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) ZZ of two target labeled graphs G1=(V1,E1)G_1 = (V_1, E_1) and G2=(V2,E2)G_2 = (V_2, E_2) that includes some string in the constraint labeled graph G3=(V3,E3)G_3 = (V_3, E_3) as its subsequence. Firstly, we consider the case where G1G_1, G2G_2 and G3G_3 are all acyclic, and present algorithms for computing their SEQ-IC-LCS in O(E1E2E3)O(|E_1||E_2||E_3|) time and O(V1V2V3)O(|V_1||V_2||V_3|) space. Secondly, we consider the case where G1G_1 and G2G_2 can be cyclic and G3G_3 is acyclic, and present algorithms for computing their SEQ-IC-LCS in O(E1E2E3+V1V2V3logΣ)O(|E_1||E_2||E_3| + |V_1||V_2||V_3|\log|\Sigma|) time and O(V1V2V3)O(|V_1||V_2||V_3|) space, where Σ\Sigma is the alphabet.

Keywords

Cite

@article{arxiv.2307.07676,
  title  = {Computing SEQ-IC-LCS of Labeled Graphs},
  author = {Yuki Yonemoto and Yuto Nakashima and Shunsuke Inenaga},
  journal= {arXiv preprint arXiv:2307.07676},
  year   = {2023}
}

Comments

Accepted for PSC 2023

R2 v1 2026-06-28T11:31:01.609Z