Re: OT: regular expression question

2000-12-12 Thread Rogerio Brito
On Dec 11 2000, Hubert Chan wrote: > Um, I never said that they were the same thing. In fact, I > specifically said that they different. If you read my post again > (in fact, the very part that you quoted), you will see that I said > that which rule you add depends on whether or not you count the

Re: OT: regular expression question

2000-12-11 Thread Hubert Chan
> "Eric" == Eric G Miller writes: Eric> On Fri, Dec 08, 2000 at 11:16:11AM -0700, Hubert Chan wrote: >> It all depends on what you mean when you say "word". I used it in the >> abstract sense, which is just a string of characters. So abcba is a >> word, even though it is not

Re: OT: regular expression question

2000-12-11 Thread Hubert Chan
> "Rogerio" == Rogerio Brito <[EMAIL PROTECTED]> writes: Rogerio> On Dec 08 2000, Hubert Chan wrote: >> Oops. There should be a "| \epsilon" at the end of that (where \epsilon >> is the empty string) if you count the empty string as a palindrome. If >> not, then you should ad

Re: Inappropriate postings: [kroger@Princeton.EDU: Re: OT: regular expression question]

2000-12-09 Thread kmself
ww.kuro5hin.org > >From karsten Fri Dec 8 19:20:26 2000 > X-Envelope-Sender: [EMAIL PROTECTED] > Date: Fri, 8 Dec 2000 22:16:03 -0500 > To: debian-user@lists.debian.org > From: Jim Kroger <[EMAIL PROTECTED]> > Subject: Re: OT: regular expression question > > A

Re: Inappropriate postings: [kroger@Princeton.EDU: Re: OT: regular expression question]

2000-12-09 Thread John Carline
Richard Cobbe wrote: > Lo, on Friday, December 8, kmself@ix.netcom.com did write: > > > Dr. Kroger: > > > > Attached are several recent posts you've made to the debian-users > > mailing list concerning the Debian GNU/Linux operating system > > (http://www.debian.org/). I think you'll find that in

Re: Inappropriate postings: [kroger@Princeton.EDU: Re: OT: regular expression question]

2000-12-09 Thread Richard Cobbe
Lo, on Friday, December 8, kmself@ix.netcom.com did write: > Dr. Kroger: > > Attached are several recent posts you've made to the debian-users > mailing list concerning the Debian GNU/Linux operating system > (http://www.debian.org/). I think you'll find that instructions for > unsubscribing fro

Re: OT: regular expression question

2000-12-09 Thread Rogerio Brito
On Dec 08 2000, Hubert Chan wrote: > Oops. There should be a "| \epsilon" at the end of that (where > \epsilon is the empty string) if you count the empty string as a > palindrome. If not, then you should add "| aa | bb". No, it's not the same thing. The former language generated by

Inappropriate postings: [kroger@Princeton.EDU: Re: OT: regular expression question]

2000-12-08 Thread kmself
Dr. Kroger: Attached are several recent posts you've made to the debian-users mailing list concerning the Debian GNU/Linux operating system (http://www.debian.org/). I think you'll find that instructions for unsubscribing from the list are included, as well as a fallback address for reaching a re

Re: OT: regular expression question

2000-12-08 Thread Jim Kroger
At 10:49 PM +0100 12/8/00, Viktor Rosenfeld wrote: Hubert Chan wrote: > > Viktor> regular. I think, the PDA that recognizes this language is fairly > Viktor> easy to construct, but it's late, and I've done enough theoretical > Viktor> computer science for today. > > For sim

Re: OT: regular expression question

2000-12-08 Thread Eric G . Miller
On Fri, Dec 08, 2000 at 11:16:11AM -0700, Hubert Chan wrote: > It all depends on what you mean when you say "word". I used it in the > abstract > sense, which is just a string of characters. So abcba is a word, even though > it is not an English word. > > Strictly, "A Man, a Plan, a Canal, Pana

Re: OT: regular expression question

2000-12-08 Thread Viktor Rosenfeld
Hubert Chan wrote: > > Viktor> regular. I think, the PDA that recognizes this language is fairly > Viktor> easy to construct, but it's late, and I've done enough theoretical > Viktor> computer science for today. > > For simplicity, assume that our alphabet is {a,b}. Then the CFG is

Re: OT: regular expression question

2000-12-08 Thread Hubert Chan
> "Eric" == Eric G Miller writes: Eric> On Thu, Dec 07, 2000 at 05:29:29PM -0700, Hubert Chan wrote: >> > "Frodo" == Frodo Baggins <[EMAIL PROTECTED]> writes: >> Frodo> Take the palindrome w=aaa...abb...b where there are n 'a' and n >> That's not a palindrome. A pal

Re: OT: regular expression question

2000-12-08 Thread Hubert Chan
> "Hubert" == Hubert Chan <[EMAIL PROTECTED]> writes: Viktor> regular. I think, the PDA that recognizes this language is fairly Viktor> easy to construct, but it's late, and I've done enough theoretical Viktor> computer science for today. Hubert> For simplicity, assume that o

Re: OT: regular expression question

2000-12-08 Thread Frodo Baggins
Viktor Rosenfeld scripsit: >Frodo Baggins wrote: > >> [Pumping Lemma] > >> 1 w = xyz >> 2 y is not empty >> 3 x has less than n caracters > >That would be xy has less than/equal to n characters (|xy| <= n). > >> 4 for any integer k, the word w_k = xyy..yz (k times y) is in the >> langua

Re: OT: regular expression question

2000-12-07 Thread Eric G . Miller
On Thu, Dec 07, 2000 at 05:29:29PM -0700, Hubert Chan wrote: > > "Frodo" == Frodo Baggins <[EMAIL PROTECTED]> writes: > > Frodo> Take the palindrome w=aaa...abb...b where there are n 'a' and n > > That's not a palindrome. A palindrome is a word in which the first "half" is > the reverse

Re: OT: regular expression question

2000-12-07 Thread Hubert Chan
> "Viktor" == Viktor Rosenfeld <[EMAIL PROTECTED]> writes: Viktor> Peter Jay Salzman wrote: >> i know how to search for palindromes, for instance, a 3 letter >> palindrome: >> >> \(.\)\(.\)\(.\)\3\2\1 >> >> recently, i started wondering if there was a way, using r

Re: OT: regular expression question

2000-12-07 Thread Hubert Chan
> "Frodo" == Frodo Baggins <[EMAIL PROTECTED]> writes: Frodo> Take the palindrome w=aaa...abb...b where there are n 'a' and n That's not a palindrome. A palindrome is a word in which the first "half" is the reverse of the second "half" (half is in quotes because the word may have an odd

Re: OT: regular expression question

2000-12-07 Thread Hubert Chan
> "Peter" == Peter Jay Salzman <[EMAIL PROTECTED]> writes: Peter> i know how to search for palindromes, for instance, a 3 letter Peter> palindrome: \(.\)\(.\)\(.\)\3\2\1 Well, strictly speaking, that's not really a regular expression. (And I would also count that as a 6 letter palind

Re: OT: regular expression question

2000-12-07 Thread Viktor Rosenfeld
Frodo Baggins wrote: > [Pumping Lemma] > 1 w = xyz > 2 y is not empty > 3 x has less than n caracters That would be xy has less than/equal to n characters (|xy| <= n). > 4 for any integer k, the word w_k = xyy..yz (k times y) is in the > language (i.e. matches the regex) MfG Viktor

Re: OT: regular expression question

2000-12-07 Thread Frodo Baggins
Peter Jay Salzman scripsit: > >recently, i started wondering if there was a way, using regex only, to >express a palindrome of arbitrary letter length? > >i've used some grey matter, and the answer seems to be no, but there's nice >symmetry here. maybe i'm missing something... > Well, maybe you'r

Re: OT: regular expression question

2000-12-07 Thread Viktor Rosenfeld
Peter Jay Salzman wrote: > i know how to search for palindromes, for instance, a 3 letter palindrome: > > \(.\)\(.\)\(.\)\3\2\1 > > recently, i started wondering if there was a way, using regex only, to > express a palindrome of arbitrary letter length? > > i've used some grey matter,