1,386 views
1 1 vote
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 1 vote
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.
Position:
Show:

Related questions

0 0 votes
2 2 answers
467
467 views
gateexplore asked Jun 11, 2023
467 views
Construct finite automaton corresponding to regular expression (a + b)*cd*e
0 0 votes
2 2 answers
552
552 views
gateexplore asked Jun 11, 2023
552 views
Construct NFA for the set of strings Σ={0, 1} of alternate 0's and 1's
0 0 votes
1 1 answer
906
906 views
gateexplore asked Jun 11, 2023
906 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 0 votes
1 answers 1 answer
1.9k
1.9k views
Shoto asked Dec 28, 2021
1,862 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 initial and fin...