,
Ayelet Butman,
Michael Itzhaki
,
Dina Sokol
Creative Commons Attribution 4.0 International license
This paper addresses the problem of identifying palindromic factors in texts that include wildcards - special characters that match all others. These symbols challenge many classical algorithms, as numerous combinatorial properties are not satisfied in their presence. We apply existing wildcard-LCE techniques to obtain a continuous time-memory tradeoff, and present the first non-trivial linear-space algorithm for computing all maximal palindromes with wildcards, improving the best known time-memory product in certain parameter ranges. Our main results are algorithms to find and approximate all maximal palindromes in a given text. We also generalize both methods to the k-mismatches setting, with or without wildcards.
@InProceedings{amir_et_al:LIPIcs.CPM.2026.18,
author = {Amir, Amihood and Butman, Ayelet and Itzhaki, Michael and Sokol, Dina},
title = {{On Time-Memory Tradeoffs for Maximal Palindromes with Wildcards and k-Mismatches}},
booktitle = {37th Annual Symposium on Combinatorial Pattern Matching (CPM 2026)},
pages = {18:1--18:18},
series = {Leibniz International Proceedings in Informatics (LIPIcs)},
ISBN = {978-3-95977-420-8},
ISSN = {1868-8969},
year = {2026},
volume = {369},
editor = {Bille, Philip and Prezza, Nicola},
publisher = {Schloss Dagstuhl -- Leibniz-Zentrum f{\"u}r Informatik},
address = {Dagstuhl, Germany},
URL = {https://drops.dagstuhl.de/entities/document/10.4230/LIPIcs.CPM.2026.18},
URN = {urn:nbn:de:0030-drops-259444},
doi = {10.4230/LIPIcs.CPM.2026.18},
annote = {Keywords: Wildcards, Mismatches, Palindrome}
}