Consider an algorithm that performs a sequence of n operations, where the cost of the i-th operation is c_i. The amortized cost of the algorithm is:
Sum of c_i for i from 1 to n
Maximum of c_i for i from 1 to n
Overlook minor misbehaviors
Impose harsh punishments for any infraction

Data Structures and Algorithms Exercises are loading ...