created: 12/23/02; audio added 09/01/07;

go to home page   go to next page hear noise highlighting

CHAPTER 90 — Introduction to Recursion

This chapter introduces recursion. Previous chapters have discussed the fundamental control structures of sequence, alternation (if-else), and iteration (while). Recursion is another control structure. Sometimes problems are stated in a recursive fashion, and a program that solves the problem is most easily written using recursion.

Chapter Topics:

Forget programming for a while. Think about a real-world problem that does not involve computers:


QUESTION 1:

You drive to the mall the day after Thanksgiving. But the only parking spot you find in the parking lot is far from the entrance (horrors!) How do you get from your car to the mall?


go to home page   go to next page