Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Question 3 : Using the Pumping lemma to prove that the given language is not context free. [ 3 mark ] Language: { a ^

Question 3: Using the Pumping lemma to prove that the given language is not context free. [3 mark] Language:
{a^m b^n c^(mn) :m>=0, n>=0}{a^n b a^(2n) b a^(3n) : n=>0}{a^n b^n a^n b^n :n>=0} sove it as cases like this:
Case 1: The substring vxy does not contain any c.
Consider the string uv2xy2z=uvvxyyz. Since |vy|1, this string
contains more than p many as or more than p many b s. Since it contains
exactly p many c, it follows that this string is not in the language A. This
is a contradiction because, by the pumping lemma, the string uv2xy2z is in
A.
Case 2: The substring vxy does not contain any a.
Consider the string uv2xy2z=uvvxyyz. Since |vy|1, this string
contains more than p many b s or more than p many cs. Since it contains
exactly p many as, it follows that this string is not in the language A. This
is a contradiction because, by the pumping lemma, the string uv2xy2z is in
A.
Case 3: The substring vxy contains at least one a and at least one c.
Since s=apbpcp, this implies that |vxy|>p, which again contradicts the
pumping lemma.
Thus, in all of the three cases, we have obtained a contradiction. There-
fore, we have shown that the language A is not context-free.
image text in transcribed

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access to Expert-Tailored Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Recommended Textbook for

Database Management With Website Development Applications

Authors: Greg Riccardi

1st Edition

0201743876, 978-0201743876

More Books

Students also viewed these Databases questions