Lecture 18
Learning objectives
After this class, you should be able to:
- Given an algorithm, analyze its amortized time complexity using (i) the accounting method, and (ii) the potential method.
Reading assignment
- CLR: Sections 17.2 - 17.3.
- CLR: Chapter 17, pages 590 and 604.
Exercises and review questions
- Questions on current lecture's material
- Exercise 17.2-2.
- Exercise 17.3-2.
- Questions on next lecture's material
- (Post your solution on the discussion board) Give a graph with six vertices, give its adjacency matrix, and show the order in which a depth first search will traverse the vertices (also mention the starting vertex).