Lukas' Notes

computation

Definition

String Border

A string is a border of a string if is both a prefix and a suffix of .

Trivial

Definition

Trivial String Border

Given a string , then , the empty string, and , the string itself, are called trivial string borders.

Link to original

Chain

The borders of a string are totally ordered by length. If and are borders of with , then is a border of . Equivalently, every border of is also a border of the longest border of (the maximal border).

Transitivity

If is a border of and is a border of , then is a border of . That is, the border relation is transitive.

Examples

The borders are , , and .

The borders are and .

The borders are , , , and . The full string itself is not a border.