
- Automata Theory - Applications
- Automata Terminology
- Basics of String in Automata
- Set Theory for Automata
- Finite Sets and Infinite Sets
- Algebraic Operations on Sets
- Relations Sets in Automata Theory
- Graph and Tree in Automata Theory
- Transition Table in Automata
- What is Queue Automata?
- Compound Finite Automata
- Complementation Process in DFA
- Closure Properties in Automata
- Concatenation Process in DFA
- Language and Grammars
- Language and Grammar
- Grammars in Theory of Computation
- Language Generated by a Grammar
- Chomsky Classification of Grammars
- Context-Sensitive Languages
- Finite Automata
- What is Finite Automata?
- Finite Automata Types
- Applications of Finite Automata
- Limitations of Finite Automata
- Two-way Deterministic Finite Automata
- Deterministic Finite Automaton (DFA)
- Non-deterministic Finite Automaton (NFA)
- NDFA to DFA Conversion
- Equivalence of NFA and DFA
- Dead State in Finite Automata
- Minimization of DFA
- Automata Moore Machine
- Automata Mealy Machine
- Moore vs Mealy Machines
- Moore to Mealy Machine
- Mealy to Moore Machine
- Myhill–Nerode Theorem
- Mealy Machine for 1’s Complement
- Finite Automata Exercises
- Complement of DFA
- Regular Expressions
- Regular Expression in Automata
- Regular Expression Identities
- Applications of Regular Expression
- Regular Expressions vs Regular Grammar
- Kleene Closure in Automata
- Arden’s Theorem in Automata
- Convert Regular Expression to Finite Automata
- Conversion of Regular Expression to DFA
- Equivalence of Two Finite Automata
- Equivalence of Two Regular Expressions
- Convert Regular Expression to Regular Grammar
- Convert Regular Grammar to Finite Automata
- Pumping Lemma in Theory of Computation
- Pumping Lemma for Regular Grammar
- Pumping Lemma for Regular Expression
- Pumping Lemma for Regular Languages
- Applications of Pumping Lemma
- Closure Properties of Regular Set
- Closure Properties of Regular Language
- Decision Problems for Regular Languages
- Decision Problems for Automata and Grammars
- Conversion of Epsilon-NFA to DFA
- Regular Sets in Theory of Computation
- Context-Free Grammars
- Context-Free Grammars (CFG)
- Derivation Tree
- Parse Tree
- Ambiguity in Context-Free Grammar
- CFG vs Regular Grammar
- Applications of Context-Free Grammar
- Left Recursion and Left Factoring
- Closure Properties of Context Free Languages
- Simplifying Context Free Grammars
- Removal of Useless Symbols in CFG
- Removal Unit Production in CFG
- Removal of Null Productions in CFG
- Linear Grammar
- Chomsky Normal Form (CNF)
- Greibach Normal Form (GNF)
- Pumping Lemma for Context-Free Grammars
- Decision Problems of CFG
- Pushdown Automata
- Pushdown Automata (PDA)
- Pushdown Automata Acceptance
- Deterministic Pushdown Automata
- Non-deterministic Pushdown Automata
- Construction of PDA from CFG
- CFG Equivalent to PDA Conversion
- Pushdown Automata Graphical Notation
- Pushdown Automata and Parsing
- Two-stack Pushdown Automata
- Turing Machines
- Basics of Turing Machine (TM)
- Representation of Turing Machine
- Examples of Turing Machine
- Turing Machine Accepted Languages
- Variations of Turing Machine
- Multi-tape Turing Machine
- Multi-head Turing Machine
- Multitrack Turing Machine
- Non-Deterministic Turing Machine
- Semi-Infinite Tape Turing Machine
- K-dimensional Turing Machine
- Enumerator Turing Machine
- Universal Turing Machine
- Restricted Turing Machine
- Convert Regular Expression to Turing Machine
- Two-stack PDA and Turing Machine
- Turing Machine as Integer Function
- Post–Turing Machine
- Turing Machine for Addition
- Turing Machine for Copying Data
- Turing Machine as Comparator
- Turing Machine for Multiplication
- Turing Machine for Subtraction
- Modifications to Standard Turing Machine
- Linear-Bounded Automata (LBA)
- Church's Thesis for Turing Machine
- Recursively Enumerable Language
- Computability & Undecidability
- Turing Language Decidability
- Undecidable Languages
- Turing Machine and Grammar
- Kuroda Normal Form
- Converting Grammar to Kuroda Normal Form
- Decidability
- Undecidability
- Reducibility
- Halting Problem
- Turing Machine Halting Problem
- Rice's Theorem in Theory of Computation
- Post’s Correspondence Problem (PCP)
- Types of Functions
- Recursive Functions
- Injective Functions
- Surjective Function
- Bijective Function
- Partial Recursive Function
- Total Recursive Function
- Primitive Recursive Function
- μ Recursive Function
- Ackermann’s Function
- Russell’s Paradox
- Gödel Numbering
- Recursive Enumerations
- Kleene's Theorem
- Kleene's Recursion Theorem
- Advanced Concepts
- Matrix Grammars
- Probabilistic Finite Automata
- Cellular Automata
- Reduction of CFG
- Reduction Theorem
- Regular expression to ∈-NFA
- Quotient Operation
- Parikh’s Theorem
- Ladner’s Theorem
Kleene Closure (*) in Automata Theory
Automata Theory deals with the design and analysis of algorithms for processing and recognizing patterns. It involves the study of abstract machines (automata) and the problems they can solve.
In this chapter, we will focus on two fundamental concepts in Automata Theory - Kleene Closure and Positive Closure which is Kleene plus, which are essential in understanding the behavior of regular languages.
Kleene Closure in Automata
Kleene Closure (*), or star closure gives an infinite set of possible strings of any possible length, including null string or epsilon (ε), over input values of sigma (Σ). It is also known as Kleene Star and denoted by Σ*.
The following is a mathematical notation of Kleene Closure −
$$\mathrm{\Sigma^{*} \:=\: \Sigma 0 \:\cup\: \Sigma 1 \:\cup\: \Sigma 2 \:\cup \: \dotso}$$
Where Σ0 represents epsilon (ε) and gives an infinite language.
Example
Let us see this through an example. Consider the Σ input value is (01). If we apply the Kleene Closure (∗) over Σ, it will give the following result −
$$\mathrm{\{01\}^{*} \:=\: (0\: \cup\: 1)^{*} \: =\: \{\epsilon,\:01,\:11,\:00,\:010,\:110,\:\:\dotso\:n\},\: \text{ where n is infinity}}$$
Here in the result (01)* will give all possible combinations of "0" and "1" of any length including epsilon (ε). So, we can say Kleene Closure always gives an infinite language.
Properties of Kleene Closure
The following list highlights some properties of Kleene Closure −
- Empty Set
- Single Character
- Set of Characters
- Single String
- Set of Strings
- Special Case
Empty Set
Applying Kleene Closure to the empty set
Expression
$$\mathrm{\emptyset^{*} \:=\: \{\epsilon\}}$$
Single Character
Applying Kleene Closure to a single character
Expression
$$\mathrm{\{a\}^{*} \:=\: \{\epsilon,\: a,\: aa,\: aaa,\: aaaa,\: \:\dotso\}}$$
Set of Characters
Applying Kleene Closure to a set of characters
Expression
$$\mathrm{\{x, y, z\}^{*} \:=\: \{\epsilon,\: x,\: y,\: z,\: xx,\: xy,\: xz,\: yx,\: yy,\: yz,\: zx,\: zy,\: zz,\: xxx,\: xxy,\:\:\dotso\}}$$
Single String
Applying Kleene Closure to a single string
Expression
$$\mathrm{\{ab\}^{*} \:=\: \{\epsilon,\: ab,\: abab,\: ababab,\: \:\dotso\:n\}}$$
Set of Strings
Applying Kleene Closure to a set of strings
Expression
$$\mathrm{\{010\}* \:=\: \{\epsilon,\: 01,\: 0,\: 0101,\: 010,\: 001,\: 00,\: 010101,\: 01010,\: 01001,\: 0100,\: 00101,\: 0010,\: 0001,\: 000,\: \dotso\}}$$
Special Case
Applying Kleene Closure to a special case
Expression
$$\mathrm{\{a∗bc∗\} \:=\: \{a∗ + b + c∗\} \:=\: \{b, ab, aab, c, …n\}}$$
Positive Closure in Automata
Positive Closure is similar to Kleene Closure except it excludes epsilon (ε). It also gives an infinite set of all possible strings of any length excluding epsilon (ε) over input values of sigma (Σ) The following is the mathematical notation of Positive Closure:
$$\mathrm{\Sigma^{+} \:=\: \Sigma^{*} \:-\: \{\epsilon\}}$$
Example
Consider the Σ input value is (01). After applying positive closure (+) over Σ input gives the following result −
$$\mathrm{\{01\}^{+}\:=\:(0\:\cup\:1)^{+}\:=\:\{01,\:11,\:00,\:010,\:110,\:\dotso\:n\},\:\text{ where n is infinity}}$$
The result (01)+ will give all possible combinations of "0" and "1" of any length excluding epsilon (ε). So, we can say Positive Closure always gives an infinite language.
Properties of Plus Closure
The following list highlights a couple of properties of Plus Closure −
- Empty Set
- Single Character
Empty Set
Applying Positive Closure to the empty set results in an empty set
Expression
$$\mathrm{\emptyset^{+} \:=\: \{\}}$$
Single Character
Applying Kleene Closure to a single character
Expression
$$\mathrm{\{a\}^{+} \:=\: \{a,\: aa,\: aaa,\: aaaa,\: \dotso\}}$$
Difference between Σ* and Σ+
The Σ* contains the epsilon (ε) string along with other N strings, but Σ+ is just like Σ* but does not hold the epsilon (ε) string. We can say −
$$\mathrm{\Sigma^{**} \:=\: \Sigma^{++} \: \Sigma^{0}}$$
Where Σ0 represents epsilon (ε). So, Σ* holds the identity (single) element called Absalon, but Σ+ does not have the identity element called epsilon (ε).
Conclusion
In this chapter, we explained the concept of Kleene Closure and in context, the concept of Kleene Star or Positive Closure as well. These concepts form the foundation for defining regular languages and designing finite automata.
Kleene Closure and Positive Closure help in generating all possible strings from a given set of characters, which is essential in various computational processes, including pattern matching and language recognition.