
- 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
General Recursive Function in Automata Theory
General recursive functions, also known as μ-recursive functions, are a fundamental class of functions that map natural numbers to natural numbers. They capture the concept of "computability" in a formal mathematical sense.
In this chapter, we will cover the basics of μ-recursive functions along with their connection to other models of computability, and see a detailed examples for a better understanding.
What are μ-Recursive Functions?
The concept of μ-recursive functions is simple. These are a class of partial functions from natural numbers to natural numbers. These functions are particularly important because they include all functions that can be computed by a Turing machine, which is an important concept in computability theory. This is related to the Church-Turing thesis, which states that any function that can be considered computable can be computed by a Turing machine or equivalently, is μ-recursive.
Relationship with Primitive Recursive Functions
Primitive recursive functions are a subset of μ-recursive functions. They are defined using basic functions and are closed under operations like composition and primitive recursion. However, not all μ-recursive functions are primitive recursive.
A classic example is the Ackermann function, which is total (meaning it is defined for all natural numbers) but not primitive recursive.
μ-Recursive Functions
Let us define the μ-recursive function formally. This is a function that can be constructed using a limited set of initial functions and a few basic operators. These include −
Initial Functions
- Constant Functions − Functions that return a fixed natural number.
- Successor Function − This function adds one to its input.
- Projection Functions − Also known as identity functions, these return one of their arguments.
Operators
- Composition − Combining functions such that the output of one function becomes the input of another.
- Primitive Recursion − Defining a function based on its value at previous points.
- Minimization (μ-operator) − This operator searches for the smallest input that causes the function to return zero. If no such input exists or if the function is undefined for an input, the resulting function will be undefined.
The μ-operator differentiates μ-recursive functions from primitive recursive functions. Where primitive recursion ensures that the function is total, the minimization operator introduces partiality by allowing functions to be undefined for some inputs.
Example of Ackermann Function
Let us see an example. The Ackermann function is such idea which is a μ-recursive function that is not primitive recursive.
It is A(m, n), and defined as follows −
$$\mathrm{n \:+\: 1 \:(if\: m \:=\: 0)}$$
$$\mathrm{A(m \:\: 1,\: 1)\: (if\: m \:\gt\: 0\: and\: n \:=\: 0)}$$
$$\mathrm{A(m \:\: 1,\: A(m,\: n \:\: 1))\: (if \:m \:\gt\: 0\: and\: n \:\gt\: 0)}$$
This function grows extremely fast and exceeds the bounds of primitive recursion. This shows the power of μ-recursive functions.
Basic Examples
Let us see some basic examples for simpler applications of μ-recursive functions −
- Successor Function − The successor function S(x) = x + 1 is one of the simplest μ-recursive functions. It states the rule that each number is mapped to its successor, effectively adding one to the input.
- Constant Function − A constant function Ck(x) = k returns the same natural number k regardless of the input. For instance, C5(x) = 5, returns 5 for any input x.
- Projection Function − The projection function $\mathrm{P_{i}^{k}\:(x_1,\: x_2,\: \dotso,\: x_k) \:=\: x_i}$. It simply returns the i-th input. For example, $\mathrm{P_2^3(7,\: 3,\: 8) \:=\: 3}$.
Construction Using Operators
We have seen the function definitions. Let us see the construction of more complex functions, using the composition and recursion operators −
- Composition − Suppose we have functions like g(x) = x + 2 and h(x) = x2. The composition f(x) = h(g(x)) would give us f(x) = (x + 2)2, which is another μ-recursive function.
-
Primitive Recursion − Consider defining a function that calculates the sum of two numbers. Using primitive recursion, we define −
- Base step − f(0, y) = y
- Inductive step − f(x + 1, y) = f(x, y) + 1
This recursive definition shows the standard addition function.
Turing Machines and μ-Recursive Functions
As we discussed that any function which is computable by a Turing machine can also be expressed as a μ-recursive function. On the other hand, every μ-recursive function can be solved by a Turing machine. This equivalence supports the Church-Turing thesis as well.
Kleenes Normal Form Theorem
Another important theorem related to μ-recursive functions is Kleene's Normal Form Theorem. This theorem states that every μ-recursive function can be expressed in a normal form using a single application of the μ-operator to a primitive recursive function. This result further states the power of μ-recursive functions and their role in the theory of computation.
Conclusion
In this chapter, we have covered the concept of μ-recursive functions. We discussed their relationship with primitive recursive functions and discussed their formal definition.
Through examples like the Ackermann function, we demonstrated how μ-recursive functions can extend beyond the capabilities of primitive recursion. Finally, we explored other examples along with their equivalence with other models of computation, such as Turing machines, and Kleene's Normal Form Theorem.