The Wayback Machine - https://web.archive.org/web/20240607080330/https://www.geeksforgeeks.org/ardens-theorem-in-theory-of-computation/
Open In App

Arden’s Theorem in Theory of Computation

Last Updated : 07 Aug, 2023
Improve
Improve
Like Article
Like
Save
Share
Report

Arden’s theorem state that: “If P and Q are two regular expressions over “∑”, and if P does not contain “∈” , then the following equation in R given by R = Q + RP has a unique solution i.e., R = QP*.” That means, whenever we get any equation in the form of R = Q + RP, then we can directly replace it with R = QP*. So, here we will first prove that R = QP* is the solution of this equation and then prove that it is the unique solution of this equation. Let’s start by taking this equation as equation (i)

1. proof R = QP* is the solution of R = Q + RP

R = Q + RP  ......(i)

Now, replacing R by R = QP*, we get,

R = Q + QP*P 

Taking Q as common,

R = Q( ∈ + P*P) = QP*  

(As we know that ∈ + R*R = R*). Hence proved. Thus, R = QP* is the solution of the equation R = Q + RP. Now, we have to prove that this is the only solution to this equation.

2. proof R = QP* is the unique solution of R = Q + RP

Let me take this equation again:

R = Q + RP

Now, replace R by R = Q + RP,

R = Q + (Q + RP)P
    = Q + QP + RP2

Again, replace R by R = Q + RP :-

R = Q + QP + (Q + RP) P2 
    = Q + QP + QP2 + RP3 
               .
               .
    =  Q + QP + QP2 + .. + QP^n + RP(n+1)

Now, replace R by R = QP*, we get,

R = Q + QP + QP2 + .. + QPn+ QP*P^{(n+1)} 

Taking Q as common,

R = Q( ∈ + P + P2 + .. + Pn + P*P(n+1)  = QP*    [As ∈ + P + P2 + .. + Pn + P*P(n+1) 

represent the closure of P]

Hence proved. Thus, R = QP* is the unique solution of the equation R = Q + RP. 

Note :

Arden’s theorem is used to convert given finite automata to a regular expression.

To understand this theorem, we will solve an example: 

Example –

q1 = q1.0  + ∈
q2 = q1.1 + q2.0
q3 = q2.1 + q3.0 + q3.1

Now,

q1 = ∈ + q1.0q1 
= ∈.0* [By Arden's theorem]
q1 = 0* [∈R = R].'.

q2 = 0*1 +q2.0
q2 = 0*10*

[Applying Arden’s theorem]. Hence, the value of q2 is 0*10*.

 Features of Arden’s theorem in the context of ToC:

Solving systems of equations: Arden’s theorem provides a method for solving systems of equations involving regular expressions. These systems typically arise in various areas of ToC, such as the construction of finite automata, defining lexical analyzers, or solving pattern matching problems based on regular expressions.

Unique solution: Arden’s theorem guarantees the existence of a unique solution to a given system of equations, assuming the equations satisfy certain conditions. This uniqueness property ensures that the computed solution is unambiguous and reliable.

Efficient and systematic procedure: Arden’s theorem offers a systematic and efficient procedure for finding the solution to a system of equations. It involves iterative substitution and simplification steps, which can be implemented algorithmically. This systematic approach enables the computation of the solution in a structured and organized manner.

Applicability to regular languages: Arden’s theorem is specifically designed for regular languages and regular expressions. Regular languages are fundamental in ToC, and Arden’s theorem provides a powerful tool for solving equations involving regular expressions.

Connection to formal language theory: Arden’s theorem is closely connected to the study of regular languages and formal language theory. It highlights the relationships between regular expressions, regular grammars, and finite automata, which are central concepts in ToC.

Practical implications: The practical implications of Arden’s theorem in ToC are significant. It provides a means for efficiently constructing finite automata from regular expressions, which is crucial in areas such as compiler design, lexical analysis, and text processing. By utilizing Arden’s theorem, engineers and researchers can effectively convert regular expressions into executable and efficient automata-based implementations.

Limitations to regular languages: Arden’s theorem is limited to regular languages and regular expressions. It cannot be directly applied to languages beyond the regular language class, such as context-free or context-sensitive languages. For languages of higher complexity, different techniques and approaches are required.


Previous Article
Next Article

Similar Reads

Theory of Computation - GATE CSE Previous Year Questions
Solving GATE Previous Year's Questions (PYQs) not only clears the concepts but also helps to gain flexibility, speed, accuracy, and understanding of the level of questions generally asked in the GATE exam, and that eventually helps you to gain good marks in the examination. Previous Year Questions help a candidate practice and revise for GATE, whic
5 min read
Introduction of Theory of Computation
Automata theory (also known as Theory Of Computation) is a theoretical branch of Computer Science and Mathematics, which mainly deals with the logic of computation with respect to simple machines, referred to as automata. Automata* enables scientists to understand how machines compute the functions and solve problems. The main motivation behind dev
3 min read
Decidable and Undecidable problems in Theory of Computation
Prerequisite - Turing Machine A problem is said to be Decidable if we can always construct a corresponding algorithm that can answer the problem correctly. We can intuitively understand Decidable problems by considering a simple example. Suppose we are asked to compute all the prime numbers in the range of 1000 to 2000. To find the solution of this
4 min read
Relationship between grammar and language in Theory of Computation
A grammar is a set of production rules which are used to generate strings of a language. In this article, we have discussed how to find the language generated by a grammar and vice versa as well. Language generated by a grammar - Given a grammar G, its corresponding language L(G) represents the set of all strings generated from G. Consider the foll
4 min read
Theory of Computation | Regular languages and finite automata | Question 2
What is the complement of the language accepted by the NFA shown below? (A) A (B) B (C) C (D) D Answer: (B) Explanation: Quiz of this QuestionPlease comment below if you find anything wrong in the above post
1 min read
Halting Problem in Theory of Computation
To understand better the halting problem, we must know Decidability, Undecidability and Turing machine, decision problems and also a theory named as Computability theory and Computational complexity theory. Some important terms: Computability theory - The branch of theory of computation that studies which problems are computationally solvable using
4 min read
Decidability Table in Theory of Computation
Prerequisite - Undecidability, Decidable and undecidable problems Identifying languages (or problems*) as decidable, undecidable or partially decidable is a very common question in GATE. With correct knowledge and ample experience, this question becomes very easy to solve. A language is undecidable if it is not decidable. An undecidable language ma
2 min read
Introduction to Computation Complex Theory
Broad Overview : Complexity theory, in a nutshell, a complexity word is a quite fancy word, literally, it sounds complex, but it is not an intimidating topic. What it really means is analyzing the program or we can say analyzing the efficiency of the program, figuring out whether the program is correct, figuring out whether one program is better th
4 min read
Introduction To Grammar in Theory of Computation
Prerequisite - Theory of ComputationGrammar :It is a finite set of formal rules for generating syntactically correct sentences or meaningful correct sentences.Constitute Of Grammar :Grammar is basically composed of two basic elements - Terminal Symbols -Terminal symbols are those which are the components of the sentences generated using a grammar a
3 min read
Chomsky Hierarchy in Theory of Computation
According to Chomsky hierarchy, grammar is divided into 4 types as follows: Type 0 is known as unrestricted grammar.Type 1 is known as context-sensitive grammar.Type 2 is known as a context-free grammar.Type 3 Regular Grammar.Type 0: Unrestricted Grammar: Type-0 grammars include all formal grammar. Type 0 grammar languages are recognized by turing
2 min read