Logo image
Weak repetitions in strings
Journal article   Open access   Peer reviewed

Weak repetitions in strings

L.J. Cummings and W.F. Smyth
Journal of Combinatorial Mathematics and Combinatorial Computing, Vol.24, pp.33-48
1997
pdf
weak.pdfDownloadView
Author’s Version Open Access

Abstract

A weak repetition in a string consists of two or more adjacent substrings which are permutations of each other. We describe a straightforward \Theta(n 2 ) algorithm which computes all the weak repetitions in a given string of length n defined on an arbitrary alphabet A. Using results on Fibonacci and other simple strings, we prove that this algorithm is asymptotically optimal over all known encodings of the output.

Details

Metrics

121 File views/ downloads
75 Record Views
Logo image