edited by
360 views
4 votes
4 votes

Which of the following statements is/are TRUE regarding pumping lemma for regular languages? (Mark all the appropriate choices)

  1. Satisfying pumping lemma is a necessary condition for a language to be regular
  2. Satisfying pumping lemma is a sufficient condition for a language to be regular
  3. Not satisfying pumping lemma is a necessary condition for a language to be not regular
  4. Not satisfying pumping lemma is a sufficient condition for a language to be not regular
edited by

1 Answer

Best answer
3 votes
3 votes

Pumping Lemma for Regular Languages is as follows:

If $A$ is a regular language, then there is a number $p,$ such that if $s$ is any string in $A$ of length at least $p,$ $s$ may be divided into three pieces $x,y,z,$ i.e., $s = xyz,$ such that all of the following hold:

  1. for each $i \geq 0, xy^i z$ is in $A$
  2. $|y| > 0$
  3. $|xy| \leq p$

So, pumping lemma is a necessary condition for a language to be regular. In other words, not satisfying pumping lemma is a sufficient condition for a language to be not regular.

Now, even if a language satisfies pumping lemma it may not be regular.

Reference: https://cs.stackexchange.com/questions/41442/a-non-regular-language-satisfying-the-pumping-lemma

So, correct answer is A and D

selected by
Answer:

Related questions