[Home]Kleene star

HomePage | Recent Changes | Preferences

Showing revision 10
The Kleene star is an operation used in regular expressions and operates either on sets of strings or on sets of symbols or characters. The application of the Kleene star to a set V is written as V*.
  1. If V is a set of strings then its result is defined as the smallest superset of V that contains ε (the empty string) and is closed under the string concatenation operation. This set can also be described as the set of strings that can be made by concatenating zero or more strings from V.
  2. If V is a set of symbols or characters then V* is the set of all strings over symbols in V, including the empty string.

Example of Kleene star applied to set of strings:

{"ab", "c"}* = {ε, "ab", "c", "abab", "abc", "cc", "ababab", "ababc", "abcc", "cabab", "cabc", "ccc", ...}
Example of Kleene star applied to set of characters:
{'a', 'b', 'c'}* = {ε, "a", "b", "c", "aa", "ab", "ac", "ba", "bb", "bc", ...}

The Kleene star is often generalized for any Monoid (M, .), that is, a set M and binary operator '.' on M such that

Then V* is defined as the smallest superset of V that contains e and is closed under the operation.

The Kleene star is named after Stephen Kleene who introduced it when describing certain automata (see regular expression).

See also:

-- Kleene algebra --

HomePage | Recent Changes | Preferences
This page is read-only | View other revisions | View current revision
Edited August 21, 2001 6:07 pm by Jan Hidders (diff)
Search: