CREATE OWN LIBRARY

Design a machine of the following language: 

 

where ∑ = {a, b}

 

Answer:

 

As per the language given is,

So, the number of states will require to design automata, as we know it may 2 * 4 = 8 (mod 2 and mod 4) grade of states

 

But actually, it will not require 2 * 4 = 8 grade of statesit is some of the exceptional case where the grade is not calculated as mod n x mod m

If there is a common factor between n and m (mod n and mod m) then the grade of states will not be calculated as n x m.

 

(na(ω) mod 2 = 0) = (0, 2, 4, 6, 8, 10, 12…….)  AND  (na(ω) mod 4 = 0) = (0, 4, 8, 12………)

So, some of the element is common for both cases and there is AND  so it is intersection.

 

So, if we do intersection (0, 2, 4, 6, 8, 10, 12…….) ∩ (0, 4, 8, 12………) = (0, 4, 8, 12…..)

                                                                        Or

 

 

So, it only requires designing automata of (na(ω) mod 4 = 0) for language,

 

 

 

But the machine will be changed if the language has slightly changed as,

where ∑ = {a,b}

Now,

(na(ω) mod 2 = 0) = (0, 2, 4, 6, 8, 10, 12….)  OR (na(ω) mod 4 = 0) = (0, 4, 8, 12………)

So, some of the element is common for both cases and there is OR so it is Union. And another thing that is clear from above is (na(ω) mod 2 = 0) ⊇ (na(ω) mod 4 = 0) i.e. mod 2 is super-set of mod 4.

 

So if we do union (0, 2, 4, 6, 8, 10, 12….) (0, 4, 8, 12………) = (0, 2, 4, 6, 8, 10, 12….)

                                                                       Or

 

 

So, it only requires designing automata of (na(ω) mod 2 = 0) for language,