Computing Maximal Repeating Subsequences in a String
arXiv:2601.12200
Abstract
In this paper we initiate the study of computing a maximal (not necessarily maximum) repeating pattern in a single input string, where the corresponding problems have been studied (e.g., a maximal common subsequence) only in two or more input strings by Hirota and Sakai starting 2019. Given an input string of length , we can compute a maximal square subsequence of in time, greatly improving the bound for computing the longest square subsequence of . For a maximal -repeating subsequence, our bound is , where \(f(k)\) is a computable function such that . This greatly improves the bound for computing a longest -repeating subsequence of , for . Both results hold for the constrained case, i.e., when the solution must contain a subsequence of , though with higher running times.
19 pages,1 figure, 4 algorithms