Class 19: Recursion with Natural Numbers (1)

Back to Recursion with Lists (2). On to Recursion with Natural Numbers (2).

Held: Wednesday, 19 February 2003

Summary: Today we consider recursion over a different domain, that of the natural numbers.

Related Pages:

Assignments

Notes:

• I'll be gone on Friday. Mr. Stone will teach the class. You will continue with the lab on numeric recursion. In case you care, I'll be going to the steering committee meeting of the EdMedia World Conference on Educational Multimedia, Hypermedia, and Telecommunications.
• Does anyone want to take notes for posting to the EBoard for that class?
• I may make some changes to the wording of problems on the exam by Friday.
• Are there comments on (1) the structure of class; (2) the EBoards; or (3) the Web site? (I may ask again in the weekly checkup.)
• I've finished grading writeup 1. We will go over my my notes on that writeup.
• Happy Birthday Amanda!

Overview:

• Introduction to numeric recursion.
• Lab.

Recursion with Numbers

• While most of the recursion we've been doing has used lists as the structure to recurse over, you can recurse with many different kinds of values.
• It is fairly common to recurse using numbers.
• The natural base cases for integers are when you hit 0 or when you hit 1.
• The natural parameter for recursive procedure calls typically involves subtracting 1 from the argument.

History

Thursday, 16 January 2003 [Samuel A. Rebelsky]

• First version, created mostly automatically from previous course.

Back to Recursion with Lists (2). On to Recursion with Natural Numbers (2).

Disclaimer: I usually create these pages on the fly, which means that I rarely proofread them and they may contain bad grammar and incorrect details. It also means that I tend to update them regularly (see the history for more details). Feel free to contact me with any suggestions for changes.

This document was generated by Siteweaver on Tue May 6 09:29:49 2003.
The source to the document was last modified on Thu Jan 16 13:45:58 2003.
This document may be found at `http://www.cs.grinnell.edu/~rebelsky/Courses/CS151/2003S/Outlines/outline.19.html`.

You may wish to validate this document's HTML ; ; Check with Bobby

Samuel A. Rebelsky, rebelsky@grinnell.edu