1 1 vote Consider the Deterministic Finite Automaton for input alphabets Σ = {a, b} L = The number of final state(s) will be (A) 2 (B) 1 (C) 3 (D) 6 Theory of Computation theory-of-computation + – ARUN KUMAR 3 1.4k views answer comment Share Follow Print See all 2 Comments 2 2 Comments reply manisha11 commented Sep 14, 2018 i edited by manisha11 Sep 14, 2018 reply Follow flag Is it 3? n(a) mod 3> n(b) mod 3 possible values for mod 3 : 0,1,2 Therefore possible combinations : n(a)mod3 should be 1 or 2 if n(a)mod3 is 1 then b's can be 0. if n(a)mod3 is 2 then b's can be 0 or 1. case 1 : if n(a)mod3 is 1 then number of b's can be 0. possible L = {a,aaaa,aaaaaaa,aaaaaaaaaa, .... i.e. number of a's mod 3 =1 here) case 2 : if n(a)mod3 is 2 then number of b's can be 0/1. possible L : b's 0 :{aa,aaaaa,aaaaaaaa, .... i.e. number of a's mod 3 =2 and number of b's mod 3 =0 here} b's 1 :{aab, aaaaab, aaaaaaaab, .... i.e. number of a's mod 3 =2 and number of b's mod 3 =1 here} Therefore L will accept : {a,aa,aab,baa,aba,aaaa,aaaaa, aaaaab, .................... } 3*3 states from (0,0) (0,1) ...... to (2,2) among which (1,0),(2,0),(2,1) will be final states. 1 1 replyShare ARUN KUMAR 3 commented Sep 14, 2018 reply Follow flag yes, answer is 3. well explained.. thanks.. 0 0 replyShare Please log in or register to add a comment.
0 0 votes Final States should be 3. (1,0),(2,0),(2,1) ad140 answered Sep 14, 2018 ad140 comment Share Follow 0 reply Please log in or register to add a comment.