计算带标号图的 SEQ-IC-LCS
Computing SEQ-IC-LCS of Labeled Graphs
AI总结:
本文定义带标号图上的 SEQ-IC-LCS 问题,并分别针对三图无环、两目标图可有环而约束图无环的情形给出动态规划算法及时间空间复杂度。
摘要:
我们考虑带标号的有向图,其中每个顶点都用一个非空字符串标号。这类带标号图在文献中也称为非线性文本。本文提出一个比较两个给定带标号图的新问题,称为带标号图上的 SEQ-IC-LCS 问题。SEQ-IC-LCS 的目标是计算两个目标带标号图 G_1=(V_1,E_1) 和 G_2=(V_2,E_2) 的最长公共子序列(LCS)Z 的长度,并且 Z 要将约束带标号图 G_3=(V_3,E_3) 中的某个字符串包含为其子序列。首先,我们考虑 G_1、G_2 和 G_3 均为无环的情形,并给出以 O(|E_1||E_2||E_3|) 时间和 O(|V_1||V_2||V_3|) 空间计算其 SEQ-IC-LCS 的算法。其次,我们考虑 G_1 和 G_2 可以有环而 G_3 无环的情形,并给出以 O(|E_1||E_2||E_3|+|V_1||V_2||V_3| log|Σ|) 时间和 O(|V_1||V_2||V_3|) 空间计算其 SEQ-IC-LCS 的算法,其中 Σ 为字母表。
英文摘要:
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.
机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。