Re: Proving a Language Is Not a CFL
- From: Jussi Piitulainen <jpiitula@xxxxxxxxxxxxxxxx>
- Date: 04 May 2008 19:48:16 +0300
Bernd L writes:
This is a problem from Sipser's book which I'm unable to answer:
If A is a CFL and B is a regular language, then the intersection of
A and B is context free. Given this result, show that the language C
= {w : w in {a, b, c}* and contains an equal number of a's, b's and
c's} is not a CFL.
Let D be the language described by the regex (abc)*. This language
is regular and is a subset of C so the intersection of C and D is D
which is also context free. What gives?
That's not the regex that gives the result. Another one gives a
well-known non-CFL.
.
- References:
- Proving a Language Is Not a CFL
- From: Bernd L
- Proving a Language Is Not a CFL
- Prev by Date: Re: CYK & Context-Free Expressions
- Next by Date: Re: Proving a Language Is Not a CFL
- Previous by thread: Proving a Language Is Not a CFL
- Next by thread: Re: Proving a Language Is Not a CFL
- Index(es):
Relevant Pages
|