Amortized analysis in general [00T0]

This is a common situation: we have some operation that we want to do repeatedly, and the operation does not always take the same amount of time. We can easily give an upper bound and a lower bound, but we want to be able to say something more precise about how long the entire sequence of operations will take. For this we turn to amortized analysis. The idea of “amortization” is to spread out big one-time costs more evenly (e.g. repaying a car loan or a mortgage in monthly installments).