Lesson 22: Hard problems and greedy solutions
Outline:
- Review of inheritance
- Mini-quiz
- Recap of
lambda
and sorting given a key function - Bin Packing
- “hard” problems and algorithmic complexity
- The Knapsack Problem
- “greedy” solutions
- algorithmic complexity, revisited
- Recap for Quiz 4
Reading assignment (to be completed by the next class):
- recommended: https://en.wikipedia.org/wiki/Bin_packing_problem
- recommended: https://en.wikipedia.org/wiki/Knapsack_problem