Border of a string
A string is said to be a border of a string if it is both a prefix and a suffix of , and is strictly shorter than .
Examples
abais a border ofabacabaaais a border ofaabbbbaaεis a border ofabc, whereεdenotes the empty string.
Properties
- A string can have at most borders, including the empty string.