1,553 views

2 Answers

5 votes
5 votes
M accepts only finite number of words. So, we should have a dead state and one out of two states must be a dead state and this must be reachable from the start state. Further there shouldn't be a loop in the path from the start state to any final state. So, the only option is for the transition on both a and b from start state to go to the dead state. This would make the DFA accept only "empty" string by making the start state final. So, I suppose n = 0.
3 votes
3 votes

a machine will give you finite no. of output . means 

eg . a machine contains 2 length string   ∑ = {a,b} .......  so the machine will accept finite number of elements(  aa, ab ba bb ).

but in case of infinite length line  a machine starts with "a" ... then (a,ab,abb,aab,ababababba, .........so on  ) .

and if a dfa contains any cycle then it will produce infinitely many sting , so for finite number of elements the dfa must not contain any cycle . and it has only 2 states . so according to the condition if you draw this machine you will find out that 1st state must be final state and the 2nd one is used as dead state and this machine will only accept £ .  If you considered £ as word then answer will be 1 otherwise 0 . peace 

Related questions

0 votes
0 votes
0 answers
1
koushriek asked May 19, 2022
1,416 views
Examples of accepted words: 1011, 101101, 1111Example of non-accepted words: 101, 1001, 010The solution says the min-DFA contains 5 states but I could only do it in 4. Am...
5 votes
5 votes
3 answers
2
0 votes
0 votes
1 answer
3
M_Umair_Khan42900 asked Dec 29, 2022
809 views
Show that the following pairs of regular expressions define the same language over the alphabet I = [a, b].s(a) p(pp)*( A + p)q + q and p*q(b) A +0(0+1)* + (0+1)* 00(0+1)...