Re: recursive leads to stack overflow



hyena wrote:
I have a recursive function to buid up a tree. When the tree grwos too big,
my java give me a error of stack overflow.

Use a better algorithm.

si there some solutions rather
then reconsidering the algorithms?

If you really want to waste more memory, read the fine manual:

http://java.sun.com/j2se/1.5.0/docs/tooldocs/windows/java.html#nonstandard

/Thomas


-- The comp.lang.java.gui FAQ: ftp://ftp.cs.uu.nl/pub/NEWS.ANSWERS/computer-lang/java/gui/faq .



Relevant Pages

  • Re: Algorithm help, any suggestions???
    ... > algorithms to help figure out some of the problems I'm having. ... > them well enough in a newsgroup or that I'd even get many responses. ... Also, if you can, please indicate you language preferences. ... C++ Faq: http://www.parashift.com/c++-faq-lite ...
    (comp.programming)
  • Re: STL newie
    ... I still research algorithms because there are soooooo ... C++ Faq: http://www.parashift.com/c++-faq-lite C Faq: http://www.eskimo.com/~scs/c-faq/top.html alt.comp.lang.learn.c-c++ faq: ... Other sites: http://www.josuttis.com -- C++ STL Library book http://www.sgi.com/tech/stl -- Standard Template Library ...
    (comp.lang.cpp)
  • Re: [OT] Re: Password Analyzer......
    ... >>reliably find the transformation used to generate the password. ... > different pgms the pgm is mapsource ... The big problem is that there are too many functions and algorithms ... C++ Faq: http://www.parashift.com/c++-faq-lite C Faq: http://www.eskimo.com/~scs/c-faq/top.html alt.comp.lang.learn.c-c++ faq: ...
    (alt.comp.lang.learn.c-cpp)
  • Re: rec.games.roguelike.development FAQ
    ... What is the exact purpose of the FAQ? ... is outside the bounds of a FAQ to talk about algorithms in any truly ... Talking about libraries shouldn't involve personal bias (I don't like ...
    (rec.games.roguelike.development)
  • Re: Sources for functions like malloc()
    ... because I'd like to see the algorithms. ... There is a whole lot of information about memory allocation ... strategy that fits all. ... C++ Faq: http://www.parashift.com/c++-faq-lite ...
    (comp.lang.c)