出典:Wikipedia
出典:『Wikipedia』 (2011/04/17 01:14 UTC 版)
Given a string S of length n, a maximal pair is a tuple (p1,p2,l), such that S[p1..p1 + l − 1] = S[p2..p2 + l − 1], but
and
. A maximal repeat is a string represented by such tuple. A supermaximal repeat is a maximal repeat never occurring as a proper substring of another maximal repeat. Both maximal pairs, maximal repeats and supermaximal repeats can be found in Θ(n + z) time using a suffix tree , if there are z such structures.