Selfoverlap
Selfoverlap, in the context of string processing and formal language theory, refers to an overlap between a string and itself. Concretely, for a string w over an alphabet, a border is a nonempty string b that occurs as both a prefix and a suffix of w, with length less than the length of w. The longest such border is called the longest self-overlap of w. If no nontrivial border exists, the string has no proper self-overlap.
Formally, let w be a string. A border b of w satisfies w starts with b and
Self-overlaps have practical importance in algorithms for pattern matching and text processing. They underpin the construction
See also: border, prefix function, Z-function, pattern matching, string algorithms.