Re: Proving a Language Is Not a CFL
- From: "Michal Przybylek" <mrp@xxxxxxxxxxxx>
- Date: Sun, 04 May 2008 18:52:49 +0200
Dnia 04-05-2008 o 17:34:58 Bernd L <berndlosert@xxxxxxxxx> napisał(a):
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?
Nothing. Try a different language.
HINT: Does it exist a regular language R, such that C \cap R = {a^n b^n c^n : n \in Nat} ?
mp
.
- Follow-Ups:
- Re: Proving a Language Is Not a CFL
- From: Bernd L
- Re: Proving a Language Is Not a CFL
- References:
- Proving a Language Is Not a CFL
- From: Bernd L
- Proving a Language Is Not a CFL
- Prev by Date: Re: Proving a Language Is Not a CFL
- Next by Date: Re: Proving a Language Is Not a CFL
- Previous by thread: Re: Proving a Language Is Not a CFL
- Next by thread: Re: Proving a Language Is Not a CFL
- Index(es):
Relevant Pages
|