Classic Example

Incrementing an n-bit binary number.

How many bit flips in the worst case?


next up previous
Next: Counting Flips Up: AMORTIZED ANALYSIS Previous: Idea of Amortized Analysis