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.
KeywordsPower Function Line Number Method Call Great Common Divisor Recursive Call
- 4.Streib JT (2011) Guide to assembly language: a concise introduction. Springer, LondonGoogle Scholar