On Time-Memory Tradeoffs for Maximal Palindromes with Wildcards and $k$-Mismatches

πŸ“… 2026-04-22
πŸ“ˆ Citations: 0
✨ Influential: 0
πŸ“„ PDF

career value

196K/year
πŸ€– AI Summary
This study addresses the problem of efficiently identifying the longest palindromic substring in strings containing wildcards, where each wildcard can match any character and thereby disrupts the symmetry exploited by classical palindrome-finding algorithms. To overcome this challenge, we present the first non-trivial algorithm that operates within linear space, leveraging a novel wildcard-based longest common extension (wildcard-LCE) technique. Our approach establishes a continuous trade-off between time and memory usage, achieving substantial improvements in the time–memory product across a range of parameter settings. Furthermore, the method generalizes effectively to the more challenging setting allowing up to k mismatches, yielding both theoretical advances and practical performance gains.

Technology Category

Application Category

πŸ“ Abstract
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.
Problem

Research questions and friction points this paper is trying to address.

maximal palindromes
wildcards
k-mismatches
time-memory tradeoffs
Innovation

Methods, ideas, or system contributions that make the work stand out.

wildcard palindromes
time-memory tradeoff
linear-space algorithm
k-mismatches
maximal palindromes
πŸ”Ž Similar Papers
2024-08-07Embedded Systems and ApplicationsCitations: 1