15-150: Principles of Functional Programming

Lecture 6: Asymptotic Analysis

In the first part of the lecture, we continued to talk about datatypes and looked at a few more examples. In the second part, we discussed Big-O notation and analyzed the Work associated with a few of the functions we implemented in recent lectures.

Some Notes on Asymptotic Analysis

(NOTE: Page 7 contains a table of recurrences and their associated big-O solutions.)

Sample Code

Slides (Dataypes continued)

Slides (Cost Analysis) (Pages 1-15)

Some Notes on Asymptotic Analysis