
- 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
Recursive Functions in Automata Theory
In this chapter and in its subsequent few chapters, we will cover several mathematical functions related to automata theory. Recursive functions are quite useful in automata theory. They help in understanding the different operations and behaviors that can be defined mathematically. In this chapter, we will explain the basic concepts of recursive functions, including the types of functions used, their definitions, and examples for a better understanding.
Initial Functions in Recursive Function Theory
To start the discussion on Recursive functions, we will see the initial functions. These are the foundational functions in recursive function theory, and there are three of them −
- Zero function
- Successor function
- Projection function
Let us take a closer look at them one by one.
Zero Function
The first initial function is the zero function, which we represent with the letter Z. The zero function is simple: It always returns zero, regardless of the input value. If any variable is given, the result will always be zero.
For instance, if we represent the zero function as Z(x), then Z(5) = 0 and Z(70) = 0. This function sets the value of any variable to zero, making it a basic part of recursive function theory.
Successor Function
The next type of function is the successor function, this is represented by the letter S. This function gives the next value of any variable by adding 1 to it.
For example, if you want to find the successor of 6, you simply calculate S(6) = 6 + 1 = 7. Similarly, S(70) = 70 + 1 = 71. The successor function is straightforward but important in defining other functions.
Projection Function
The third initial function is the projection function. This function is used to select a particular value from a set of natural numbers. If you have a set of numbers and we want to get a specific one, we use the projection function.
The projection function is represented as $\mathrm{P_{i}^{n}}$ , where n is the total number of values, and i is the position of the value you want to select.
For example −
- $\mathrm{P_{1}^{4}}$ selects the first number from the set {3, 7, 8, 9}, giving an output of 3.
- $\mathrm{P_{2}^{3}}$ selects the second number from the set {7, 9, 12}, giving an output of 9.
- $\mathrm{P_{4}^{6}}$ selects the fourth number from the set {1, 2, 3, 4, 5, 6}, giving an output of 4.
These initial functions, the zero, successor, and projection makes the base upon which more complex functions are built.
Composite Functions in Recursive Function Theory
After understanding the initial functions, the next concept is composite functions. In a composite function, we combine two or more functions by substituting one function into another. This allows us to create more complex functions from simpler ones.
A composite function is defined when one function is substituted into another. For example, let us consider two functions −
$$\mathrm{f(x) \:=\: 3x \:+\: 2}$$
$$\mathrm{g(x) \:=\: x \:+\: 5}$$
If we want to compose these functions as f(g(x)), we substitute g(x) into f(x). So,
$$\mathrm{f(g(x)) \:=\: 3(x \:+\: 5) \:+\: 2 \:=\: 3x \:+\: 17}$$
We can also reverse the composition and create g(f(x)), which means substituting f(x) into g(x). So,
$$\mathrm{g(f(x)) \:=\: (3x \:+\: 2) \:+\: 5 \:=\: 3x \:+\: 7}$$
In recursive function theory, composite functions allow us to build complex operations by combining simpler ones, extending the range of possible computations.
Recursive Functions
Recursive Function is a function that repeats or uses previous term to calculate subsequent terms. This forms a sequence of terms. Usually, we get this function based on the arithmetic-geometric sequence, which has terms with a common difference between them.
Recursive functions are useful because they allow us to define operations that can continue indefinitely or until a specific condition is met.
Primitive Recursive Functions
A primitive recursive function is a special type of recursive function. It is defined as a function that can be obtained from initial functions through a finite number of composition and recursive steps.
In other words, a primitive recursive function is created by applying composition and recursion to the initial functions. The zero, successor, and projection functions. This type of function is useful in computation theory because it is both predictable and well-defined within a finite number of steps.
Partial Recursive Functions
Then the next type of function is partial recursive functions. A function is said to be partial recursive if it is defined only for some of its arguments, not all.
For example, consider the subtraction of two positive numbers M and N −
$$\mathrm{f(M, N) \:=\: M \:-\: N}$$
This function is defined only when M ≥ N. If M is less than N, the result would be negative, and the function would not be defined. Therefore, this function is a partial recursive function because it does not cover all possible inputs.
Total Recursive Functions
The next type is total recursive functions. A total recursive function is defined for all possible arguments. For example, addition −
$$\mathrm{f(M,\: N) \:=\: M \:+\: N}$$
This function is defined for any positive numbers M and N, and the result is always positive. Therefore, it is a total recursive function because it covers all input possibilities.
Conclusion
In this chapter, we explained the basics of recursive functions in automata theory. With the initial functions like zero, successor, and projection. Then, we explored composite functions, which combine simpler functions to create more complex ones.
After that, we introduced the concept of recursive functions, primitive recursive functions, composition, and recursion. Finally, we covered partial and total recursive functions with basic examples for a clear understanding.