Download presentation
Presentation is loading. Please wait.
Published byLucas Newton Modified over 8 years ago
1
1 CPSC 320: Intermediate Algorithm Design and Analysis August 6, 2014
2
2 Schedule Monday: BC Day, no classes Wednesday: Quiz 5 (NP and NP completeness) Review: Amortized Analysis Friday: Survey (bonus marks) Review: probably Graph Theory and Dynamic Programming
3
3 Amortized Analysis
4
4 Amortized cost
5
5 Aggregate Method Evaluate a sequence of calls, and calculate the total cost Usually changes in data structure are considered instead of operations
6
6 Potential Method
7
7 Garbage Collection
8
8
9
9 Garbage Collection – Potential Method
10
10 More examples
11
11 More examples
12
12 Exercise
13
13 Good view – Aggregate Analysis
14
14 Good view – Potential Method
Similar presentations
© 2025 SlidePlayer.com. Inc.
All rights reserved.