1,719 views
1 1 vote

Language accepted by following NFA and number of states in DFA accepting that Language are:

  1. $\{a^n|n=2k,kϵN\}$ and 2

  2. $\{a^{2n}|n=2k,kϵN\}$ and 2

  3. $\{a^n|n=2k,kϵ N\}$ and 3

  4. $\{a^{2n}|n=2k,kϵ N\}$ and 3 

1 Answer

Best answer
1 1 vote

(1) since from the initial state in the given NFA, if one encounters even number of  a's , then and only then reaches final states. For example, from state S , for string "aaaa", one reaches the bottom right-most state. But, as one can notice, it also has an epsilon-transition to S, which is a final state. Hence, we can conclude here that this NFA accepts strings having even number of a's. 

Design of DFA is pretty trivial and hence, left as an exercise for the person who asked this question.

Thank You.

• selected by
Position:
Show:

Related questions

1 1 vote
1 1 answer
2.1k
2.1k views
Bhaskar Singh asked Feb 20, 2019
2,096 views
If a DFA "D" have symbol {0,1,2} and NFA "N" have symbol {0,1} but both are representing strings ending with 01 and whole string only contain {0,1} then can we say L(N) =...
0 0 votes
0 0 answers
780
780 views
sripo asked Oct 16, 2018
780 views
For the language which ends with 01 or 11 or 10 or 11 for $\sum$={0,1}* .Is dfa possible for this language?
0 0 votes
1 1 answer
472
472 views
PRAFFUL_CHAMOLI asked Jul 14, 2025
472 views
Question:LetL = { a^i b^j / i != 2j+1 } where i,j >=1  (a) Is LLL a deterministic context-free language (DCFL)?(b) Justify your answer with reasoning.
0 0 votes
0 0 answers
834
834 views
Bhaskar Singh asked Mar 3, 2019
834 views
Here why they are saying we must convert DFA transition into NFA transition?