Approximate Cartesian Tree Matching with Substitutions
Panagiotis Charalampopoulos, Jonas Ellert, Manal Mohamed

TL;DR
This paper introduces an efficient algorithm for approximate Cartesian tree matching that tolerates substitutions, improving over previous methods and expanding the applicability of Cartesian tree analysis in time series and pattern matching.
Contribution
The authors develop a novel algorithm for approximate Cartesian tree matching using Hamming distance, with improved time complexity for certain parameter regimes.
Findings
Algorithm runs in O(n√m·k^{2.5}) for small k
Algorithm runs in O(nk^5) for larger k
Introduces new periodicity notions in Cartesian trees
Abstract
The Cartesian tree of a sequence captures the relative order of the sequence's elements. In recent years, Cartesian tree matching has attracted considerable attention, particularly due to its applications in time series analysis. Consider a text of length and a pattern of length . In the exact Cartesian tree matching problem, the task is to find all length- fragments of whose Cartesian tree coincides with the Cartesian tree of the pattern. Although the exact version of the problem can be solved in linear time [Park et al., TCS 2020], it remains rather restrictive; for example, it is not robust to outliers in the pattern. To overcome this limitation, we consider the approximate setting, where the goal is to identify all fragments of that are close to some string whose Cartesian tree matches . In this work, we quantify closeness via the widely…
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
TopicsTime Series Analysis and Forecasting · Algorithms and Data Compression · Data Quality and Management
