[algogeeks] Re: recursive to non recursive algorithm

2008-06-09 Thread kestrel
yes. You should be able to convert any recursive function/method to a non-recursive one by just simulating what the language does to do the recursion. This usually involves using stack (recursion stack) to store function local variables before doing another call. Haven't looked at this closely but

[algogeeks] Re: recursive to non recursive algorithm

2008-06-08 Thread zee 99
understood thanks for ur concern On 6/7/08, Ashesh <[EMAIL PROTECTED]> wrote: > > > Recursion is so cool. If you're willing to practice, I'd recommend you > to try SML. > > On Jun 6, 10:40 pm, "zee 99" <[EMAIL PROTECTED]> wrote: > > hi > > > > learnt that a tail recursive algorithm can be convert

[algogeeks] Re: recursive to non recursive algorithm

2008-06-07 Thread Ashesh
Recursion is so cool. If you're willing to practice, I'd recommend you to try SML. On Jun 6, 10:40 pm, "zee 99" <[EMAIL PROTECTED]> wrote: > hi > > learnt that a tail recursive algorithm can be converted to a non recursive > one by merely using a while and a goto > > is it true for all class of r

[algogeeks] Re: recursive to non recursive algorithm

2008-06-06 Thread Geoffrey Summerhayes
On Jun 6, 1:40 pm, "zee 99" <[EMAIL PROTECTED]> wrote: > hi > > learnt that a tail recursive algorithm can be converted to a non recursive > one by merely using a while and a goto > > is it true for all class of recursive algorithms or just the tail recursive > ones ... All. In fact there are s