Computing String Covers in Sublinear Time

Abstract

Let T be a string of length n over an integer alphabet of size σ. In the word RAM model, T can be represented in O(n /σ n) space. We show that a representation of all covers of T can be computed in the optimal O(n/σ n) time; in particular, the shortest cover can be computed within this time. We also design an O(n(σ + n)/ n)-sized data structure that computes in O(1) time any element of the so-called (shortest) cover array of T, that is, the length of the shortest cover of any given prefix of T. As a by-product, we describe the structure of cover arrays of Fibonacci strings. On the negative side, we show that the shortest cover of a length-n string cannot be computed using o(n/ n) operations in the PILLAR model of Charalampopoulos, Kociumaka, and Wellnitz (FOCS 2020).

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…