op          returned  |S_IN|  |S_OUT|   Phi   actual   amortized
ENQUEUE 1   -              1        0      2       1           3
ENQUEUE 2   -              2        0      4       1           3
ENQUEUE 3   -              3        0      6       1           3
ENQUEUE 4   -              4        0      8       1           3
ENQUEUE 5   -              5        0     10       1           3
DEQUEUE     1              0        4      0      11           1
DEQUEUE     2              0        3      0       1           1
DEQUEUE     3              0        2      0       1           1
ENQUEUE 6   -              1        2      2       1           3
DEQUEUE     4              1        1      2       1           1
DEQUEUE     5              1        0      2       1           1
DEQUEUE     6              0        0      0       3           1

200000 operations in blocks of 1000:
  worst single actual cost   = 2001
  worst single amortized cost= 3
  total actual cost          = 400000
  total amortized cost       = 400000
  actual cost per operation  = 2.000000
The single worst operation costs 2001, yet the average is at most 3: that gap is what amortization buys.
