Lecture 2

Learning objectives

After this class, you should be able to:

  1. Given a recursive code, draw a figure to show how the state of the run time stack changes with time.
  2. Given a recursive definition of a formula or an algorithm, write code that computes the formula or implements the algorithm, and prove the correctness of your implementation.

Reading assignment

  1. Section 1.3.
  2. Lecture: Recursion.
  3. Review C++ and Unix material from your previous courses; sections 1.4-1.5 will help with C++.

Exercises and review questions


Last modified: 30 Aug 2011