Re: Exercise 2.1.2 from Aho&Ulman The theory of Parsing textbook?
- From: Tegiri Nenashi <TegiriNenashi@xxxxxxxxx>
- Date: Fri, 25 Apr 2008 16:20:11 -0700 (PDT)
On Apr 22, 1:09 pm, Chris F Clark <c...@xxxxxxxxxxxxxxxxxxxx> wrote:
Tegiri Nenashi <TegiriNena...@xxxxxxxxx> writes:
Not only that but terms like aXa were also wrong. How about
Y = YaYbY + YbYaY + 1
That looks much better. Each Y introduces an equal number of a's and
b's.
Next the exercise 2.1.4c (marked as more difficult:-) extends this
problem to 3 letters. I fail to see, however, why they need context
sensitive grammar. Wouldn't just
Y = YaYbYcY + <other 5 permutations of a,b,c> + 1
work?
.
- Follow-Ups:
- Re: Exercise 2.1.2 from Aho&Ulman The theory of Parsing textbook?
- From: Lech Duraj
- Re: Exercise 2.1.2 from Aho&Ulman The theory of Parsing textbook?
- References:
- Exercise 2.1.2 from Aho&Ulman The theory of Parsing textbook?
- From: Tegiri Nenashi
- Re: Exercise 2.1.2 from Aho&Ulman The theory of Parsing textbook?
- From: Barb Knox
- Re: Exercise 2.1.2 from Aho&Ulman The theory of Parsing textbook?
- From: Tegiri Nenashi
- Re: Exercise 2.1.2 from Aho&Ulman The theory of Parsing textbook?
- From: Chris F Clark
- Exercise 2.1.2 from Aho&Ulman The theory of Parsing textbook?
- Prev by Date: Re: Is there a name and theory for "arrangement/packing" problems?
- Next by Date: Re: Exercise 2.1.2 from Aho&Ulman The theory of Parsing textbook?
- Previous by thread: Re: Exercise 2.1.2 from Aho&Ulman The theory of Parsing textbook?
- Next by thread: Re: Exercise 2.1.2 from Aho&Ulman The theory of Parsing textbook?
- Index(es):
Relevant Pages
|