2014 | OriginalPaper | Chapter
8. Recursion
Published in:
Guide to Java
Abstract
This chapter examines recursion using contour diagrams. The power function and Fibonacci numbers are used as examples. In addition to contour diagrams, stack frames and a tree of calls are shown as alternative ways of visualizing the recursive process. As with other chapters, a complete program is provided.