On Abelian Longest Common Factor with and without RLE

Abstract

We consider the Abelian longest common factor problem in two scenarios: when input strings are uncompressed and are of size n, and when the input strings are run-length encoded and their compressed representations have size at most m. The alphabet size is denoted by σ. For the uncompressed problem, we show an o(n2)-time and (n)-space algorithm in the case of σ=(1), making a non-trivial use of tabulation. For the RLE-compressed problem, we show two algorithms: one working in (m2σ2 3 m) time and (m (σ2+2 m)) space, which employs line sweep, and one that works in (m3) time and (m) space that applies in a careful way a sliding-window-based approach. The latter improves upon the previously known (nm2)-time and (m4)-time algorithms that were recently developed by Sugimoto et al.\ (IWOCA 2017) and Grabowski (SPIRE 2017), respectively.

0

Turn this paper into a lesson

ArcXiv compiles a structured reading guide from this paper's metadata: plain-English importance, contributions, prerequisite concepts, which sections to read first, flashcards, and a quiz. Grounded in the abstract, never invented.

Discussion (0)

Sign in to join the discussion.

Loading comments…