227 views
0 votes
0 votes
L = { a^p b^q |0<=p<=1000<=q}

is it regular?

1 Answer

0 votes
0 votes
yes,because in this question power of a is going to be a finite no that can be stated in finite no of states,and value of q needs to be greater than that finite no that we can do easily by remembering no states while counting power of a.

so this problem is solvable in finite no of states or using dfa so its grammar is regular because every regular language can be transformed into dfa.

No related questions found