703 views
1 votes
1 votes

Can someone Explain these statements?

2 Answers

Best answer
4 votes
4 votes

S1: pumping lemma is a negativity test which is used to prove that a language isn't regular. If a language doesn't satisfy the pumping lemma, then it is definitely not regular.. But if a language satisfies the pumping lemma, it may be regular or may not be regular. So S1 is false.

S2: given a grammar,  if all the production rules of the grammar of the form A->aB or A->b or A->Ba where {a, b} are terminals and {A, B} are non terminals, then the grammar is a regular grammar, otherwise the grammar isn't regular.  So as we have an algorithm by which we are able to decide whether a grammar is regular or not,  so this is decidable. So S2 is true.

S3: suppose L=$\phi$ which is a regular language and M ={anbn|n>=0} which is a context free language, then L.M is $\phi$ which is regular. So S3 is false.

Hence answer is (b) only S2 is correct

selected by
2 votes
2 votes

 3.(a+b)*anbn is regular for n>=0

2.True checking if the grammar is not regular is decidable problem because it's complement (i.e. checking if a grammar is regular) is decidable.

If a language is regular and it's complement is also regular then it is decidable.

1. Pumpping lemma is negativity test. We use it to disprove that a languages is not regular. But reverse is not true.

Answer is b)

Related questions

0 votes
0 votes
1 answer
1
Abhishek3301 asked Feb 6
10 views
Number of states in a minimal deterministic finite automata that accepts the language L = {(a + b) a* b*} What should be the answer to this question?
0 votes
0 votes
1 answer
3
0 votes
0 votes
2 answers
4
jugnu1337 asked Sep 3, 2023
345 views
FIND the no of 2 state dfa with the designated initial state possible over {a,b,c} which accept empty language is equal to