paper

Computing Covers under Substring Consistent Equivalence Relations

arXiv:2002.06764

Abstract

Covers are a kind of quasiperiodicity in strings. A string is a cover of another string if any position of is inside some occurrence of in . The shortest and longest cover arrays of have the lengths of the shortest and longest covers of each prefix of , respectively. The literature has proposed linear-time algorithms computing longest and shortest cover arrays taking border arrays as input. An equivalence relation over strings is called a substring consistent equivalence relation (SCER) iff implies (1) and (2) for all . In this paper, we generalize the notion of covers for SCERs and prove that existing algorithms to compute the shortest cover array and the longest cover array of a string under the identity relation will work for any SCERs taking the accordingly generalized border arrays.

16 pages

Computing Covers under Substring Consistent Equivalence Relations · wovepaper