Alphabet

A finite set of symbols. Denoted by Σ\Sigma.

String

A finite sequence of symbols from Σ\Sigma. Length of string xx is denoted by x|x|.

Null String

String with length 0. Denoted by Λ\Lambda.

Concatenation

Concatenation of strings xx and yy is xyxy. Associative.

Repetition

aka^k means symbol aa repeated kk times. a0=Λa^0 = \Lambda.

Σk\Sigma^k is the set of all k-length strings from symbols of Σ\Sigma. Σ0={Λ}\Sigma^0 = \{\Lambda\}.

Substrings

A string found inside another string.

  • Prefix
    Initial substring.
  • Suffix
    Final substring.

Σ-Star

Set of all strings over Σ\Sigma.

Written by September 13, 2026 1 min read
Was this helpful?