CSSE 230: Session Notes - Day 14
Topics
- Ammortized analysis of algorithms
- Abstract Data Types
Outline
- [5 min] Contact before work
- [10 min] A closer look at Java's ArrayList
data structure, in particular at adding elements.
- [15 min] Introduction to amortized
analysis of algorithms. Analyis of adding to an array. Why we
should double the array when we resize it.
- [10 min] Abstract Data
Types.
- [5 min] Break
- [balance of time] Work on AVL tree assignment.
Heaps.
Resources
- Notes on amortized analysis.
- A video narrating the slides on ammortized analysis
- Sample code where we
implement a queue through an ArrayList and a Stack through a Queue,
highlighting what ADTs are all about.
Homework
- Day 16, BC: Submit your answers to the amortization homework Please
submit a pdf copy of your work and please place your name near the top
of your document. Submissions that do not satisfy these two
constraints will not be graded. Thank you.