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 SS of length nn, we can compute a maximal square subsequence of SS in O(nlog⁡n)O(n\log n) time, greatly improving the O(n2)O(n^2) bound for computing the longest square subsequence of SS. For a maximal kk-repeating subsequence, our bound is O(f(k)nlog⁡n)O(f(k)n\log n), where f(k)f(k) is a computable function such that f(k)<k⋅4kf(k) < k\cdot 4^k. This greatly improves the O(n2k−1)O(n^{2k-1}) bound for computing a longest kk-repeating subsequence of SS, for k≥3k\geq 3. Both results hold for the constrained case, i.e., when the solution must contain a subsequence XX of SS, though with higher running times.

Explore this paper’s authors, topics and related work.

Building this map preview

BZPEER is loading the nearby papers, people, topics and institutions for this page.

Reviews 0

Write a reviewWrite

No reviews yet.

Discussion 0

Add a commentWrite

No comments yet.