Source: https://dsc40b.com/materials/lectures/01-intro/slides.pdf
Course Website: dsc40b.com Course Notes: https://dsc40b.com/materials/default/notes/book.pdf
How to compute the median in Python?
Not the optimal solution.
40B is about creating the algorithms for the math we learned in 40A.
Clustering is assigning datapoints to groups
Naive Approach: Brute force (
Measuring Time Complexity Approach 1: Stopwatch Approach 2: Time Complexity Analysis
Peter Norvig’s Essay https://norvig.com/21-days.html