Is it right to say iteration is resource(time) intensive and recursion is not. On the other hand, recursion is space intensive (with stacks) and iteration is not ?
Thanks On Mon, Jun 13, 2011 at 2:08 PM, ADITYA KUMAR <[email protected]> wrote: > its always better to have iterative program than recursive > since iterative program doesn't rely on system stack.. > but recursive program are easy to write and gives a clear view of program > > > On Tue, Jun 14, 2011 at 1:13 AM, snehi jain <[email protected]> wrote: > >> hi, >> we try to implement many programs using Recursion >> and its said that this is better than iterative procedure. >> >> if i am right then >> i cant understand why is it so? >> can anybody explain ... >> and are there situations when iterative procedure is better than >> recursion. >> >> >> Snehi >> >> -- >> You received this message because you are subscribed to the Google Groups >> "Algorithm Geeks" group. >> To post to this group, send email to [email protected]. >> To unsubscribe from this group, send email to >> [email protected]. >> For more options, visit this group at >> http://groups.google.com/group/algogeeks?hl=en. >> > > > > -- > Regards > Aditya Kumar > B-tech 3rd year > Computer Science & Engg. > MNNIT, Allahabad. > > -- > You received this message because you are subscribed to the Google Groups > "Algorithm Geeks" group. > To post to this group, send email to [email protected]. > To unsubscribe from this group, send email to > [email protected]. > For more options, visit this group at > http://groups.google.com/group/algogeeks?hl=en. > -- U -- You received this message because you are subscribed to the Google Groups "Algorithm Geeks" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/algogeeks?hl=en.
