Re: question on proving a language is regular
- From: TheGist <thegist@xxxxxxxxxx>
- Date: Mon, 15 Jan 2007 16:00:36 -0500
In article <7zy7o4herf.fsf@xxxxxxxxxxxxx>,
torbenm@xxxxxxxxxxxxx (Torben AEgidius Mogensen) wrote:
Chris Smith <cdsmith@xxxxxxx> writes:Hmm, maybe I am just slow today but I am not quite seeing this yet...
TheGist <thegist@xxxxxxxxxx> wrote:
L is a regular language.
L_x={y | xy in L} where x is some fixed string.
How do I show that L_x is a regular language?
Start from the DFA for L. Modify it to get a DFA for L_x. You don't
need non-determinism here at all. It's actually really simple once you
get the trick. Try a few examples, and see if you can figure it out.
An additional hint: When you have the DFA for L, try using x as input.
See what state you end in.
Just to state the obvious,
Suppose I have a DFA that accepts L. So, the first i states are fixed in
that they accept the fixed string(prefix) x. After the first i states
are traversed then begins the checking for y, but we know xy is in L so
we must go to an accept state for any y such that xy is in L.
Intuitively it seems straightforward that L_x is regular, or is my logic
wrong?
As far as Myhill-Nerode is concerned, the number of equivalence classes
of L_x is finite for more or less the same reason, that is,(somewhat
circularily) since x is a fixed prefix and xy is in L than the number of
states required to check y must be in finite, the number of states used
to check the prefix x must be finite and thus the DFA used to check xy
must obviously have a finite number of states. But this is probably the
wrong way to look at this. How else may I determine that the number of
equivalence classes of L_x is finite?
.
- Follow-Ups:
- Re: question on proving a language is regular
- From: Chris Smith
- Re: question on proving a language is regular
- References:
- question on proving a language is regular
- From: TheGist
- Re: question on proving a language is regular
- From: Chris Smith
- Re: question on proving a language is regular
- From: Torben Ægidius Mogensen
- question on proving a language is regular
- Prev by Date: Re: a DFA for the language L={w in {0,1}*|w does not contain the substring 001}
- Next by Date: trying to use the pumping lemma
- Previous by thread: Re: question on proving a language is regular
- Next by thread: Re: question on proving a language is regular
- Index(es):
Relevant Pages
|