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,

Updated on: 2021-06-14T15:24:11+05:30

22K+ Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements