535 views
1 votes
1 votes
Let L =  { (a^p)* | p is prime number } and input is {a} . what is minimum number of state in NFA and DFA ?

2 Answers

1 votes
1 votes
this language accept all string except 'a'.

i.e. ((a)^p)* = {(a^2)*, (a^3)*, (a^5)*...... so on}

which is  equal to { (aa)*, (aaa)*, (aaaaa)* ..........}

hence, create directly a dfa which accept all stings except 'a' OR create a dfa of only accepting 'a' and then take complement of it.

hence needs 3 state.

Related questions

0 votes
0 votes
2 answers
1
gateexplore asked Jun 11, 2023
208 views
Construct finite automaton corresponding to regular expression (a + b)*cd*e
0 votes
0 votes
2 answers
2
gateexplore asked Jun 11, 2023
231 views
Construct NFA for the set of strings Σ={0, 1} of alternate 0's and 1's
0 votes
0 votes
1 answer
3
gateexplore asked Jun 11, 2023
439 views
Construct an NFA that will accept string of 0's, 1's and 2's beginning with a 0's followed by an odd number of 1's and ending with any number of 2's. Please give the answ...
0 votes
0 votes
1 answer
4
Shoto asked Dec 28, 2021
781 views
How many ‘n’ state FA are possible with ‘m’ symbols with –(i) Designated initial state(ii) With designated initial and final state(iii) With no designated initi...