Efficiency and Order of Growth

OCW Scholar

« Previous | Next »

Session Overview

Graph showing various logarithmic curves.

This lecture revolves around the topic of algorithmic efficiency. It introduces the random access model (RAM) of computation and "big O notation" as a way to talk about order of growth. It concludes with binary search.

Session Activities

Lecture Videos

About this Video

Topics covered: Efficiency, problem reduction, RAM, best case, worst case, expected case, growth, exponential growth, polynomial growth, logarithmic growth, global variables.

Resources

Recitation Videos

About this Video

Topics covered: Big O notation, algorithm complexity, algorithm comparison example, object-oriented programming, Person class example, defensive programming, private attributes, mutability, aliasing.

Resources

Check Yourself

Why is efficiency important?

View/hide answer

 

What notation do we use to state complexity?

View/hide answer

 

« Previous | Next »