
Data Structure
Networking
RDBMS
Operating System
Java
MS Excel
iOS
HTML
CSS
Android
Python
C Programming
C++
C#
MongoDB
MySQL
Javascript
PHP
- Selected Reading
- UPSC IAS Exams Notes
- Developer's Best Practices
- Questions and Answers
- Effective Resume Writing
- HR Interview Questions
- Computer Glossary
- Who is Who
Construct β-NFA of Regular Language L = (0+1)*(00+ 11)
The Ξ΅ transitions in Non-deterministic finite automata (NFA) are used to move from one state to another without having any symbol from input set Ξ£
Ξ΅-NFA is defined in five tuple
{Q, q0, Ξ£, Ξ΄, F}
Where,
Ξ΄ β Q Γ (Ξ£βͺΞ΅)β2Q
Q β Finite set of states
Ξ£ β Finite set of the input symbol
q0 β Initial state
F β Final state
Ξ΄ β Transition function
NFA without Ξ΅ transition
NFA is defined in 5 tuple representation
{Q, q0, Ξ£, Ξ΄, F}
Where,
Ξ΄ β Q X Ξ£β 2Q
Q β Finite set of states
Ξ£, β Finite set of the input symbol
q0 β Initial state
F β Final state
Ξ΄ β Transition function
NFA and NFA with epsilon both are almost the same; the only difference is their transition function.
Letβs consider the given language L = 0(0+1)*1
Rules for construction of Ξ΅-NFA are as follows β
Step 1 β NFA with epsilon for 0+ is given below β
Step 2 β NFA with epsilon for 0* is given below β
Step 3 β NFA with epsilon for (0+1) is given below β
The above transition diagram accepts either 0 or 1 as input. Those two paths lead to the final state.
Step 4 β NFA with epsilon for 01 is given below β
For concatenation 0 must be followed by 1.
Step 5 β
Ξ΅-NFA for L = (0+1)*(00 + 11)
L = (0+1)*(00 + 11) is divided into two parts: (0+1)* and (00+11).
First construct the first part and then second part finally concatenate two parts to get the result.
First part β (0+1)*
With the help of step 3 we can easily construct (0+1)* as shown below β
Second part β (00+11)
The second part can be easily drawn with the help of step 4.
In step 4, consider 1 and 0 both are either 00 or 11. Both strings are connected by + sign.
The final NFA with epsilon move is as follows β
Concatenate the first and second part,