Examples
Example of Kleene star applied to 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 set of characters:
- {'a', 'b', 'c'}* = {λ, "a", "b", "c", "aa", "ab", "ac", "ba", "bb", "bc", "ca", "cb", "cc", ...}.
Example of Kleene star applied to the empty set:
Example of Kleene plus applied to the empty set:
where concatenation is written as an associative and noncommutative product, sharing these properties with the Cartesian product of sets.
Note that for every set L, equals the concatenation of L with . In contrast, can be written as . The operators and describe the same set if and only if the set L under consideration contains the empty word.
Read more about this topic: Kleene Star
Famous quotes containing the word examples:
“There are many examples of women that have excelled in learning, and even in war, but this is no reason we should bring em all up to Latin and Greek or else military discipline, instead of needle-work and housewifry.”
—Bernard Mandeville (16701733)
“It is hardly to be believed how spiritual reflections when mixed with a little physics can hold peoples attention and give them a livelier idea of God than do the often ill-applied examples of his wrath.”
—G.C. (Georg Christoph)
“No rules exist, and examples are simply life-savers answering the appeals of rules making vain attempts to exist.”
—André Breton (18961966)