Lably
Skip to content

Kleene star

Unary operation on string sets

  • 3 min read
  • 6 chapters

Related on Lably

Through String (computer science) and Algebraic structure

The Kleene star operator on an alphabet V generates the set V* of all finite-length strings over V, that is, finite sequences whose elements belong to V; in mathematics, it is more commonly known as the free monoid construction. The Kleene star operator on a language L generates another language L*, the set of all strings that can be obtained as a concatenation of zero or more members of L. In both cases, repetitions are allowed.

The Kleene star operators are named after American mathematician Stephen Cole Kleene, who first introduced and widely used it to characterize automata for regular expressions.

Of an alphabet

Given an alphabet V, define

V0={ε} (the set consists only of the empty string),
V1=V,

and define recursively the set

Vi+1={wv:w∈Vi and v∈V} for each i>0,

where wv denotes the string obtained by appending the single character v to the end of w. Here, Vi can be understood to be the set of all strings of length exactly i, with characters from V.

The definition of Kleene star on V is

V∗=⋃i≥0Vi=V0∪V1∪V2∪V3∪V4∪⋯.

Sign in to keep reading

5 more chapters are free with a Lably account.

More in Computing and communication