,
Taha El Ghazi
,
Jonas Ellert
,
Paweł Gawrychowski
,
Tatiana Starikovskaya
Creative Commons Attribution 4.0 International license
In approximate circular pattern matching the goal is to compute all approximate occurrences of all rotations of a pattern P in a text T. We study this problem under the two most fundamental string distance metrics, the Hamming distance and the edit distance, in the setting where the text arrives online and the available space is limited. Specifically, we wish to report each ending position j of an approximate occurrence before symbol T[j+1] arrives, using sublinear space on top of having read-only access to P and (the seen prefix of) T. For both variants, we present algorithms that use O(poly(k)) extra space and process each arriving symbol in O(poly(k)) time. Notably, with an overhead, our algorithms can be lifted to the asymmetric streaming setting, where we only have read-only access to the pattern for free and account for all extra space.
@InProceedings{charalampopoulos_et_al:LIPIcs.ESA.2026.99,
author = {Charalampopoulos, Panagiotis and El Ghazi, Taha and Ellert, Jonas and Gawrychowski, Pawe{\l} and Starikovskaya, Tatiana},
title = {{Online Approximate Circular Pattern Matching in Small Space}},
booktitle = {34th Annual European Symposium on Algorithms (ESA 2026)},
pages = {99:1--99:16},
series = {Leibniz International Proceedings in Informatics (LIPIcs)},
ISBN = {978-3-95977-445-1},
ISSN = {1868-8969},
year = {2026},
volume = {388},
editor = {Bille, Philip and Pettie, Seth and Storandt, Sabine},
publisher = {Schloss Dagstuhl -- Leibniz-Zentrum f{\"u}r Informatik},
address = {Dagstuhl, Germany},
URL = {https://drops.dagstuhl.de/entities/document/10.4230/LIPIcs.ESA.2026.99},
URN = {urn:nbn:de:0030-drops-272358},
doi = {10.4230/LIPIcs.ESA.2026.99},
annote = {Keywords: Small-space algorithms, approximate pattern matching, circular pattern matching}
}