Next Article in Journal
Strategic Fleet Planning Under Carbon Tax and Fuel Price Uncertainty: An Integrated Stochastic Model for Fleet Deployment and Speed Optimization
Previous Article in Journal
Optimal Quantization on Spherical Surfaces: Continuous and Discrete Models—A Beginner-Friendly Expository Study
Previous Article in Special Issue
Black-Box Bug Amplification for Multithreaded Software
 
 
Font Type:
Arial Georgia Verdana
Font Size:
Aa Aa Aa
Line Spacing:
Column Width:
Background:
This is an early access version, the complete PDF, HTML, and XML versions will be available soon.
Article

3-Partition Order-Preserving Pattern Matching

1
Department of Computer Science and Engineering, Sejong University, Seoul 05006, Republic of Korea
2
Department of Electrical and Computer Engineering, Inha University, Incheon 22212, Republic of Korea
*
Author to whom correspondence should be addressed.
These authors contributed equally to this work.
Mathematics 2026, 14(1), 65; https://doi.org/10.3390/math14010065
Submission received: 20 November 2025 / Revised: 19 December 2025 / Accepted: 22 December 2025 / Published: 24 December 2025

Abstract

Two strings of equal length are called order-isomorphic if their relative orders are identical at every position. The classical order-preserving pattern matching (OPPM) problem finds all substrings in a text T that are order-isomorphic to a pattern P. However, measurement errors can cause data loss or inaccuracies, making exact pattern detection difficult and motivating the active study of approximate OPPM variants, such as 2-partition OPPM. In this paper, we extend the existing partition-based relaxation of order-isomorphism and define the 3-partition OPPM problem. The 3-partition OPPM problem is to find all substrings in a text T that can be divided into three segments such that each partitioned segment is order-isomorphic to the corresponding segment of a pattern P. We propose an efficient algorithm to solve the problem in O(nm+m2logm) time, where n=|T| and m=|P|. We conduct experiments on various time series datasets, comparing the number of occurrences and the runtime efficiency among the OPPM, 2-partition OPPM, and proposed 3-partition OPPM algorithms. Our experimental evaluation shows that the proposed algorithm becomes increasingly cost-effective for longer patterns.
Keywords: order-preserving pattern matching; approximate order-preserving pattern matching; order-preserving pattern matching with partition; string algorithms order-preserving pattern matching; approximate order-preserving pattern matching; order-preserving pattern matching with partition; string algorithms

Share and Cite

MDPI and ACS Style

Na, J.C.; Kang, S.; Sim, J.S. 3-Partition Order-Preserving Pattern Matching. Mathematics 2026, 14, 65. https://doi.org/10.3390/math14010065

AMA Style

Na JC, Kang S, Sim JS. 3-Partition Order-Preserving Pattern Matching. Mathematics. 2026; 14(1):65. https://doi.org/10.3390/math14010065

Chicago/Turabian Style

Na, Joong Chae, Seokchul Kang, and Jeong Seop Sim. 2026. "3-Partition Order-Preserving Pattern Matching" Mathematics 14, no. 1: 65. https://doi.org/10.3390/math14010065

APA Style

Na, J. C., Kang, S., & Sim, J. S. (2026). 3-Partition Order-Preserving Pattern Matching. Mathematics, 14(1), 65. https://doi.org/10.3390/math14010065

Note that from the first issue of 2016, this journal uses article numbers instead of page numbers. See further details here.

Article Metrics

Back to TopTop