Lecture 17

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. Page 216 and 217.

Exercises and review questions


Last modified: 19 Oct 2004