Computing Maximal Repeating Subsequences in a String
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 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.
Keywords
Cite
@article{arxiv.2601.12200,
title = {Computing Maximal Repeating Subsequences in a String},
author = {Mingyang Gong and Adiesha Liyanage and Braeden Sopp and Binhai Zhu},
journal= {arXiv preprint arXiv:2601.12200},
year = {2026}
}
Comments
19 pages,1 figure, 4 algorithms