16.5 Summary


16.5 Summary

A recursive method definition contains one or more calls to the function being defined. In many cases, the recursive method is very powerful and compact in defining the solution to complex problems. The main disadvantages are that it demands a relatively large amount of memory and time to build stack.

As there is a choice between using iterative and recursive algorithms, so programmers must evaluate the individual situation and make a good decision for their use.




Object-Oriented Programming(c) From Problem Solving to Java
Object-Oriented Programming (From Problem Solving to JAVA) (Charles River Media Programming)
ISBN: 1584502878
EAN: 2147483647
Year: 2005
Pages: 184

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net