One lovely way to analyze this algorithm is the idea of credits.
- A gold coin (credit) buys you one bit flip.
- We'll charge two gold coins for each increment.
- Extra credits can be stored for later use.
- Credits can be taken if we need them.
Example: increment starting from zero.
Where should we leave credits?
Next: Amortized Analysis Template
Up: AMORTIZED ANALYSIS
Previous: Sequence of Flips