Monotonic run length text sampling and fake sampled positions
Abstract Text-sampling is an efficient approach for string matching problems introduced in order to overcome the prohibitive space requirements of indexed matching, on the one hand, and drastically reduce searching time for the online solutions, on the other hand. Known solutions to sampled string matching are very efficient in practical cases being able to improve standard online string matching algorithms up to $99.6$% using in the best cases $<1$% of the original text size when applied to natural languages combined with the condensed alphabet. In this paper we present our results obtained in an attempt to extend sampled-string matching to the general case of nonclassical string matching. Specifically, we introduce a new sampling approach that turns out to be suitable for both exact and nonclassical matching and evaluate it in the context of two specific cases of nonclassical matching, the order-preserving pattern matching problem and the Cartesian tree pattern matching problem. Our experimental results show that the new approach is extremely competitive both in terms of space and running time, and for both classical and nonclassical matching. We also discuss the applicability of the new approach to other different nonclassical string matching problems.
Authors
- Francesco Pio Marino (ORCID: https://orcid.org/0000-0003-4722-9542)
- Arianna Pavone (ORCID: https://orcid.org/0000-0002-8840-6157)
- Thierry Lecroq (ORCID: https://orcid.org/0000-0002-1900-3397)
- Simone Faro (ORCID: https://orcid.org/0000-0001-5937-5796)
- Antonio Scardace (ORCID: https://orcid.org/0009-0006-7101-2879)
Institutions
- Centre National de la Recherche Scientifique (FR)
- University of Catania (IT)
- Normandie Université (FR)
- Université de Rouen Normandie (FR)
- Institut National des Sciences Appliquées Rouen Normandie (FR)
- University of Palermo (IT)
Publication Details
- Journal
- The Computer Journal
- Published
- 2026-07-23
- DOI
- https://doi.org/10.1093/comjnl/bxag075
- Primary Topic
- Algorithms and Data Compression
- Type
- article
- Field-Weighted Citation Impact
- 0.00