Lecture 16

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.
  3. Given a simple recursive algorithm, derive the time complexity for executing it.

Reading assignment

  1. Section 5.1 - 5.8.
  2. Review iterators from section 1.7.

Exercises and review questions


Last modified: 28 Feb 2008