in reply to Re: Iterative vs Recursive Processes
in thread Iterative vs Recursive Processes
Thanks! I should have mentioned that I had read that post and the very interesting Pure Perl tail call optimization in my RTFM search prior to my post. I wasn't able to find an answer to my question, which is simply whether if I write a recursive procedure like factorial_iterative, which looks like it ought to generate an iterative process, does it in fact execute in a constant memory space like it looks like it should, or does it's memory usage grow linearly the way factorial_recursive looks like it should.
Perhaps my question is foolish and someone wiser than I could show me the error of my ways.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: Re: Iterative vs Recursive Processes
by broquaint (Abbot) on May 12, 2003 at 18:06 UTC | |
|
Re: Re: Re: Iterative vs Recursive Processes
by suaveant (Parson) on May 12, 2003 at 16:41 UTC |