Re: Grammatical Recursion
From: Greg Lee (greg_at_ling.lll.hawaii.edu)
Date: 12/18/04
- Next message: Ja ne znaju: "Re: Bilingualism has ruined Canada but there is still hope."
- Previous message: Django Cat: "Re: grockle"
- In reply to: Florian Laws: "Re: Grammatical Recursion"
- Next in thread: Mitch Harris: "Re: Grammatical Recursion"
- Reply: Mitch Harris: "Re: Grammatical Recursion"
- Reply: Florian Laws: "Re: Grammatical Recursion"
- Messages sorted by: [ date ] [ thread ]
Date: 18 Dec 2004 13:03:10 GMT
Florian Laws <fl-usenet-2004@void.s.bawue.de> wrote:
> On 2004-12-18, Lee Sau Dan <danlee@informatik.uni-freiburg.de> wrote:
> >>>>>> "Jacques" == Jacques Guy <jguy@alphalink.com.au> writes:
> >
> > Jacques> Lee Sau Dan wrote:
> > >> Sigh... you confuse iteration with recursion...
> >
> > Jacques> No I don't. I have made it clear that any recursive
> > Jacques> function can be rewritten as an iteration.
> >
> > If you haven't mixed up the two, then you MUST be wrong. There are
> > languages that can be generated by a recursive grammar, but not an
> > iterative one.
> What is an "iterative grammar"?
A phrase structure grammar of type 3 in the Chomsky hierarchy, whose
rules have on the right a terminal followed by at most one non-terminal.
> Regardless, any algorithm using recursion can be converted in one using
> iteration, with the help of using an explicit stack, if necessary.
True, but it's the use of a stack, explicit or implicit, that distinguishes
iterative from recursive (as those terms have come to be used in this
discussion). Making an implicit stack explicit doesn't change the
type of the algorithm.
-- Greg Lee <greg@ling.lll.hawaii.edu>
- Next message: Ja ne znaju: "Re: Bilingualism has ruined Canada but there is still hope."
- Previous message: Django Cat: "Re: grockle"
- In reply to: Florian Laws: "Re: Grammatical Recursion"
- Next in thread: Mitch Harris: "Re: Grammatical Recursion"
- Reply: Mitch Harris: "Re: Grammatical Recursion"
- Reply: Florian Laws: "Re: Grammatical Recursion"
- Messages sorted by: [ date ] [ thread ]
Relevant Pages
|