 |  Introduction to Algorithms, 2/e Thomas H. Cormen,
Dartmouth College Charles E. Leiserson,
Massachusetts Institute of Technology Ronald L. Rivest,
Massachusetts Institute of Technology Clifford Stein,
Columbia University
Amortized Analysis
Chapter ObjectivesAmortized analysis Analyze a sequence of operations on a data structure. Goal: Show that although some individual operations may be expensive,
on
average the cost per operation is small. Average in this context does not mean that were averaging over a
distribution of
inputs.
No probability is involved.
Were talking about average cost in the worst case. Organization
Well look at 3 methods:
aggregate analysis
accounting method
potential method
Using 3 examples:
stack with multipop operation
binary counter
dynamic tables (later on)
|