Home
Scholarly Works
An optimal algorithm to compute all the covers of...
Journal article

An optimal algorithm to compute all the covers of a string

Abstract

Let x denote a given nonempty string of length n = |x| ⩾ 1. A string u is a cover of x if and only if every position of x lies within an occurrence of u within x. Thus x is always a cover of itself. In this paper we characterize all the covers of x in terms of an easily computed normal form for x. The characterization theorem then gives rise to a simple recursive algorithm which computes all the covers of x in time Θ(n).

Authors

Moore D; Smyth WF

Journal

Information Processing Letters, Vol. 50, No. 5, pp. 239–246

Publisher

Elsevier

Publication Date

June 10, 1994

DOI

10.1016/0020-0190(94)00045-x

ISSN

0020-0190

Contact the Experts team