Chapter 5: Q24E (page 139)
A binary counter of unspecified length supports two operations: increment (which increases its value by one) and reset (which sets its value back to zero). Show that, starting from an initially zero counter, any sequence of n increment and reset operations takes time ; that is, the amortized time per operation is O(1) .
Short Answer
Binary counter is supports unclear length of two type of operations. On that basses increment and reset (1 & 0) is happen. It’s starts from zero counter and continue in sequence base on n increment & reset operations.