Welcome to Scribd, the world's digital library. Read, publish, and share books and documents. See more
Standard view
Full view
of .
0 of .
Results for:
P. 1
Chapter 9. Recursion

# Chapter 9. Recursion

Ratings: (0)|Views: 54 |Likes:

### Availability:

See more
See less

10/23/2011

pdf

text

original

Recursion

341
Chapter 9. Recursion
“Well, you sure picked a good subject this time,” saidMorf, looking a bit puzzled.“We touched on this before, don’t you remember?”replied Logy. “You remember, recursion is when a procedureuses itself as part of the solution.”“Say what?”Yes, strange as that may seem, arecursive procedure is one that calls itself as part of the total solution. You sawexamples of this in earlier chapters.It is something like the two turtles inthe picture. Each turtle is using the otherto draw itself.________________________________________________
Is Life Recursive
Here’s a fun procedure to help you make some sense outof recursion, even though it really isn’t Logo.TO GET.THROUGH.LIFEGET.THROUGH.TODAYGET.THROUGH.LIFEENDThink about it for a moment. This says that to get throughlife, you have to get through today. Once you are throughtoday, you have to move on, right?But where?

Recursion
342