Subsequence Matching and LCS under Cartesian-Tree Equivalence
Taketo Tsujimoto, Yuki Yonemoto, Hiroki Shibata, Takuya Mieno, Yuto Nakashima, Shunsuke Inenaga

TL;DR
This paper advances the understanding of subsequence matching and LCS problems under Cartesian-tree equivalence, providing new algorithms and lower bounds for different alphabet sizes, highlighting the computational complexity landscape.
Contribution
It introduces faster algorithms for CT-matching on binary alphabets and generalizes LCS under CT-matching with new bounds and complexity results.
Findings
O(nm) time algorithm for binary CT-MSeq
Conditional lower bound of O((nm)^{1- ext{epsilon}}) for size 4 alphabets
O(n^2 / log n) time algorithm for binary CT-LCS
Abstract
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 time, where and are text and pattern lengths, respectively. This current article follows this line of research, and gives the following new results: (1) An -time CT-MSeq algorithm for binary alphabets; (2) An -time conditional lower bound for the CT-MSeq problem on alphabets of size 4, for any constant , under the Orthogonal Vector Hypothesis (OVH). Further, we introduce the new problem of longest common subsequence under CT-matching (CT-LCS) for two given…
Peer Reviews
No public reviews on file for this paper yet. If you reviewed it on a platform where reviews are public (OpenReview, ICLR, NeurIPS, ICML), you can paste yours below so the community can read it here.
Videos
No videos yet. Explain this paper in a talk, walkthrough, or lecture? Add one.
Taxonomy
TopicsAlgorithms and Data Compression · Data Management and Algorithms · Web Data Mining and Analysis
