Back to course overview
Data Structures & Algorithms
Thinking About Efficiency
Describe how code slows as data grows with Big-O notation, then implement linear and binary search, insertion sort and merge sort.
3 lessons · 1h 29m
- 30mBig-O notationReading
Describe how an algorithm's work grows with its input, and compare O(1), O(log n), O(n) and O(n^2) code.
- 28mLinear and binary searchReading
Search an unsorted list step by step, then halve a sorted list each time with binary search.
- 31mSorting algorithmsReading
Implement insertion sort and merge sort, and see why one is O(n^2) and the other O(n log n).