In mathematical logic and theoretical computer science, the Kleene star (or Kleene operator or Kleene closure) is a unary operation on a set to generate a set of all finite-length strings that are composed of zero or more repetitions of members from . It was named after American mathematician Stephen Cole Kleene, who first introduced and widely used it to characterize automata for regular expressions. In mathematics, it is more commonly known as the free monoid construction. Definition. Given a set formula_1, define formula_2 (the set consists only of the empty string), formula_3 and define recursively the set formula_4 for each formula_5 formula_6 is called the formula_7-th power of formula_1, it is a shorthand for the concatenation of formula_1 by itself formula_7 times. That is, "formula_6" can be understood to be the set of all strings that can be represented as the concatenation of formula_7 members from formula_1. The definition of Kleene star on formula_1 is formula_15 Kleene plus. In some formal language studies, (e.g. AFL theory) a variation on the Kleene star operation called the "Kleene plus" is used. The Kleene plus omits the formula_16 term in the above union. In other words, the Kleene plus on formula_1 is formula_18 or formula_19 Examples. Example of Kleene star applied to a set of strings: {"ab","c"}* = { ε, "ab", "c", "abab", "abc", "cab", "cc", "ababab", "ababc", "abcab", "abcc", "cabab", "cabc", "ccab", "ccc", ...}. Example of Kleene star applied to a set of strings without the prefix property: {"a","ab","b"}* = { ε, "a", "ab", "b", "aa", "aab", "aba", "abab", "abb", "ba", "bab", "bb", ...};<BR>e.g. the string "aab" can be obtained in several different ways. The Sardinas-Patterson algorithm can be used to check for a given "V" whether any member of "V"* can be obtained in more than one way. Example of Kleene and Kleene plus applied to a set of characters: {"a", "b", "c"}* = { ε, "a", "b", "c", "aa", "ab", "ac", "ba", "bb", "bc", "ca", "cb", "cc", "aaa", "aab", ...}. {"a", "b", "c"}+ = { "a", "b", "c", "aa", "ab", "ac", "ba", "bb", "bc", "ca", "cb", "cc", "aaa", "aab", ...}. Generalization. Strings form a monoid with concatenation as the binary operation and ε the identity element. In addition to strings, the Kleene star is defined for any monoid. More precisely, let ("M", ⋅) be a monoid, and "S" ⊆ "M". Then "S"* is the smallest submonoid of "M" containing "S"; that is, "S"* contains the neutral element of "M", the set "S", and is such that if "x","y" ∈ "S"*, then "x"⋅"y" ∈ "S"*. Furthermore, the Kleene star is generalized by including the *-operation (and the union) in the algebraic structure itself by the notion of complete star semiring.