Re: help making regular expression
- From: Patricia Shanahan <pats@xxxxxxx>
- Date: Sat, 17 Mar 2007 11:33:49 GMT
Helmut Richter wrote:
On Fri, 16 Mar 2007, Patricia Shanahan wrote:
The insight I think have has nothing to do with making the RE short. It
is not something I would even consider writing by hand. I do think the
symmetry of both the language and the natural DFA for it does give a
structure to the RE.
I do not think so. At least it is not obvious how the symmetry of the DFA can be exploited for a simple, or structured by any intuitive understanding, RE. I have once made a RE for the decimal numbers divisible by 3, and the fine symmetry of the 3-state automaton is totally blurred in the RE. If someone is interested (it is in German but you can at least look at the pictures and the result): http://www.lrz-muenchen.de/services/schulung/unterlagen/regul/regul-14.html#publish4.3.2.0.0.0
I didn't claim the structure can be recovered easily from the RE by
looking at it. The RE about as readable as the average 2000+ character
RE. RE seems to me to be the least readable, most structure-hiding
commonly used representation of languages, except when applied in a
limited number of situations that it fits particularly well.
The structure became visible to me in the process of replacing a couple
of states as though converting the DFA to RE. The structure is also
represented in the structure of the program I wrote to write the RE.
Patricia
.
- References:
- help making regular expression
- From: Ravi
- Re: help making regular expression
- From: Barb Knox
- Re: help making regular expression
- From: Ravi
- Re: help making regular expression
- From: Patricia Shanahan
- Re: help making regular expression
- From: Torben Ægidius Mogensen
- Re: help making regular expression
- From: Helmut Richter
- help making regular expression
- Prev by Date: Re: help making regular expression
- Next by Date: Re: Hoare's triples question
- Previous by thread: Re: help making regular expression
- Next by thread: exercises with solutions
- Index(es):
Relevant Pages
|