What is amortized analysis of algorithms? [closed]
How is it different from asymptotic analysis? When do you use it, and why? I've read some articles that seem to have been written well, like these: http://www.ugrad.cs.ubc.ca/~cs320/2010W2/handouts/aa-nutshell.pdf http://www.cs.princeton.edu/~fiebrink/423/AmortizedAnalysisExplained_Fiebrink.pdf but I've still not understood fully these concepts. So, can anyone please simplify it for me? Amortized analysis doesn't naively multiply the number of invocations with the worst case for one invocation. For example, for a dynamic array that doubles in size when needed, normal asymptotic analysis would