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 S of length n, we can compute a maximal square subsequence of S in O(n n) time, greatly improving the O(n2) bound for computing the longest square subsequence of S. For a maximal k-repeating subsequence, our bound is O(f(k)n n), where \(f(k)\) is a computable function such that f(k) < k· 4k. This greatly improves the O(n2k-1) bound for computing a longest k-repeating subsequence of S, for k≥ 3. Both results hold for the constrained case, i.e., when the solution must contain a subsequence X of S, though with higher running times.

0

Turn this paper into a full lesson

ArcXiv compiles a staged curriculum from this paper: 8-12 lessons across beginner → advanced, synthesised section guides, visuals, flashcards, a quiz, exercises, and on-demand deep dives per section. Grounded in the abstract, never invented.

Discussion (0)

Sign in to join the discussion.

Loading comments…