arXivDaily arXiv每日学术速递 周一至周五更新
arXiv 2402.19146cs.DS
收藏

子序列匹配与Cartesian树等价下的LCS

Subsequence Matching and LCS under Cartesian-Tree Equivalence

Kyushu University(九州大学);Joint Graduate School of Mathematics for Innovation, Kyushu University(九州大学数学创新联合研究生院);University of Electro-Communications(电气通信大学)

Taketo Tsujimoto, Yuki Yonemoto, Hiroki Shibata, Takuya Mieno, Yuto Nakashima, Shunsuke Inenaga

AI总结:

本文提出Cartesian树匹配下的子序列匹配与最长公共子序列问题,针对不同字母表提出高效算法及时间下限。

摘要:

两个长度相同的字符串被称为Cartesian树匹配(CT匹配)如果它们的Cartesian树是同构的[Park等,TCS 2020]。Cartesian树匹配是一种自然的模型,可以捕捉数值序列的相似性。Oizumi等人[CPM 2022]证明,在CT匹配模型下,子序列模式匹配(CT-MSeq)可以在O(nm log log n)时间内解决,其中n和m分别是文本和模式的长度。本文沿着这一研究方向,给出了以下新结果:(1)一种针对二元字母表的O(nm)时间CT-MSeq算法;(2)在字母表大小为4的情况下,CT-MSeq问题在任何常数ε>0下,基于正交向量假设(OVH)的O((nm)^{1-ε})时间的条件下限。进一步,我们引入了两个给定字符串S和T长度为n的Cartesian树匹配下的最长公共子序列(CT-LCS)新问题,并给出了以下结果:(3)针对一般有序字母表的O(n^6)时间CT-LCS算法;(4)针对二元字母表的O(n² / log n)时间CT-LCS算法;(5)在字母表大小为5的情况下,CT-LCS问题在任何常数ε>0下,基于OVH的O(n^{2-ε})时间的条件下限。

英文摘要:

Two strings of the same length are said to Cartesian-tree match (CT-match) if their Cartesian-trees are isomorphic [Park et al., TCS 2020]. Cartesian-tree matching is a natural model that allows for capturing similarities of numerical sequences. Oizumi et al. [CPM 2022] showed that subsequence pattern matching under CT-matching model (CT-MSeq) can be solved in $O(nm \log \log n)$ time, where $n$ and $m$ are text and pattern lengths, respectively. This current article follows this line of research, and gives the following new results: (1) An $O(nm)$-time CT-MSeq algorithm for binary alphabets; (2) An $O((nm)^{1-ε})$-time conditional lower bound for the CT-MSeq problem on alphabets of size 4, for any constant $ε> 0$, under the Orthogonal Vector Hypothesis (OVH). Further, we introduce the new problem of longest common subsequence under CT-matching (CT-LCS) for two given strings $S$ and $T$ of length $n$, and present the following results: (3) An $O(n^6)$-time CT-LCS algorithm for general ordered alphabets; (4) An $O(n^2 / \log n)$-time CT-LCS algorithm for binary alphabets; (5) An $O(n^{2-ε})$-time conditional lower bound for the CT-LCS problem on alphabets of size 5, for any constant $ε> 0$, under OVH.

机构、总结、中文摘要均由AI分析而来,可能存在错误,请以论文正文为准。

↑