Ok, great, now it's clear.
I have other 2 questions:
1. If I have a line in the algorithm which increments a counter, say, i <— i+1,
and I use the bank method for amortized calc, should I consider a token for this line or not?
If the question is not clear so let's refer the Inc example from the class:
You said that we should pay 2 tokens for the "cheap" command. From those 2 tokens, does any token go for increasing the i by 1 or not?
I understood it like 1 token goes to set the 0 to 1, and the other goes above that 1 in order to set 0 instead of it in the future.
But then I handled the problem of the index increasing - should it be neglected or not?
2. If I need to calculate log(k), k is a given number, and I want the int part of it - should I pay a token for it, or it's neglectable?
Sorry for the long msg.