Lesson 22: Hard problems and greedy solutions
Outline:
- Questions?
- Recap: inheritance
- Bin Packing
- problem statement
- “hard” problems and algorithmic complexity
- The Knapsack Problem
- problem statement
- “greedy” solutions
- algorithmic complexity, revisited
Explore after class:
- Review for Quiz 4
- another bin packing example: Exercise 1
- implementing+testing a class:
- writing the
Activityclass: Exercise 2a-c - combining activities: Exercise 2d
- writing the
Want more practice?
- Runestone
- classes:
- dictionaries:
What’s next
Upcoming events/assessments:
- CS Bits and Bytes tomorrow at 3:30pm in Anderson 329: Meditech
- Homework assignment 7 is due tomorrow
- Quiz #4 will be on Friday (in Olin 149)
What you should do now:
- The readings (see below)
- Finish Assignment 7
Reading assignment (to be completed by the next class):