Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Ogden's lemma : If L is a CFL, then there is a constant n, suchthat if z is any string of length at least n

Ogden's lemma : If L is a CFL, then there is a constant n, suchthat if z is any string of length at least n in L, in which weselect at least n positions to be distinguished, then we can writez=uvwxy, such that:

1. vwx has at most n distinguished positions.

2. vx has at least one distinguished position.

3. For all i, uv^iwx^iy is in L.

Q: Use Odgen's lemma to show the following languages are notCFL's:

(a) { 0^i 1^j 0^k | j=max(i,k) }

(b) { a^n b^n c^i | i is not equal to n }

Step by Step Solution

3.49 Rating (149 Votes )

There are 3 Steps involved in it

Step: 1

a Assume for the sake of contradiction that the language 0i 1j 0k jmaxik is a CFL Using Ogdens lemma ... 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

Introduction to the theory of computation

Authors: Michael Sipser

3rd edition

1133187790, 113318779X, 9781285401065 , 978-0470530658

Students also viewed these Electrical Engineering questions