Previous Lecture Lecture 9 Next Lecture

Lecture 9, Tue 05/06

Binary Search, Big-O, Dictionary vs List



Lecture 8

Time Complexity: O(n)

List Operations

Dictionary Operations

Binary Search (on Lists)

In-class demo with 8 students to illustrate that in the worst case, the function will need to be called only 3 times: log (base 2) of 8 is 3 (because 2^3 = 8).