RE: Java Questions Again: What's So Great About Recursion

  • From: "Sina Bahram" <sbahram@xxxxxxxxx>
  • To: <programmingblind@xxxxxxxxxxxxx>
  • Date: Thu, 7 Apr 2011 15:22:03 -0400

Because it's easier to write problems recursively, at the beginning, and then 
iteratively afterwards for performance reasons.
 
Yes, almost every single time will recursion be more resource intensive.
 
Take care,
Sina
 
From: programmingblind-bounce@xxxxxxxxxxxxx 
[mailto:programmingblind-bounce@xxxxxxxxxxxxx] On Behalf Of Homme, James
Sent: Thursday, April 07, 2011 12:52 PM
To: programmingblind@xxxxxxxxxxxxx
Subject: Java Questions Again: What's So Great About Recursion
 
Hi,
It's probably my ignorance coming out to bite me again, but I just was reading 
about recursion in my Java book and thinking that it
isn't all that useful because you can do the same stuff with a loop. Maybe the 
book examples are so simple that I just don't see
it's usefulness. They were even saying that recursion eats up more memory than 
loops do, so I'm wondering why I learned it in the
first place, other than to know how it works and that it exists. 
 
Please help.
 
Thanks.
 
Jim
 
Jim Homme,
Usability Services,
Phone: 412-544-1810. Skype: jim.homme
Highmark recipients,  Read my accessibility blog 
<http://mysites.highmark.com/personal/lidikki/Blog/default.aspx> . Discuss
accessibility here 
<http://collaborate.highmark.com/COP/technical/accessibility/default.aspx> . 
Accessibility Wiki: Breaking news
and accessibility advice 
<http://collaborate.highmark.com/COP/technical/accessibility/Accessibility%20Wiki/Forms/AllPages.aspx>
 
 
 
  _____  

This e-mail and any attachments to it are confidential and are intended solely 
for use of the individual or entity to whom they are
addressed. If you have received this e-mail in error, please notify the sender 
immediately and then delete it. If you are not the
intended recipient, you must not keep, use, disclose, copy or distribute this 
e-mail without the author's prior permission. The
views expressed in this e-mail message do not necessarily represent the views 
of Highmark Inc., its subsidiaries, or affiliates.

Other related posts: