Given a textstring x of length n, the Minimal Augmented Suffix Tree (T
) over cap (x) of x is a digital-search index that returns, for any qu
ery string w and in a number of comparisons bounded by the length of w
, the maximum number of nonoverlapping occurrences of w in x. It is sh
own that, denoting the length of x by n, (T) over cap (x) can be built
in time O(n log(2) n) and space O(n log n), off-line on a RAM.