Results 1 to 3 of 3
- 12-28-2009, 11:10 PM #1
Member
- Join Date
- Dec 2009
- Posts
- 14
- Rep Power
- 0
optimization mechanism to improve tail-recursion running time?
hey,
ive been reading alot about this subject and still no good mechanism was found, what do u think will improve the run-time performance of a tail recursion?
maybe creating a command that will turn a tail-recursion to a while loop?
whats your opinion?
thanks
- 12-28-2009, 11:42 PM #2
use haskell, lisp or scheme if you are really into recursion... not java :-)
why do you want to optimize recursion? it is "easy" to understand and implement and sometimes it will be faster then the iterative variant (wiki). And there are some examples that are very comlicated to formulate with iterative method not using a stack (see "See Also" examples from the wiki article) ."There is no foolproof thing; fools are too smart."
"Why can't you solve my Problem ?"
- 12-29-2009, 11:53 AM #3
Member
- Join Date
- Dec 2009
- Posts
- 14
- Rep Power
- 0
Similar Threads
-
recursion and tail-recursion differences
By OptimusPrime in forum New To JavaReplies: 2Last Post: 12-28-2009, 06:26 PM -
Running thread a second time
By Fleur in forum New To JavaReplies: 18Last Post: 11-17-2009, 12:57 PM -
Improve the slow running time
By coolFrenzi in forum Advanced JavaReplies: 1Last Post: 04-12-2009, 12:15 PM -
toHexString optimization (in fact general optimization question)
By jann in forum Advanced JavaReplies: 7Last Post: 12-16-2008, 06:44 PM -
How can I improve the execution time of a Java Project
By Ndt in forum Advanced JavaReplies: 25Last Post: 06-28-2008, 05:08 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks