Re: need help Recursion and iteration...


[Prev][Next][Index][Thread]

Re: need help Recursion and iteration...



In article <367d657d.20892851@news1.qc.sympatico.ca>,
  bmorrissNOSPAM@sympatico.ca (Benoit Morrissette) wrote:

>  But there
> exists some classes of algorythmic problems that can be solved
> only through recursion ( graphs and trees ).

Er.. no.  Every recursive program may be written in iterative form.
It's not always trivial (as with the factorial), but it can be done.

> And in many
> cases, recursion leads to programs that are more readable,
> easier to debug and faster to write at the cost of using
> more memory and taking more time to run.
>

I second that.

--
Best Regards,
Werner Huysegoms
Reply-To: werner.huysegoms@dgx11.cec.be
remove the x before replying

-----------== Posted via Deja News, The Discussion Network ==----------
http://www.dejanews.com/       Search, Read, Discuss, or Start Your Own


Follow-Ups: References: