Re: question about recursion

2009-05-22 Thread Chris Wagner
Hey. Yeah deep recursion is something I don't really want to deal with. :) I've only used recursion once and that was to walk a data structure. For this kind of problem, which is a convergence problem, I would use a loop. I'm assuming that there is a variance value that is computed and compared t

Re: question about recursion

2009-05-22 Thread Angelos Karageorgiou
memoize is your friend! There is a whole chapter devoted to it in "Higher order Perl" and yes Perl's recursion sucks especially when using dynamically allocated large data structures! Gaurav Vaidya wrote: Hi Greg, 2009/5/22 Greg Aiken : the sub-routines then look to the value of $main::wev

Re: question about recursion

2009-05-22 Thread Gaurav Vaidya
Hi Greg, 2009/5/22 Greg Aiken : > the sub-routines then look to the value of $main::weve_found_answer to > determine if it should stop recursively calling itself because the answer > has already been found – or continue to recursively call itself again. > [..] > so I ask…  ‘is there a better way o

RE: question about recursion

2009-05-22 Thread Brian Raven
From: perl-win32-users-boun...@listserv.activestate.com [mailto:perl-win32-users-boun...@listserv.activestate.com] On Behalf Of Greg Aiken Sent: 21 May 2009 22:02 To: perl-win32-users@listserv.ActiveState.com Subject: question about recursion > given: > > a. that its generally considered to be '