In: Computer Science
Question 1 a) Determine whether the language {a n b m c n | n > 0} is regular or not using pumping Lemma. b) Prove that the language {(ai bn | i, n > 0, i = n or i = 2n} is not regular using the Pumping Lemma.
For this question we can say that to solve this question we need to understand pumping lemma.
PUMPING LEMMA:
pumping lemma basically is used to prove that any provided language is regular or not.
now pumping lemma can be stated for every regular Language(if it is regular) L,there exist an integer /constant "C" such that for every string J in L will be |J| C (|x| means length of x)
we can deduce J into 3 strings
J=XYZ,such that
now comming to question:
part1.)the given language is
now we can take J as and let c=n where n is the number of states
now proving the three parts of lemma:
part 2.)
given language is
now we can represent this language as :