CREATE OWN LIBRARY

Design a machine of the following language: 

 

where ∑ = {a, b}

 

Answer: 

 

As per the language given it is mod 2 and mod 3

So, we know in this case the number of states will be 2 * 3 = 6 (total remainder pair is 6)

 

We design a machine for nb(ω) mod 3 = 0 :

 

And we know machine of na(ω) mod 2 = 0 :

 

Now machine for,

 

 

Here ra identified remainder of a’s and rb identified remainder of b’s

 

In the above machine, there are four grades,

 

 

 

 

So, the final state must the common state (Intersection) of nb(ω) mod 3 = 0 states and na(ω) mod 2 = 0 .

Because language is,

 (na(ω) mod 2 = 0) AND (nb(ω) mod 3 = 0) here AND means intersection